Matrix Calculator: Determinant, Inverse, RREF, Power

Matrix arithmetic up to 5×5: A±B, A×B, scalar, determinant, inverse, transpose, RREF, rank, trace and integer powers, with exact fractions.

How to use it

Set the dimensions, enter entries (expressions like 1/3 are accepted) and pick an operation. Determinants and inverses use LU-style elimination with partial pivoting; RREF and rank use Gauss–Jordan with a 1e-12 pivot tolerance.

What it can do

  • A + B, A − B, A × B, k·A, Aⁿ (negative n uses the inverse)
  • Determinant, inverse, transpose, trace
  • RREF and rank with tolerance handling
  • Rational output when entries are exact
  • Entries may be expressions such as 1/3 or sqrt(2)
  • Tab-separated copy for spreadsheets

Common questions

Which tolerance is used?

Pivots smaller than 1e-12 are treated as zero.

Are results exact?

They are floating point. Values that are recognizably rational are shown as fractions.

What is the maximum size?

5 × 5.

How is Aⁿ computed?

By repeated squaring. For negative n the inverse is used first.

More calculators