About the matrix calculator
This matrix calculator performs the core matrix operations — addition, subtraction, multiplication, transpose and determinant. Set the size of each matrix, enter the numbers, and choose an operation to see the result instantly, with clear messages when an operation is not valid for the given sizes. It runs in your browser.
How Matrix works
How to use it
- Set the rows and columns for matrices A and B.
- Fill in the values.
- Choose an operation: A + B, A − B, A × B, Transpose A or Determinant A.
Size rules
Addition and subtraction need A and B to be the same size. Multiplication needs the columns of A to equal the rows of B. The determinant requires a square matrix. The tool checks these and tells you if they do not match.
How it computes
Multiplication uses the standard row-by-column dot product; the determinant is found by cofactor expansion, which works for any square size.
Common uses
- Add or subtract two matrices
- Multiply matrices
- Find the determinant
- Transpose a matrix
- Check linear-algebra homework
- Work through engineering problems
- Verify hand calculations
- Learn how matrix operations work