Skip to main content
L
Loopaloo
Buy Us a Coffee
All ToolsImage ProcessingAudio ProcessingVideo ProcessingDocument & TextPDF ToolsCSV & Data AnalysisConverters & EncodersWeb ToolsMath & ScienceGames
Guides & BlogAboutContact
Buy Us a Coffee
L
Loopaloo

Free online tools for developers, designers, and content creators. Your files are processed in your browser and are never uploaded - no accounts required. A few network utilities (like What's My IP and Currency Converter) call public APIs to do their job and say so on their pages.

support@loopaloo.com

Tool Categories

  • Image Tools
  • Audio Tools
  • Video Tools
  • Document & Text
  • PDF Tools
  • CSV & Data
  • Converters
  • Web Tools
  • Math & Science
  • Games

Company

  • About Us
  • Contact
  • Blog
  • FAQ

Legal

  • Privacy Policy
  • Terms of Service
  • Disclaimer

Support

Buy Us a Coffee

© 2026 Loopaloo. All rights reserved. Built with privacy in mind.

Privacy|Terms|Disclaimer
  1. Home
  2. Math & Science
  3. Matrix Calculator
Add to favorites

Matrix Calculator

Determinants, inverses, eigenvalues, rank, row reduction and solving Ax = b for matrices up to 6 by 6, in exact fractions with every answer checked.

Calculated locally in your browserMore math & scienceJump to full guide

Initializing in your browser…

You might also like

Tip Calculator

Work out the tip, the total and each person's share of a bill, with tax and rounding options, and shares that always add up to the total.

Equation Solver

Solve linear, quadratic, cubic and polynomial equations up to degree 12, and systems of up to six linear equations, with exact fractions and every answer checked.

Scientific Calculator

A scientific calculator with exact fractions and decimals, degrees or radians, 34 functions and a desk-calculator mode. Rounded answers are labelled as rounded.

A worked calculation

You need the inverse of a 3 by 3 matrix for a homework problem and want to be sure it is right before using it.

Matrix A

[ 2  -3   1 ]
[ 2   0  -1 ]
[ 1   4   5 ]
What Matrix Calculator produces

Inverse of A

[  4/49   19/49   3/49 ]
[ -11/49   9/49   4/49 ]
[  8/49  -11/49   6/49 ]
Determinant: 49
A times its inverse is EXACTLY the identity
Condition number (1-norm): 5.57143

The determinant is 49, so the inverse exists and every entry of it is a whole number divided by 49. Because the work is done in exact fractions, multiplying A by the inverse gives exactly 1 on the diagonal and exactly 0 elsewhere, which confirms the answer without trusting the calculation. A condition number of about 5.6 means the matrix is well conditioned: small errors in the entries would change the inverse only a little.

What this calculator does

Determinants, inverses, eigenvalues and eigenvectors, rank, row reduction, null spaces, products and powers for matrices up to 6 by 6, all worked out in exact fractions. Enter the entries, pick an operation, and every answer comes with a check you can see.

How it works

Fifteen operations. For a single matrix you can find its determinant, inverse, transpose, reduced row echelon form, rank, trace, adjugate, null space, eigenvalues and eigenvectors, raise it to a whole power, multiply it by a number, or solve the system Ax = b. For two matrices there is addition, subtraction and multiplication, with a plain explanation when the shapes do not fit, for example when A has three columns and B has two rows. Choose the size of each matrix up to 6 by 6, type the entries as whole numbers, decimals or fractions such as 3/4, or paste a block of cells copied from a spreadsheet into any cell and the matrix fills from there.

Exact fractions throughout. Every entry is kept as an exact fraction, so nothing is rounded along the way. The determinant of an integer matrix is always an integer, the inverse of [[2, -3, 1], [2, 0, -1], [1, 4, 5]] has entries such as 19/49, and multiplying a matrix by its inverse gives exactly the identity, every entry exactly 1 or 0. Exactness also means that a matrix is called singular only when its determinant really is zero. A tool that compares against a small tolerance would call a perfectly good matrix with tiny entries singular; here scaling a matrix never changes the verdict.

How much to trust the inputs. Beside every inverse the tool reports the condition number, which measures how sensitive the problem is. A large condition number, such as the one for the nearly singular example, means that a small error in the entries would change the answer a lot, so the inverse is only as meaningful as the data is precise. The 1-norm and Frobenius norm are shown too.

Eigenvalues and checks. Eigenvalues come from the characteristic polynomial, which is computed exactly and shown, so rational eigenvalues are exact and irrational or complex ones are found numerically. The page checks that the eigenvalues add up to the trace, multiply to the determinant, and that the matrix satisfies its own characteristic polynomial (the Cayley-Hamilton theorem). For rational eigenvalues it lists a basis of eigenvectors and points out when a repeated eigenvalue has too few of them, which means the matrix cannot be diagonalised. Systems Ax = b are solved by exact elimination and the answer is multiplied back through A to confirm it, and the elimination steps can be shown one row operation at a time. Results can be copied as tab-separated cells that paste straight into a spreadsheet, and Share gives a link to the same matrices. Everything runs in your browser.

Examples

  • A determinant

    [[2, -3, 1], [2, 0, -1], [1, 4, 5]] has determinant 49, so it is invertible.

  • A singular matrix

    [[1, 2, 3], [4, 5, 6], [7, 8, 9]] has determinant exactly 0 and rank 2: the third row is twice the second minus the first.

  • Eigenvalues of a 2 by 2

    [[4, 1], [2, 3]] has the characteristic polynomial λ^2 - 7λ + 10 and eigenvalues 2 and 5, which add up to the trace 7 and multiply to the determinant 10.

How to use

  1. 1Choose an operation, such as Determinant, Inverse or A × B.
  2. 2Set the number of rows and columns for matrix A (and B, for operations on two matrices).
  3. 3Type the entries, use a fill such as Identity, or paste cells copied from a spreadsheet into the first cell.
  4. 4Read the result. Inverses come with the check that A times the inverse is the identity and the condition number.
  5. 5Open the elimination steps to follow the row operations, for example to check homework.
  6. 6Copy the result matrix into a spreadsheet, or press Share for a link.

Key features

  • Determinant, inverse, transpose, rank, trace and adjugate
  • Reduced row echelon form with every elimination step
  • Eigenvalues, the characteristic polynomial and exact eigenvectors
  • Null space basis and solutions of Ax = b
  • Addition, subtraction, multiplication, scalar multiples and whole powers
  • Exact fractions with no rounding, for matrices up to 6 by 6
  • Condition number and matrix norms for every inverse
  • Checks: A times its inverse, Cayley-Hamilton, trace and determinant identities
  • Paste blocks of cells from a spreadsheet; copy results back as cells
  • Clear messages when shapes do not match or a matrix is singular

Tips & best practices

  • Paste a matrix copied from a spreadsheet into the top-left cell; the size grows to fit, up to 6 by 6.
  • Use fractions such as 1/3 rather than 0.333 to keep answers exact.
  • For A × B, the number of columns of A must equal the number of rows of B.
  • A large condition number is a warning about the data, not the arithmetic: the exact inverse is still right for the numbers you typed.

When this is useful

  • Linear algebra homework

    Check a determinant, an inverse or a row reduction, and compare each elimination step with your own.

  • Solving simultaneous equations

    Enter the coefficient matrix and the right-hand side to get an exact solution, or learn that there is none.

  • Engineering and statistics

    Check that a covariance or stiffness matrix is invertible and how well conditioned it is before relying on it.

  • Studying eigenvalues

    See the characteristic polynomial, the eigenvalues and eigenvectors, and whether the matrix can be diagonalised.

Frequently asked questions

Why are the answers fractions instead of decimals?

Because the arithmetic is exact. A decimal such as 0.3877551 would be a rounding of 19/49, and rounding errors build up during elimination. Non-whole results are shown as fractions, and a decimal value is given beside single numbers such as a determinant.

What does it mean when a matrix is singular?

Its determinant is zero, so it has no inverse and its rows (and columns) are linearly dependent: at least one can be built from the others. The system Ax = b then has either no solution or infinitely many.

What is the condition number?

A measure of how much the answer can change when the entries change slightly. It is the norm of the matrix times the norm of its inverse. Values near 1 are very stable; values in the millions mean that tiny measurement errors could change the inverse completely.

How are eigenvalues found?

From the characteristic polynomial det(λI - A), which is computed exactly. Its rational roots are found exactly and the rest numerically, so a matrix like [[4, 1], [2, 3]] gives exactly 2 and 5, while a rotation matrix gives a complex pair.

Can I paste a matrix from Excel or Google Sheets?

Yes. Copy the block of cells, click the cell where it should start, usually the top-left one, and paste. Rows and columns are added automatically up to 6 by 6. Results can be copied back the same way.

What is the largest matrix it handles?

6 by 6. Exact fractions can grow very long, especially for high powers and inverses of larger matrices, so the size is kept to what stays fast and readable.

Related tools and how they differ

  • Equation Solver: Use it to solve a system typed as equations, with the general solution written out when there are free variables.
  • Fraction Calculator: Use it to check one fraction step of a matrix calculation by hand.
  • 3D Graphing Calculator: Use it to picture a surface such as a quadratic form x^2 + 3xy + y^2.

Private by design

Every calculation runs locally in your browser. Your numbers and expressions are not transmitted or stored.