MatrixCalc

Matrix Calculator

Add, subtract, multiply, transpose, determinant, inverse, rank, trace and power. Up to 50×50.

Matrix A
rows: 3
cols: 3
Matrix B
rows: 3
cols: 3
Operations
Result
Pick an operation to see the result here. Errors will show up in this area.

Tips: adjust sizes (max 50×50). For A×B, cols(A)=rows(B). det/inverse/trace/power require square matrices.

React, Tailwind & shadcn/ui. No external math deps. — English

Eigenvalue and eigenvector calculator

Find the eigenvalues and eigenvectors of a square matrix, plus its characteristic polynomial, computed with the Jacobi and QR algorithms.

Enter a square matrix, open the Advanced tab and use eig(A) for the eigenvalues or eigvec(A) for the eigenvectors. The Decompositions tab additionally gives the characteristic polynomial in exact arithmetic.

What an eigenvector is

Most vectors change direction when a matrix acts on them. An eigenvector is one of the rare directions that survives: the matrix only stretches or shrinks it. The factor by which it does so is the eigenvalue. Formally, A·v = λ·v for a non-zero vector v.

They come from the characteristic equation det(A − λI) = 0, which is where the determinant reappears. For a 2×2 matrix that equation is a quadratic; solving it gives both eigenvalues.

Worked example

21
12
→ p(λ) = λ² − 4λ + 3 → λ = 3 and λ = 1

The eigenvector for λ = 3 is (1, 1): the matrix triples anything along that diagonal. For λ = 1 it is (1, −1), which the matrix leaves untouched.

A limitation worth knowing

This calculator computes eigenvalues numerically — Jacobi rotations for symmetric matrices, the QR algorithm otherwise. Both are iterative, so eigenvalues are the one operation without a step-by-step solution: the intermediate iterations would teach you nothing. They also converge to real eigenvalues only; a rotation matrix, whose eigenvalues are complex, will report that it did not converge rather than invent an answer.

Common mistakes

  • Expecting eigenvalues for a rectangular matrix. They are defined only for square matrices — singular values are the rectangular analogue.
  • Treating an eigenvector as unique. Any non-zero multiple of an eigenvector is also an eigenvector; only the direction is determined.
  • Assuming they are always real. Real matrices can perfectly well have complex eigenvalues.

Frequently asked questions

Why does the calculator say QR did not converge?
The matrix most likely has complex eigenvalues, which the real QR iteration cannot reach. Rotation matrices are the classic example.
Why is there no step-by-step for eigenvalues?
The algorithms are iterative and numeric rather than algebraic. Their intermediate steps are rounding artefacts, not reasoning you could reproduce by hand.
How many eigenvalues does a matrix have?
An n×n matrix has exactly n eigenvalues counted with multiplicity, though some may repeat or be complex.
What is the characteristic polynomial for?
Its roots are the eigenvalues. The calculator computes it exactly with the Faddeev–LeVerrier method, in the Decompositions tab.

Want the full explanation? Read the guide: How to calculate the determinant of a matrix

Other calculators