Audited 29 Jul 2026·Last updated 31 Jul 2026·5 citations·Tier 1·0 uses

Eigenvalue and Eigenvector Calculator

Find eigenvalues, eigenvectors, the characteristic polynomial and the diagonalisation A = PDP⁻¹ of any 2x2 or 3x3 matrix, with every step shown.

Eigenvalue and Eigenvector Calculator

One row per line — 2 rows for a 2x2, 3 rows for a 3x3. Separate entries with commas or spaces. Fractions like 1/2 are accepted.
Eigenvalues (λ)
5, 2
Every root of det(A − λI) = 0, listed with multiplicity. Complex roots are shown as a ± bi — a real matrix can genuinely have them, and this page reports them rather than hiding them.
Eigenvectors
λ = 5 → (1, 1); λ = 2 → (-1, 2)
Characteristic equation
λ^2 - 7λ + 10 = 0
Diagonalisable?
Yes — 2 independent eigenvectors span R^2, so A = PDP^-1
P (eigenvector matrix)
[1, -1; 1, 2]
D (diagonal matrix)
[5, 0; 0, 2]
Trace of A
7
Determinant of A
10
Real eigenvalues
2

Background.

This eigenvalue and eigenvector calculator takes a 2x2 or 3x3 matrix and returns everything the eigenvalue problem produces: the characteristic equation, every eigenvalue with its multiplicity, a basis of eigenvectors for each eigenspace, a straight yes-or-no verdict on whether the matrix is diagonalisable, and — when it is — the matrices P and D that satisfy A = PDP⁻¹. Type the matrix one row per line, with entries separated by commas or spaces, and read the whole picture at once.

An eigenvector of a square matrix A is a non-zero vector v that the matrix does not turn. Multiplying by A stretches or shrinks it, and may flip it end to end, but it stays on the same line through the origin: Av = λv. The scale factor λ is the eigenvalue attached to that direction. Almost every vector fails this test — a general matrix rotates almost everything it touches — so the handful of directions that survive tell you what the matrix fundamentally does. That is why eigenvalues show up wherever repeated application of the same linear step matters: the long-run behaviour of a Markov chain, the stability of an equilibrium in a differential equation, the principal axes of a stress tensor, the components in principal component analysis, and the natural frequencies of a vibrating structure.

The arithmetic starts from a rearrangement. Av = λv means (A − λI)v = 0, and a non-zero v can only solve that homogeneous system if the matrix (A − λI) is singular — if it collapses some direction to zero. A square matrix is singular exactly when its determinant vanishes, so the eigenvalues are precisely the roots of det(A − λI) = 0, the characteristic equation. For a 2x2 matrix that determinant expands to λ² − (trace)λ + (determinant), a quadratic. For a 3x3 it is a cubic. Once you have a root λ, you put it back into (A − λI)v = 0 and solve the homogeneous system by row reduction; the resulting null space is the eigenspace for that λ, and any basis for it is a valid set of eigenvectors.

Diagonalisation is the payoff, and it is where most of the confusion lives. If an n-by-n matrix has n linearly independent eigenvectors, you can stack them as the columns of a matrix P, put the matching eigenvalues on the diagonal of D, and write A = PDP⁻¹. That factorisation makes powers trivial — Aᵏ = PDᵏP⁻¹, and raising a diagonal matrix to a power just raises each diagonal entry — which is why it underpins so much of applied linear algebra. The common misconception is that a repeated eigenvalue rules diagonalisation out. It does not. This calculator reports two matrices with repeated eigenvalues that behave completely differently: one has a repeated eigenvalue with two independent eigenvectors and diagonalises fine, the other has a repeated eigenvalue with only one and cannot be diagonalised at all. The verdict on this page is computed from the eigenvector count, never from whether a root repeated.

Two limits are worth knowing before you read the result, and neither is buried in an FAQ. First, this page handles 2x2 and 3x3 matrices only. That is a mathematical boundary rather than a shortcut: the characteristic polynomial has the same degree as the matrix, and there is no formula in radicals for the roots of a general polynomial of degree five or higher, so every tool that claims to do large matrices is running an iterative numerical algorithm with its own convergence caveats. Rather than present an approximation as if it were exact, this calculator declines matrices larger than 3x3 and says so. Second, a real matrix can have complex eigenvalues — a rotation is the standard example, since no real line survives a rotation. When that happens the page reports the conjugate pair, reports that no real eigenvector exists, and says the matrix is diagonalisable over the complex numbers but not over the reals, instead of returning an empty answer.

What is eigenvalue and eigenvector calculator?

