Skip to content

Eigenvalue and Eigenvector Calculator

Find the eigenvalues and eigenvectors of a 2×2, 3×3 or 4×4 matrix with the characteristic polynomial, multiplicities, complex eigenvalues and diagonalisation.

Calculator Details

Eigenvalues:5, 2See results ↓

Rows separated by semicolons or new lines, entries by spaces or commas; integers, decimals or fractions like 1/2 (2×2 to 4×4).

Your Results

Eigenvalues: 5, 2

Eigenvalues

5, 2

det(λI − A) = λ^2 − 7λ + 10

Diagonalisable

Yes

A = P D P⁻¹

Trace = Σλ

7

Sum of eigenvalues 7

Determinant = Πλ

10

Product of eigenvalues 10

Distinct eigenvalues

2

2×2 matrix

The characteristic polynomial is λ^2 − 7λ + 10, so the eigenvalues are 5, 2. The matrix is diagonalisable.

Compare scenarios

Save these inputs as a scenario, change them, and compare the results side by side.

Loading, available in a moment

Detailed Breakdown

Eigenvalues and eigenvectors
Eigenvalue λAlgebraic multiplicityGeometric multiplicityEigenvector(s)
511(1, 1)
211(1, −2)

Any non-zero multiple of an eigenvector is also an eigenvector; exact vectors are scaled to whole numbers, numeric ones so the largest entry is 1.

Diagonalisation A = P D P⁻¹

P =
11
1−2
D =
50
02

How This Calculator Works

How it's calculated

A v = λ v ⇔ (A − λI) v = 0 has a non-zero solution ⇔ det(λI − A) = 0

eigenvectors: the null space of A − λI (row-reduce and solve)

checks: trace(A) = Σλ, det(A) = Πλ

Your numbers: for A = [4 1; 2 3], det(λI − A) = λ^2 − 7λ + 10. Its roots are 5, 2. For λ = 5, row-reducing A − λI leaves 1 free variable, giving (1, 1). Check: the eigenvalues add up to 7 (the trace is 7) and multiply to 10 (the determinant is 10).

Frequently Asked Questions

What is an eigenvalue?

A number λ for which A v = λ v has a non-zero solution v: multiplying the eigenvector v by the matrix only stretches it by λ (or flips it if λ is negative). For the default matrix [[4, 1], [2, 3]] the eigenvalues are 5, 2: A doubles the vector (1, −2) and multiplies (1, 1) by 5.

How do you find eigenvalues by hand?

Solve det(λI − A) = 0. For a 2×2 matrix that is λ² − (trace)λ + det = 0; for [[4, 1], [2, 3]] it is λ^2 − 7λ + 10, whose roots are 5, 2. Then, for each λ, row-reduce A − λI and solve for the null space to get the eigenvectors.

What is the characteristic polynomial?

det(λI − A), a polynomial of degree n in λ whose roots are the eigenvalues. Its λⁿ⁻¹ coefficient is minus the trace and its constant term is (−1)ⁿ times the determinant, which is why the eigenvalues always add up to the trace and multiply to the determinant.

Why are some eigenvalues complex?

A real matrix can rotate vectors, and a rotation leaves no real direction unchanged. The 90° rotation [[0, −1], [1, 0]] has characteristic polynomial λ^2 + 1 and eigenvalues i, −i. Complex eigenvalues of a real matrix always come in conjugate pairs a ± bi.

What do algebraic and geometric multiplicity mean?

The algebraic multiplicity is how many times λ is a root of the characteristic polynomial; the geometric multiplicity is how many independent eigenvectors it has. The geometric is never more than the algebraic. The shear [[1, 1], [0, 1]] has λ = 1 twice but only one eigenvector, so it is not diagonalisable.

When is a matrix diagonalisable?

When it has n independent eigenvectors: then A = P D P⁻¹ with the eigenvectors as the columns of P and the eigenvalues on the diagonal of D. A matrix with n distinct eigenvalues is always diagonalisable, and so is every real symmetric matrix (with orthogonal eigenvectors). Powers are then easy: Aᵏ = P Dᵏ P⁻¹.

Are the results exact?

The characteristic polynomial is computed exactly with fractions. When it factors over the rationals into linear and quadratic factors, the eigenvalues are given exactly (with square roots where needed) and eigenvectors of rational eigenvalues are exact. Otherwise, as for most 3×3 and 4×4 matrices with irrational eigenvalues, they are found numerically to about 10 significant figures and marked “numeric”.

Square matrices from 2×2 to 4×4 with rational entries. The characteristic polynomial is exact (Faddeev–LeVerrier with fractions); eigenvalues are exact when it factors over the rationals into linear and quadratic factors and numerical otherwise (Durand–Kerner iteration), and eigenvectors come from the null space of A − λI, exactly for rational eigenvalues. Results were checked against NumPy (LAPACK). Not included: matrices larger than 4×4, closed-form (Cardano) radicals for irreducible cubics, Jordan normal form and generalised eigenvectors, P⁻¹, singular values, and symbolic entries.

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.

Spotted a wrong result or a bug? Report a problem

May we count your visits with Invoker Analytics? It keeps a random visitor number in your browser. Your calculator inputs are never sent. Privacy policy