Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Matrix calculator

Exact matrix maths with fractions: determinant, inverse, row reduction with every step, rank, products, powers and eigenvalues, up to 10 x 10.

How to use

  1. Type matrix A one row per line, with spaces or commas between entries. Whole numbers, decimals (2.5) and fractions (3/4) all work.
  2. Pick what to do. For A + B, A × B and similar, also fill in B.
  3. Press Calculate (or Ctrl + Enter in the A box). Answers are exact fractions; tick the box for decimals.
  4. Use the result as A lets you chain steps, for example invert and then multiply.

Keyboard and touch

Ctrl + EnterCalculate from the A box
TabMove between boxes, lists and buttons

Tips

  • A × B and B × A are usually different: matrix multiplication does not commute.
  • A matrix has an inverse exactly when its determinant is not 0, which is also when its rank equals its size.
  • The row operations in "Row reduce" are the ones you would write in an exam: swap rows, divide a row, subtract a multiple of another row.
  • A rotation has complex eigenvalues: no direction stays put.
  • To solve a system of linear equations, use our Equation solver.

About this calculator

All arithmetic uses exact fractions with whole numbers of any size, so there are no rounding errors: decimals you type are turned into exact fractions first. Determinants, inverses, rank and the null space come from Gauss-Jordan elimination. Powers use repeated squaring; negative powers use the inverse.

The characteristic polynomial det(λI − A) is found exactly by the Faddeev-LeVerrier method. Its roots, the eigenvalues, are found numerically with the Durand-Kerner method, so they are shown to about ten significant digits, including complex pairs; eigenvectors are shown when an eigenvalue is a simple number. Up to 10 × 10 matrices (eigenvalues up to 8 × 8). Everything runs in your browser.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product