Matrix Calculator
Add, multiply, transpose, and find the determinant and inverse of a matrix online.
About this calculator
A matrix calculator performs the core operations of linear algebra: addition and subtraction, multiplication, scalar multiplication, transpose, determinant and inverse for square matrices. Set the size, type in the numbers, and pick an operation to see the result matrix instantly.
Frequently asked questions
What size matrices are supported?
You can set rows and columns from 1×1 up to 5×5 for each matrix. Determinant and inverse require a square matrix.
Why can’t I multiply my two matrices?
Matrix multiplication requires the number of columns of the first matrix to equal the number of rows of the second. The calculator tells you when the sizes don’t match.
When does a matrix have no inverse?
A square matrix has no inverse when its determinant is zero — it is called singular. The calculator reports this instead of a result.
Results are estimates for general guidance only, not financial, medical or tax advice.