An eigenvector of a square matrix A is a non-zero vector v satisfying Av = λv for some scalar λ, and that λ is the corresponding eigenvalue. Rearranged, (A − λI)v = 0 has a non-trivial solution only when A − λI is singular, so the eigenvalues are exactly the roots of the characteristic equation det(A − λI) = 0. For a 2x2 matrix this expands to λ² − (tr A)λ + det A = 0; for a 3x3 matrix to λ³ − (tr A)λ² + c₁λ − det A = 0, where c₁ is the sum of the three principal 2x2 minors. The set of all solutions of (A − λI)v = 0 for a fixed λ is the λ-eigenspace, which is the null space Nul(A − λI); its dimension is the geometric multiplicity of λ, while the number of times λ repeats as a root of the characteristic polynomial is its algebraic multiplicity. The geometric multiplicity never exceeds the algebraic one. A matrix is diagonalisable — expressible as A = PDP⁻¹ with D diagonal — if and only if it has n linearly independent eigenvectors in total, equivalently if and only if the geometric and algebraic multiplicities agree for every eigenvalue. A matrix where they disagree is called defective. Two invariants give a free check on any answer: the sum of the eigenvalues always equals the trace of A, and their product always equals the determinant of A.

How to use this calculator.

  1. Type your matrix into the box, one row per line. Use commas or spaces between entries — '4, 1' and '4 1' both work, and you can write a semicolon instead of a line break.
  2. Enter 2 rows for a 2x2 matrix or 3 rows for a 3x3. Every row must have the same number of entries as there are rows, because eigenvalues only exist for square matrices.
  3. Fractions are accepted directly: write 1/2 rather than 0.5 if that is how your problem is stated.
  4. Read the eigenvalues at the top. They are listed with multiplicity, so a repeated root appears twice.
  5. Check your answer for free: the eigenvalues should add up to the trace and multiply to the determinant, both of which are shown in the breakdown.
  6. Read the eigenvectors panel for a basis of each eigenspace. Any non-zero multiple of a listed vector is an equally valid eigenvector.
  7. Read the diagonalisable verdict. If it says yes, P and D are given directly and A = PDP⁻¹.
  8. If the eigenvalues come back as a ± bi, the matrix rotates every real direction and has no real eigenvector — that is a genuine answer, not an error.

The formula.

det(A − λI) = 0 , (A − λI)v = 0 , A = PDP⁻¹

