Skip to content
Jellykit

Matrix Calculator

Add, subtract, multiply, transpose, invert and raise matrices to powers, and find determinants, rank and eigenvalues exactly.

  • Runs on your device
Loading tool

About Matrix Calculator

Type or paste one or two matrices, one row per line, and choose what to do with them: add, subtract or multiply them, transpose or invert A, raise it to a power, or find its determinant, rank, eigenvalues and eigenvectors. Entries can be whole numbers, decimals or fractions such as 3/4.

Every calculation except the eigenvalues is done in exact fractions, so a singular matrix has a determinant of exactly 0 and an inverse comes out as fractions rather than long decimals. Rational eigenvalues are exact too; irrational and complex ones are rounded to 15 significant digits. Matrices can be up to 10 × 10.

How it works

  1. Each entry is read as an exact fraction: 0.1 is 1/10, not the nearest binary number. Sums, products, powers and transposes follow directly.
  2. The determinant is found by fraction-free elimination, and the rank and inverse by Gauss–Jordan elimination, all without rounding.
  3. For eigenvalues, the characteristic polynomial det(λI − A) is built exactly, repeated roots are separated exactly, and the roots are then found numerically and checked: a root that is a fraction is confirmed by substituting it back.
  4. Inputs are kept in the page address, so a calculation can be bookmarked or shared as a link.

Questions

How do I type a matrix?

Put each row on its own line and separate the entries with spaces or commas, for example "1 2" then "3 4". Brackets are ignored, so [[1, 2], [3, 4]] works as well.

How large can the matrices be?

Up to 10 rows and 10 columns, with at most 15 digits in each numerator and denominator. Powers go up to 20.

Why do some eigenvalues show as decimals?

Eigenvalues that are fractions or whole numbers are shown exactly, with their eigenvectors. Irrational ones such as 2 + √2 and complex ones cannot be written as fractions, so they are rounded to 15 significant digits.

What does it mean when the matrix has no inverse?

Its determinant is exactly 0, so its rows are linearly dependent and no matrix multiplies it to the identity. The rank tells you how many rows are independent.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.