Matrix Calculator
Paste a matrix as rows, pick an operation, get the result with the working checked.
Matrix operations fail silently more often than they fail loudly: multiplying mismatched shapes gives nonsense, and inverting a singular matrix gives a result that looks like a number. This page checks dimensions and the determinant before it computes, so the error appears instead of a plausible wrong answer.
Determinants and inverses here are computed by cofactor expansion, which is exact for the 2×2 and 3×3 cases that make up almost all coursework and fine up to about 6×6. Beyond that it becomes slow, and numerical libraries switch to LU decomposition for good reason.
How to use it
- Type matrix A with one row per line, values separated by spaces or commas.
- Pick an operation. Only multiplication, addition and subtraction need matrix B.
- Read the result. Once you have an inverse, multiply it back by A — the result should be the identity matrix.
Singular matrices and what they mean
A matrix is invertible exactly when its determinant is non-zero. Geometrically, the determinant is the factor by which the transformation scales area or volume, so a determinant of zero means the transformation collapses a dimension — a plane onto a line, for instance. No inverse can recover information that was destroyed.
That is also why det(A) = 0 makes a system of linear equations either have no solution or infinitely many, never exactly one. The determinant is not a formality; it is the answer to whether the problem is well posed at all.
Reviewed 2026-10-26. This tool runs entirely in your browser — no server, no account, and nothing you generate is stored.
Frequently asked questions
Why does it say my matrices cannot be multiplied?
Matrix multiplication requires the number of columns in A to equal the number of rows in B. A 2×3 times a 3×2 works and gives a 2×2; a 2×3 times a 2×3 does not.
What does a determinant of zero mean?
The matrix is singular: it collapses space to a lower dimension, has no inverse, and represents a system of equations with either no solution or infinitely many.
Can I use non-square matrices?
For transpose and multiplication, yes. For determinant and inverse, no — both are only defined for square matrices, and the page says so rather than guessing.
How large can the matrices be?
The parser accepts any size, but the cofactor method becomes slow past about 6×6 and loses precision beyond that. For larger systems, use a numerical library rather than a browser page.
Related tools
More from Calculators.