Start from Av = λv and move everything to one side: (A − λI)v = 0. A homogeneous system has a non-zero solution only when its matrix is singular, and a square matrix is singular exactly when its determinant is zero, so every eigenvalue is a root of det(A − λI) = 0. Expanding that determinant for a 2x2 matrix gives λ² − (tr A)λ + det A, and for a 3x3 matrix gives λ³ − (tr A)λ² + c₁λ − det A, where c₁ adds up the three principal 2x2 minors. The 2x2 case is solved by the quadratic formula. The 3x3 case is solved in closed form by first removing the squared term with the substitution λ = t − p/3, which turns the cubic into t³ + Pt + Q; the sign of the discriminant Δ = (Q/2)² + (P/3)³ then decides the branch — three distinct real roots when Δ is negative (trigonometric form), a repeated root when Δ is zero, and one real root with a complex conjugate pair when Δ is positive (Cardano's form). Rounding happens in exactly two places, both after the mathematics is complete. Roots are computed at 60 significant digits and then polished by Newton's method on the exact characteristic polynomial; a root landing within 1e-9 of an integer is snapped to that integer before the eigenvector step, because a residual of even 1e-9 in λ makes (A − λI) non-singular and would wrongly return no eigenvector. Everything else is display formatting at 6 decimal places, or as an exact fraction where one with a denominator up to 1000 fits. With λ in hand, each eigenvector comes from row-reducing (A − λI) to reduced row echelon form and reading a null-space basis off the free columns. The diagonalisable verdict counts how many independent eigenvectors that produced in total and compares it to n — an unrounded integer comparison that no displayed value takes part in.

A worked example.

Example

Take A = [[4, 1], [2, 3]]. Its trace is 4 + 3 = 7 and its determinant is 4×3 − 1×2 = 10, so the characteristic equation is λ² − 7λ + 10 = 0, which factors as (λ − 5)(λ − 2) = 0. The eigenvalues are therefore 5 and 2. Check them against the invariants before going further: 5 + 2 = 7 matches the trace, and 5 × 2 = 10 matches the determinant. For λ = 5, subtract 5 from each diagonal entry to get A − 5I = [[−1, 1], [2, −2]]; row reduction collapses this to [[1, −1], [0, 0]], so x₁ = x₂ and setting the free variable x₂ = 1 gives the eigenvector (1, 1). For λ = 2, A − 2I = [[2, 1], [2, 1]] reduces to [[1, ½], [0, 0]], so x₁ = −½x₂; setting x₂ = 1 gives (−½, 1), which is cleaner scaled by 2 to (−1, 2). Two independent eigenvectors for a 2x2 matrix means A is diagonalisable, so P = [1, −1; 1, 2] and D = [5, 0; 0, 2]. That factorisation can be checked by hand: det P = 1×2 − (−1)×1 = 3, so P⁻¹ = ⅓[[2, 1], [−1, 1]]; then PD = [[5, −2], [5, 4]] and PDP⁻¹ = ⅓[[12, 3], [6, 9]] = [[4, 1], [2, 3]], which is A again.

matrix4, 1 2, 3

Frequently asked questions.

How do you find eigenvalues by hand?
Subtract λ from each diagonal entry of A, take the determinant of the result, set it equal to zero, and solve. For a 2x2 matrix that determinant is always λ² − (trace)λ + (determinant), so for A = [[4, 1], [2, 3]] you get λ² − 7λ + 10 = 0 and the roots 5 and 2. For a 3x3 matrix you get a cubic, λ³ − (trace)λ² + c₁λ − (determinant), where c₁ is the sum of the three principal 2x2 minors. Always sanity-check the roots against the two invariants: they must add to the trace and multiply to the determinant.
How do you find the eigenvector once you have the eigenvalue?
Put the eigenvalue back into (A − λI)v = 0 and solve that homogeneous system by row reduction. The eigenvectors for λ are exactly the non-zero vectors in the null space of A − λI, which is why that null space is called the λ-eigenspace. In the worked example, λ = 5 turns A − 5I = [[−1, 1], [2, −2]] into the single condition x₁ = x₂, so every multiple of (1, 1) is an eigenvector. There is never a unique answer here — eigenvectors are defined only up to a non-zero scalar.
Why does the calculator only accept 2x2 and 3x3 matrices?
Because the characteristic polynomial has the same degree as the matrix, and closed-form root formulas run out. Degree 2 has the quadratic formula and degree 3 has Cardano's, both of which this page uses exactly. Degree 5 and above has no formula in radicals at all — that is the Abel–Ruffini theorem, a proven impossibility rather than a gap in anyone's knowledge. Larger matrices are handled numerically, usually by the shifted QR algorithm, which is iterative and carries convergence caveats of its own. Presenting that as an exact answer would be misleading, so this page declines instead.
Does a repeated eigenvalue mean a matrix is not diagonalisable?
No, and this is the most common misconception about diagonalisation. What matters is the number of linearly independent eigenvectors, not the number of distinct eigenvalues. The matrix [[1, 2, 0], [2, 1, 0], [0, 0, 3]] has the eigenvalue 3 twice and is perfectly diagonalisable, because the eigenspace for 3 is two-dimensional. The matrix [[4, 1, 0], [0, 4, 0], [0, 0, 5]] also has a repeated eigenvalue, 4, but its eigenspace is only one-dimensional, so it has just two independent eigenvectors for a three-dimensional space and cannot be diagonalised. A matrix like that is called defective. This calculator decides the verdict by counting eigenvectors, exactly as the diagonalisation theorem requires.
What does it mean when the eigenvalues are complex?
It means no real direction survives the transformation. The clearest example is a 90-degree rotation, [[0, −1], [1, 0]], whose eigenvalues are +i and −i. Rotating the plane by a quarter turn leaves no line through the origin pointing the same way, so there is genuinely no real eigenvector to find. The matrix is still diagonalisable over the complex numbers, and the conjugate pair carries useful information: the magnitude of the complex eigenvalue is the scaling factor and its argument is the rotation angle. This calculator reports the pair and states plainly that no real eigenvector exists, rather than returning nothing.
What are P and D, and how do I use A = PDP⁻¹?
P is the matrix whose columns are the eigenvectors and D is the diagonal matrix holding the matching eigenvalues in the same order — the order matters, since column k of P must pair with entry k of D. The factorisation makes repeated application cheap: A² = PDP⁻¹PDP⁻¹ = PD²P⁻¹, and in general Aᵏ = PDᵏP⁻¹, where raising a diagonal matrix to a power just raises each diagonal entry to that power. That is why diagonalisation is the standard route to the long-run state of a Markov chain, to solving systems of linear differential equations, and to computing matrix exponentials.
What do the trace and determinant tell me about the eigenvalues?
They give you two free checks on any eigenvalue calculation. The sum of all the eigenvalues, counted with multiplicity, always equals the trace of A, and their product always equals the determinant. In the worked example the eigenvalues 5 and 2 sum to 7, which is the trace, and multiply to 10, which is the determinant. These identities also hold when the eigenvalues are complex, since the imaginary parts of a conjugate pair cancel in the sum and combine to a real number in the product. A determinant of exactly zero tells you immediately that zero is one of the eigenvalues and that the matrix is singular.
Why is my eigenvector different from the one shown here?
Almost certainly because you scaled it differently, and both answers are correct. If v is an eigenvector for λ, so is every non-zero multiple of v, because A(cv) = c(Av) = c(λv) = λ(cv). This calculator scales each eigenvector to the smallest whole numbers it can when the entries are rational, and otherwise leaves it in the form produced by setting the free variable to 1. A textbook might normalise the same vector to unit length instead, so where this page shows (−1, 2) another source might show (−1/√5, 2/√5). When an eigenvalue has an eigenspace of dimension two or more, the basis itself is not unique either — any two independent vectors from the same plane are an equally valid answer.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 977 calculators remain free
  • No billing is enabled
Coming soon