1 4 2 5 3 6
About Matrix Calculator – Multiply, Invert & Transpose
This matrix calculator performs the core operations of linear algebra — addition, subtraction, multiplication, transpose, determinant, and inverse — on matrices you type directly into the input. It's built for developers, engineers, and students who need a quick, reliable answer without spinning up a notebook or a CAS.
Matrix multiplication and the matrix inverse are easy to get wrong by hand, especially once you move past 2×2: a single sign error in cofactor expansion or a misplaced row in Gauss-Jordan elimination throws off the whole result. This tool does the arithmetic for you and reports clear errors when dimensions don't line up or a matrix is singular.
Everything runs entirely in your browser. No matrix you enter is ever uploaded, so it's safe for sensitive data and works with the network unplugged.
Features
- Transpose, determinant, and inverse for a single matrix
- Multiply (A×B) and add (A+B) two matrices
- Plain-text grids — space- or comma-separated cells, one row per line
- Clear errors for dimension mismatch and singular matrices; fully offline
How to use
- Type your matrix into the input — one row per line, cells separated by spaces or commas.
- For A×B or A+B, add a second matrix below a blank line.
- Pick an operation: Transpose, Determinant, Inverse, A×B, or A+B.
- Copy the result matrix (or scalar) from the output pane.
Frequently asked questions
How do I enter two matrices for multiplication or addition?
Type the first matrix, leave one blank line, then type the second matrix. The block above the blank line is A and the block below is B. This is only needed for the A×B and A+B operations.
Why do I get a "dimension mismatch" error?
For addition, both matrices must have exactly the same number of rows and columns. For multiplication, the number of columns in A must equal the number of rows in B. Adjust your matrices so the dimensions line up.
What does "matrix is singular" mean?
A singular matrix has a determinant of zero and therefore has no inverse — its rows or columns are linearly dependent. Only square, non-singular matrices can be inverted.
Is my data sent to a server?
No. All calculations run locally in your browser using a hand-rolled linear-algebra implementation. Nothing you type ever leaves your device, so it works offline and is safe for private data.
Related tools
Everything runs locally in your browser — your input is never uploaded.