Matrix calculator with steps

Enter your matrices and pick an operation. Determinant, inverse and RREF show every row operation, so you can check your working.

n k

Result

Pick an operation above. Determinant, inverse and RREF show every row step.

How to use the matrix calculator with steps

  1. Choose the size of A and B with the row and column menus.
  2. Type numbers or fractions such as 3/4 in the cells.
  3. Press det(A), A⁻¹ or RREF(A) to see the answer with steps.
  4. For A × B, the columns of A must equal the rows of B.

Worked examples

ExampleInputResult
2×2 determinant[[1,2],[3,4]]det = 1·4 − 2·3 = −2
3×3 inverse[[2,1,0],[1,3,1],[0,1,4]]det = 18, so the inverse exists
Rank[[1,2],[2,4]]rank 1, because row 2 = 2 × row 1

Frequently asked questions

When does a matrix have no inverse?

When its determinant is 0. Such a matrix is called singular.

Can I enter fractions?

Yes. Type 2/3 or 0.5. Answers are shown as fractions when they are simple.

Is A × B the same as B × A?

Usually not. Matrix multiplication is not commutative. Try both buttons to compare.

What is RREF?

Reduced row echelon form: each pivot is 1 with zeros above and below it. The number of pivots is the rank.

More free math tools