Skip to content
ihateDesmos

Matrix calculator

Do any common matrix operation and see how it was done. Answers stay in exact fractions, not rounded decimals, and row operations are listed step by step. It handles matrices up to 8 × 8.

Inverse of A
3−1
−52
Check
A × A⁻¹ = I, the identity
Steps: row-reduce [A | I] until the left side is I
  1. R1 → R1 ÷ 2
  2. R2 → R2 − 5·R1
  3. R2 → R2 ÷ 1/2
  4. R1 → R1 − 1/2·R2

How to use it

  1. 1
    Type the matrix with one row per line and spaces between entries. Fractions like 1/2 and decimals both work.
  2. 2
    Choose the operation. For A × B, A + B and A − B, a second box appears for matrix B.
  3. 3
    The answer stays in exact fractions, so nothing is rounded, and the row operations are listed underneath.

What it can do

OperationWhat you get
InverseA⁻¹ by row reduction, checked by multiplying back to the identity
Determinantdet(A) with the row operations that find it
A × BThe product, with one entry worked in full
RREFReduced row echelon form, with every row operation
RankThe number of independent rows, plus the nullity
TransposeRows swapped with columns
EigenvaluesThe characteristic polynomial, its roots and eigenvectors
A + B, A − B, AⁿEntry by entry sums, and repeated products

Why exact fractions matter

Many matrix calculators work in decimals, so 1/3 becomes 0.333333 and rounding errors build up as you go. A result that should be exactly zero comes out as 0.0000000001, which can make a singular matrix look invertible. This calculator keeps every entry as an exact fraction of whole numbers of any size, so 1/3 stays 1/3 and zero means zero.

Where matrices come up

  • Systems of equations: write the system as Ax = b and row-reduce, or use the system of equations calculator.
  • Geometry and graphics: rotations, reflections and scaling are all matrices. The graphing calculator can animate what a matrix does to the plane.
  • Statistics: regression is solved through matrix equations.
  • Long-term behaviour: eigenvalues describe how repeated applications of a matrix grow or settle down.

Frequently asked questions

How do I type a matrix?
One row per line, with spaces or commas between entries. For example, type “1 2” on one line and “3 4” on the next for a 2 × 2 matrix.
How big a matrix can it handle?
Up to 8 × 8, with exact fractions throughout.
Does it show steps?
Yes, for the inverse, determinant, RREF and multiplication. Each row operation is listed in order.
Is it free?
Yes, with no account and no limit. It runs in your browser, and your numbers stay there.

Related tools and guides

Try the matrix calculator

It opens instantly, with no account and nothing to install.

Open the calculator