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
- Choose the number of rows and columns for matrix A (and B if you need two matrices).
- Type each entry. Fractions such as 1/3 and expressions such as sqrt(2) are allowed.
- Click an operation: A × B, det(A), A⁻¹, rref(A) and so on.
- Read the result below. Size mismatches and singular matrices are explained in plain words.
Matrix operations at a glance
| A × B | Needs 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.