Eigenvalue Calculator: Eigenvalues and Eigenvectors with Steps
By FindMySum · Last reviewed
An eigenvector of a square matrix A is a non-zero vector that the matrix only stretches, without changing its direction: A v = λ v. The stretch factor λ is the eigenvalue. Eigenvalues and eigenvectors describe what a matrix does in the simplest possible terms, and they appear everywhere from vibrating bridges and population models to statistics and search engines. This calculator finds them for any 2×2, 3×3 or 4×4 matrix with integer, decimal or fractional entries, and shows the characteristic polynomial, the multiplicities and, where possible, the diagonalisation A = P D P⁻¹.
Step 1: the characteristic polynomial
A v = λ v can be rewritten as (λI − A) v = 0. That system has a non-zero solution only if the matrix λI − A is singular, so its determinant is zero:
det(λI − A) = 0
The left side is a polynomial of degree n in λ, the characteristic polynomial. The calculator computes it exactly, with fractions, using the Faddeev–LeVerrier recursion, which builds the coefficients from traces of matrix products instead of expanding a determinant full of λs. For a 2×2 matrix it reduces to λ² − (trace)λ + det.
Step 2: the eigenvalues
The eigenvalues are the roots of the characteristic polynomial. The calculator first tries to factor it over the rational numbers: every rational root becomes an exact eigenvalue, and every leftover quadratic factor gives a pair by the quadratic formula, either real with a square root or a complex-conjugate pair. When the polynomial has an irreducible cubic or quartic factor, which is common for 3×3 and 4×4 matrices, the roots are found numerically and marked as such.
Two checks always hold: the eigenvalues add up to the trace (the sum of the diagonal) and multiply to the determinant. The calculator shows both.
Step 3: the eigenvectors
For each eigenvalue, the eigenvectors are the non-zero solutions of (A − λI) v = 0: the null space of A − λI. Row-reduce A − λI; each column without a pivot is a free variable and gives one basis eigenvector. The number of them is the eigenvalue's geometric multiplicity. Exact eigenvalues give exact eigenvectors, scaled to whole numbers; numerical ones are scaled so the largest entry is 1.
Worked example
The calculator opens on A = [[4, 1], [2, 3]].
- Trace 7, determinant 4 × 3 − 1 × 2 = 10, so det(λI − A) = λ² − 7λ + 10 = (λ − 5)(λ − 2).
- Eigenvalues: 5 and 2. Check: 5 + 2 = 7 and 5 × 2 = 10.
- For λ = 5: A − 5I = [[−1, 1], [2, −2]] row-reduces to [[1, −1], [0, 0]], so x = y and v = (1, 1).
- For λ = 2: A − 2I = [[2, 1], [2, 1]] row-reduces to [[1, ½], [0, 0]], so y = −2x and v = (1, −2).
- Two independent eigenvectors for a 2×2 matrix, so A is diagonalisable: P = [[1, 1], [1, −2]] and D = diag(5, 2).
Multiplicity and diagonalisation
An eigenvalue that is a repeated root has algebraic multiplicity greater than 1. It may still have that many independent eigenvectors (the identity matrix has λ = 1 n times and every vector is an eigenvector), or fewer. The shear [[1, 1], [0, 1]] has λ = 1 twice but only the eigenvector (1, 0), so it cannot be diagonalised; it needs a Jordan form instead.
A matrix is diagonalisable exactly when the geometric multiplicities add up to n. Then A = P D P⁻¹, with eigenvectors as the columns of P and eigenvalues on the diagonal of D, and powers become simple: Aᵏ = P Dᵏ P⁻¹. Distinct eigenvalues guarantee it, and real symmetric matrices are always diagonalisable with real eigenvalues and perpendicular eigenvectors.
Complex eigenvalues
A real matrix that rotates vectors has no real direction it leaves alone, so its eigenvalues are complex. They always come in conjugate pairs a ± bi, and their eigenvectors are conjugates too. The 90° rotation [[0, −1], [1, 0]] has λ² + 1 = 0 and eigenvalues ±i. The size of a complex eigenvalue, √(a² + b²), is the factor by which the rotation also scales vectors.
More questions
Can an eigenvalue be zero?
Yes. λ = 0 is an eigenvalue exactly when A v = 0 has a non-zero solution, which means the matrix is singular: its determinant is 0 and it has no inverse. The eigenvectors for λ = 0 span the null space of A.
Can an eigenvector be the zero vector?
No. The zero vector satisfies A·0 = λ·0 for every λ, so it is excluded by definition. Eigenvalues are the λ for which a non-zero solution exists, and the eigenvectors are the non-zero vectors of each null space.
What are eigenvalues used for?
They describe how a linear transformation acts in its natural directions. They give the long-run behaviour of Markov chains and population models (the eigenvalue 1 and the dominant eigenvalue), the vibration frequencies of structures, the stability of differential equations, principal components in statistics (eigenvectors of the covariance matrix) and Google's original PageRank.
Do similar matrices have the same eigenvalues?
Yes. If B = S⁻¹ A S, then B has the same characteristic polynomial as A, so the same eigenvalues with the same multiplicities; the eigenvectors change to S⁻¹v. Diagonalisation is the special case where B is diagonal.
Why do the eigenvalues of a triangular matrix sit on its diagonal?
For a triangular matrix, λI − A is triangular too, and the determinant of a triangular matrix is the product of its diagonal entries. So det(λI − A) = (λ − a₁₁)(λ − a₂₂)…(λ − aₙₙ), whose roots are the diagonal entries.
Sources
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.