Matrix Calculator Online
Add, multiply, transpose and find the determinant and inverse of matrices, with results shown instantly. Your numbers stay on your device.
The Matrix Calculator runs entirely in your browser. The matrices you enter are computed on your device and are never uploaded to ArrayKit.
Open the Scientific Calculator
About Matrix Calculator
The Matrix Calculator adds, multiplies, transposes and finds the determinant and inverse of a matrix in one place. Type each matrix as rows of numbers — one row per line, values separated by spaces or commas — and switch operations with a single click to see the result update instantly. Addition and multiplication check that the two matrices have compatible dimensions before computing, multiplication follows the standard row-by-column rule, and the determinant and inverse both flag a matrix as singular when no inverse exists instead of returning a misleading number. It is built for linear algebra students checking homework, engineers working through transformation matrices, and anyone who needs a quick, exact result without opening a full computer algebra system. Everything runs locally in your browser — the values you enter are never uploaded.
Features
- Add and multiply two matrices, with dimension checks before computing
- Transpose any matrix to swap its rows and columns instantly
- Compute the determinant of a square matrix, including 3×3 and larger
- Compute the inverse of a square matrix via the adjugate method
- Clear error banner when matrices don't match for the chosen operation
- Flags a singular matrix (determinant of 0) instead of showing a bad inverse
- Enter rows as plain text — one row per line, space or comma separated
- Copy the result matrix or scalar with a single click
How to use the Matrix Calculator
- Pick an operation: Add, Multiply, Transpose, Determinant, or Inverse
- Type Matrix A as rows of numbers, one row per line
- For Add or Multiply, also fill in Matrix B in the same format
- Read the result matrix or scalar, and copy it if you need it elsewhere
Example
Input
det [[1,2],[3,4]]
Output
-2
Common errors & troubleshooting
- "Cannot add" or "Cannot multiply" error appears. — Addition needs both matrices to have the exact same dimensions; multiplication needs the number of columns in Matrix A to equal the number of rows in Matrix B. Check the row and column counts shown in the error.
- Determinant or Inverse says the matrix must be square. — Both operations are only defined for a square matrix (same number of rows and columns). Add or remove a row or column so the counts match.
- Inverse reports the matrix is singular. — A determinant of 0 means the matrix has no inverse — this is a mathematical fact, not a bug. Double-check the values; a repeated or proportional row is a common cause.
- Result matrix has odd numbers like 0.9999999999. — That's expected float precision from division during matrix inversion. The Matrix Calculator rounds tiny noise automatically, but if you see it, treat the value as the nearby whole number.
Frequently asked questions
- What operations does this matrix calculator support?
- The Matrix Calculator adds two matrices, multiplies two matrices, transposes a single matrix, and finds the determinant and inverse of a square matrix. Switch between them with the operation selector.
- How do I enter a matrix into the matrix calculator?
- Type one row per line with the values separated by spaces or commas, e.g. "1 2" on one line and "3 4" on the next for the 2×2 matrix [[1,2],[3,4]].
- Why does matrix multiplication need matching dimensions?
- A·B is only defined when the number of columns in A equals the number of rows in B, because each entry of the result is a dot product of a row of A and a column of B. The calculator checks this before computing and shows both matrices' sizes if they don't match.
- What does it mean when the matrix inverse calculator says the matrix is singular?
- A singular matrix has a determinant of 0, which means it has no inverse — dividing by that determinant would be undefined. This is a property of the numbers you entered, not a limitation of the calculator.
- Can this matrix calculator handle non-square matrices?
- Yes for addition, multiplication, and transpose, which all work on rectangular matrices as long as the dimensions are compatible for that operation. Determinant and inverse require a square matrix, since neither is defined otherwise.
- Are my matrix values uploaded anywhere?
- No. The Matrix Calculator runs entirely in your browser. The numbers you type are never sent to a server and are not uploaded to ArrayKit.
Related tools
All ArrayKit tools