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.
| 3 | −1 |
| −5 | 2 |
- R1 → R1 ÷ 2
- R2 → R2 − 5·R1
- R2 → R2 ÷ 1/2
- R1 → R1 − 1/2·R2
How to use it
- 1Type the matrix with one row per line and spaces between entries. Fractions like 1/2 and decimals both work.
- 2Choose the operation. For A × B, A + B and A − B, a second box appears for matrix B.
- 3The answer stays in exact fractions, so nothing is rounded, and the row operations are listed underneath.
What it can do
| Operation | What you get |
|---|---|
| Inverse | A⁻¹ by row reduction, checked by multiplying back to the identity |
| Determinant | det(A) with the row operations that find it |
| A × B | The product, with one entry worked in full |
| RREF | Reduced row echelon form, with every row operation |
| Rank | The number of independent rows, plus the nullity |
| Transpose | Rows swapped with columns |
| Eigenvalues | The 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?
How big a matrix can it handle?
Does it show steps?
Is it free?
Related tools and guides
The inverse of any square matrix, in exact fractions with steps.
Multiply matrices of any compatible size, with the working.
Determinants up to 8 × 8 in exact fractions, with steps.
Reduced row echelon form with every row operation listed.
The characteristic polynomial, eigenvalues and eigenvectors.
Solve linear systems by elimination, in exact fractions.
It opens instantly, with no account and nothing to install.