Matrix calculator

Determinant, inverse, multiply, transpose, RREF up to 6×6. Free, no sign-up.

A
B
Quick answer

Enter up to two matrices, A and B, up to 6×6, then choose an operation. The calculator multiplies, adds and subtracts matrices, finds the determinant, inverse, transpose, rank, trace and powers, and row-reduces to RREF, showing results as exact fractions where possible.

How to use the matrix calculator

  1. Choose the number of rows and columns for matrix A (and B if you need two matrices).
  2. Type each entry. Fractions such as 1/3 and expressions such as sqrt(2) are allowed.
  3. Click an operation: A × B, det(A), A⁻¹, rref(A) and so on.
  4. Read the result below. Size mismatches and singular matrices are explained in plain words.

Matrix operations at a glance

A × BNeeds columns of A = rows of B; the result has A’s rows and B’s columns
det(A)Square matrices only; 2×2: ad − bc
A⁻¹Exists only when det(A) ≠ 0
rref(A)Gauss–Jordan elimination with partial pivoting

New to matrices? Read the matrices guide.

Frequently asked questions

Can I enter fractions?

Yes. Type 1/3 or any expression such as sqrt(2) into a cell. Results are shown as fractions when they are simple fractions.

Why can’t I find the inverse?

Only square matrices with a non-zero determinant have inverses. If det(A) = 0 the matrix is singular.

What is RREF used for?

Reduced row echelon form solves systems of linear equations. Enter the augmented matrix [A | b] and read the solution from the last column.