Matrix Calculator with Steps
Enter a matrix row by row, for example [[2, 1], [5, 3]], and say what you need: determinant, inverse, product, rank or reduced row echelon form.
Worked example
Find the inverse of the matrix with rows [2, 1] and [5, 3]
- Compute the determinant. ad − bc = 2 × 3 − 1 × 5 = 1. It is not zero, so the inverse exists
- Swap the diagonal and negate the off-diagonal. Rows [3, −1] and [−5, 2]
- Divide by the determinant. Dividing by 1 leaves the matrix unchanged
Answer: The inverse has rows [3, −1] and [−5, 2]
Check: Multiplying the two matrices gives the identity: first row 2·3 + 1·(−5) = 1 and 2·(−1) + 1·2 = 0.
This example is written out in full. Enter your own problem above and the solver sets out the working the same way.
Where it's used
Matrices hold systems of linear equations and transformations in one object. They are used to solve large systems, to rotate and scale in graphics, in regression and other statistics, and in models that move between states.
How to do it by hand
Check the dimensions
Products need the inner dimensions to match; determinants and inverses need a square matrix.
Use row operations
Swap rows, scale a row, or add a multiple of one row to another to reach echelon form.
Compute the determinant
Use ad − bc for 2×2, cofactor expansion or row reduction for larger matrices.
Find the inverse
Row reduce [A | I] to [I | A⁻¹], or use the adjugate divided by the determinant.
Common mistakes
- Assuming AB = BA.
- Trying to invert a matrix whose determinant is zero.
- Arithmetic slips in row operations that carry through every later step.
Questions about matrices
How do I type a matrix?
Use nested brackets, one inner bracket per row: [[1, 2], [3, 4]]. You can also upload a photo.
Does it find eigenvalues?
Yes. Ask for the eigenvalues and eigenvectors and it works through the characteristic polynomial.
When does a matrix have no inverse?
When its determinant is zero. Its rows are then linearly dependent, and the matching system has either no solution or infinitely many.
Why does the order of multiplication matter?
Matrix multiplication is not commutative: AB and BA are generally different, and one may not even be defined.
What are eigenvalues used for?
They describe the directions a transformation only stretches. They appear in stability analysis, principal component analysis, vibration problems and ranking algorithms.