Matrix Calculator (exact fractions)

Enter one or two matrices and choose an operation, from multiplication and inverse to determinant, rank, RREF, powers and linear systems, with exact fraction results.

Use the tool

Why this tool exists

Matrix homework and engineering checks share the same problem: decimals hide the structure. A determinant that should be zero comes out as 0.0000001, and an inverse full of long decimals is hard to verify. Exact fractions make the answers readable and let you see at once whether a matrix is singular.

This calculator keeps every entry as a rational number using BigInt, so one third stays one third. You can multiply, transpose, find rank and reduced row echelon form, solve Ax = b and raise a matrix to a power. Eigenvalues use a floating-point method and are labelled as such. It runs in your browser, so your coursework or model data stays on your device.

How to use it

  1. Type matrix A with one row per line and entries separated by spaces or commas; fractions like 3/4 are allowed.
  2. Add matrix B, or the right-hand side vector b for a linear system, if the operation needs it.
  3. Pick the operation from the list and set the power n for A^n.
  4. Read the exact result, with a decimal view where it helps.

Frequently asked questions

Are the answers exact?

Yes for everything except eigenvalues. Entries are stored as fractions, so determinants, inverses, RREF and solutions are exact. Eigenvalues come from a floating-point QR iteration and are shown rounded.

Why do I get no real eigenvalues?

The method finds real eigenvalues only. Matrices with complex eigenvalues, such as a rotation, may not converge, and the tool tells you when the iteration did not settle.

What happens with a singular matrix?

The determinant shows zero and the tool reports that the matrix has no inverse. For a linear system you get a message instead of a unique solution when the equations are dependent or inconsistent.