Skip to content
  • Open the math solver
  • Ask the AI tutor
  • Find an AP course
  • Create a quiz
  • Open the calculator
  • Graphing Calculator
  • Browse all calculators
  • Read math guides
↑ ↓Enter to open · Esc to close
Solve a problem

Eigenvalue Calculator

Enter a square matrix to find its eigenvalues and eigenvectors, with the characteristic polynomial, exact roots including radicals and complex pairs, and the null-space calculation for every eigenvector.

One row per line (or separate rows with ;). Separate entries with spaces or commas. Fractions like 1/2 and decimals are fine.

Examples

About the Eigenvalue Calculator

Eigenvalues and eigenvectors describe the directions a matrix leaves unchanged and how much it stretches them. They are behind Google's original PageRank algorithm, the vibration modes of bridges and molecules, principal component analysis in statistics, the stability of differential equations and the energy levels in quantum mechanics. In a linear algebra course they are usually the topic where everything learned so far — determinants, row reduction and null spaces — comes together.

This calculator follows the textbook method. It forms the characteristic polynomial det⁡(λI−A)\det(\lambda I - A), finds its roots exactly using the rational root theorem, the quadratic formula and polynomial division, and then solves (A−λI)v=0(A - \lambda I)\mathbf v = \mathbf 0 for each eigenvalue to produce eigenvectors with simple integer entries wherever possible.

Irrational eigenvalues are kept in exact radical form, complex eigenvalues are reported as conjugate pairs, and repeated eigenvalues come with both their algebraic and geometric multiplicities, so you can tell at a glance whether the matrix is diagonalisable. Matrices from 2×2 to 4×4 are supported, which covers essentially every homework and exam problem.

What are eigenvalues and eigenvectors?

A nonzero vector v\mathbf v is an eigenvector of a square matrix AA if multiplying by AA only scales it: Av=λvA\mathbf v = \lambda \mathbf v for some number λ\lambda. That number is the eigenvalue belonging to v\mathbf v. Most vectors change direction when multiplied by a matrix; eigenvectors are the special ones that stay on their own line through the origin.

Rewriting the definition as (A−λI)v=0(A - \lambda I)\mathbf v = \mathbf 0 shows how to find them. A nonzero solution exists only when A−λIA - \lambda I is singular, which means its determinant is zero. The equation det⁡(A−λI)=0\det(A - \lambda I) = 0 is called the characteristic equation; for an n×nn \times n matrix it is a polynomial of degree nn, so there are exactly nn eigenvalues counted with multiplicity, some of which may be complex.

Every eigenvalue has infinitely many eigenvectors, because any nonzero multiple of an eigenvector is another one. Answers are therefore given as a representative vector, or a basis when there are several independent directions, and your textbook may show a different multiple of the same vector.

How to use the Eigenvalue Calculator

  1. Type the matrix one row per line, separating entries with spaces, for example 4 1 on the first line and 2 3 on the second.
  2. You can also put a whole matrix on one line with semicolons between rows, such as 4 1; 2 3.
  3. Entries can be integers, decimals, fractions or negative numbers. The matrix must be square, from 2×2 to 4×4.
  4. Press Find eigenvalues to see the characteristic polynomial, its roots and the eigenvector calculation for each eigenvalue.
  5. Check the multiplicities reported for repeated eigenvalues if you need to know whether the matrix is diagonalisable.

Formulas

Eigenvalue equation

Av=λv,v≠0A\mathbf v = \lambda \mathbf v,\quad \mathbf v \ne \mathbf 0

Characteristic equation

det⁡(λI−A)=0\det(\lambda I - A) = 0

2×2 shortcut

λ2−(tr⁡A) λ+det⁡A=0\lambda^2 - (\operatorname{tr} A)\,\lambda + \det A = 0

Trace and determinant

λ1+⋯+λn=tr⁡A,λ1⋯λn=det⁡A\lambda_1 + \cdots + \lambda_n = \operatorname{tr} A,\quad \lambda_1 \cdots \lambda_n = \det A

Diagonalisation

A=PDP−1,D=diag⁡(λ1,…,λn)A = PDP^{-1},\quad D = \operatorname{diag}(\lambda_1, \ldots, \lambda_n)

Worked example: 2×2, rational

The worked example below is computed live for A=[4123]A = \begin{bmatrix}4 & 1 \\ 2 & 3\end{bmatrix}. The trace is 7 and the determinant is 4⋅3−1⋅2=104\cdot3 - 1\cdot2 = 10, so the characteristic polynomial is λ2−7λ+10=(λ−5)(λ−2)\lambda^2 - 7\lambda + 10 = (\lambda - 5)(\lambda - 2) and the eigenvalues are 5 and 2.

For λ=5\lambda = 5, the matrix A−5IA - 5I has rows (−1,1)(-1, 1) and (2,−2)(2, -2), whose null space is spanned by ⟨1,1⟩\langle 1, 1 \rangle. For λ=2\lambda = 2, A−2IA - 2I has rows (2,1)(2, 1) and (2,1)(2, 1), giving ⟨−1,2⟩\langle -1, 2 \rangle. Checking one is quick: A⟨1,1⟩=⟨5,5⟩A\langle 1, 1\rangle = \langle 5, 5\rangle, exactly five times the vector.

The solution below is generated by the same engine that powers the calculator above.

Final answer

λ=5, 2\lambda = 5,\ 2

How we read your problem

Find the eigenvalues and eigenvectors of a 2×2 matrix.

[4123]\begin{bmatrix}4 & 1 \\ 2 & 3\end{bmatrix}

Step-by-step solution

  1. Set up the characteristic equation

    det⁡(λI−A)=0,A=[4123]\det(\lambda I - A) = 0,\quad A = \begin{bmatrix}4 & 1 \\ 2 & 3\end{bmatrix}
  2. For a 2×2 matrix it is λ² − (trace)λ + det

    λ2−(7)λ+(10)=0\lambda^2 - (7)\lambda + (10) = 0
  3. Characteristic polynomial

    p(λ)=λ2−7λ+10p(\lambda) = \lambda^{2} - 7\lambda + 10
  4. Rational roots found with the rational root theorem

    λ=2, λ=5\lambda = 2,\ \lambda = 5
  5. Eigenvectors for λ = 5: solve (A − λI)v = 0

    [−112−2] v=0⇒v=⟨1,1⟩\begin{bmatrix}-1 & 1 \\ 2 & -2\end{bmatrix}\,v = 0 \Rightarrow v = \langle 1, 1 \rangle
  6. Eigenvectors for λ = 2: solve (A − λI)v = 0

    [2121] v=0⇒v=⟨−1,2⟩\begin{bmatrix}2 & 1 \\ 2 & 1\end{bmatrix}\,v = 0 \Rightarrow v = \langle -1, 2 \rangle

Formulas used

  • Characteristic equation

    det⁡(λI−A)=0\det(\lambda I - A) = 0
  • Eigenvector equation

    (A−λI) v=0, v≠0(A - \lambda I)\,v = 0,\ v \neq 0

The eigenvalues are the roots of the characteristic polynomial. Eigenvectors: λ = 5: ⟨1, 1⟩; λ = 2: ⟨-1, 2⟩.

Verification

  • Sum of eigenvalues ≈ 7 equals the trace 7.
  • Product of eigenvalues equals the determinant 10.

Detailed explanation

Step 1: the characteristic polynomial

For a 2×2 matrix the polynomial can be written down immediately as λ2−(trace)λ+det⁡\lambda^2 - (\text{trace})\lambda + \det. For larger matrices the calculator expands det⁡(λI−A)\det(\lambda I - A) by cofactors. The 3×3 symmetric matrix with rows (2,0,0)(2, 0, 0), (0,3,4)(0, 3, 4) and (0,4,9)(0, 4, 9) gives λ3−14λ2+35λ−22\lambda^3 - 14\lambda^2 + 35\lambda - 22.

Two quick checks catch most arithmetic errors. The coefficient of λn−1\lambda^{n-1} is minus the trace, here −(2+3+9)=−14-(2 + 3 + 9) = -14, and the constant term is (−1)ndet⁡A(-1)^n \det A, here −22-22 because the determinant is 22.

Step 2: finding the roots

With integer entries, any rational eigenvalue must divide the constant term, so the calculator tests the divisors of 22 and finds λ=1\lambda = 1, then divides the polynomial by (λ−1)(\lambda - 1) and factors the quadratic that remains. The eigenvalues are 11, 2 and 1, and their sum, 14, matches the trace as it must.

When the remaining quadratic does not factor over the rationals, the quadratic formula gives exact radicals. For [1234]\begin{bmatrix}1 & 2 \\ 3 & 4\end{bmatrix}, the polynomial λ2−5λ−2\lambda^2 - 5\lambda - 2 has roots 52±332\frac52 \pm \frac{\sqrt{33}}{2}, approximately 5.372 and −0.372-0.372. If the discriminant is negative the roots are complex conjugates; the rotation matrix [0−110]\begin{bmatrix}0 & -1 \\ 1 & 0\end{bmatrix} has λ2+1=0\lambda^2 + 1 = 0, so λ=±i\lambda = \pm i, reflecting the fact that a 90° rotation leaves no real direction unchanged.

Step 3: eigenvectors from the null space

For each eigenvalue, substitute it into A−λIA - \lambda I and solve the homogeneous system by row reduction. Because the matrix is singular, at least one row reduces to zeros, leaving a free variable. Setting the free variable to a convenient value and back-substituting gives the eigenvector, which the calculator scales to small integers.

For λ=11\lambda = 11 in the 3×3 example, A−11IA - 11I has rows (−9,0,0)(-9, 0, 0), (0,−8,4)(0, -8, 4) and (0,4,−2)(0, 4, -2). The first row forces v1=0v_1 = 0 and the others both say v3=2v2v_3 = 2v_2, so v=⟨0,1,2⟩\mathbf v = \langle 0, 1, 2 \rangle. Symmetric matrices like this one always have real eigenvalues and mutually perpendicular eigenvectors, which you can confirm with the dot product.

Repeated eigenvalues and diagonalisation

An eigenvalue that appears kk times as a root has algebraic multiplicity kk. The number of independent eigenvectors it has is its geometric multiplicity, which can be smaller. Both [2102]\begin{bmatrix}2 & 1 \\ 0 & 2\end{bmatrix} and 2I2I have the double eigenvalue 2, but the first has only one eigenvector direction, ⟨1,0⟩\langle 1, 0 \rangle, while the second has two, ⟨1,0⟩\langle 1, 0 \rangle and ⟨0,1⟩\langle 0, 1 \rangle.

A matrix can be written as PDP−1PDP^{-1}, with the eigenvalues on the diagonal of DD and the eigenvectors as the columns of PP, exactly when every eigenvalue's geometric multiplicity equals its algebraic multiplicity. Diagonalisation makes powers easy, since Ak=PDkP−1A^k = PD^kP^{-1}, and that is how eigenvalues predict long-term behaviour in population models and Markov chains.

Shortcuts worth knowing

The eigenvalues of a triangular matrix are its diagonal entries, so the matrix with rows (1,2,3)(1, 2, 3), (0,4,5)(0, 4, 5) and (0,0,6)(0, 0, 6) has eigenvalues 6, 4 and 1 without any calculation. A matrix is invertible exactly when 0 is not an eigenvalue, and the eigenvalues of A−1A^{-1} are the reciprocals of those of AA, with the same eigenvectors.

Simple changes to a matrix move its eigenvalues in predictable ways. Adding cc times the identity adds cc to every eigenvalue, multiplying the matrix by a scalar multiplies every eigenvalue by that scalar, and raising it to the power kk raises every eigenvalue to the power kk, all without changing the eigenvectors. A matrix and its transpose share the same eigenvalues, though usually not the same eigenvectors. These facts let you check answers and predict results before computing anything.

Common mistakes

  • Computing det⁡(A)−λ\det(A) - \lambda instead of det⁡(A−λI)\det(A - \lambda I); λ\lambda must be subtracted from every diagonal entry.
  • Accepting the zero vector as an eigenvector; eigenvectors must be nonzero by definition.
  • Making an arithmetic slip in the polynomial and then finding a null space containing only the zero vector.
  • Assuming every matrix has real eigenvalues; rotations and many non-symmetric matrices have complex ones.
  • Thinking an eigenvector is wrong because it differs from the textbook by a constant multiple.
  • Concluding a matrix is diagonalisable without checking the geometric multiplicity of repeated eigenvalues.

Tips

  • Check that the eigenvalues add up to the trace and multiply to the determinant.
  • Verify each eigenvector by computing AvA\mathbf v and comparing it with λv\lambda\mathbf v.
  • Read eigenvalues straight off the diagonal of triangular matrices.
  • For 3×3 matrices, expand the determinant along a row or column with the most zeros.
  • Use the determinant calculator to confirm that A−λIA - \lambda I is singular for each eigenvalue.
  • Expect real eigenvalues and perpendicular eigenvectors whenever the matrix is symmetric.
  • Factor out common numbers from a matrix first; the eigenvalues simply scale by that factor.

Frequently asked questions

How do I enter a matrix into the eigenvalue calculator?

Type one row per line with spaces between entries, or put all rows on one line separated by semicolons, such as 4 1; 2 3. Fractions, decimals and negative numbers are accepted.

What size matrices are supported?

Square matrices from 2×2 up to 4×4. Eigenvalues are only defined for square matrices, so a 3×2 matrix, for example, is rejected with an explanation.

Can the calculator find complex eigenvalues?

Yes. When the characteristic polynomial has a negative discriminant, the eigenvalues are reported as a complex-conjugate pair, such as λ = i and −i for a 90° rotation matrix.

Why is my eigenvector different from the one in my textbook?

Any nonzero multiple of an eigenvector is also an eigenvector. ⟨1, 1⟩ and ⟨3, 3⟩ describe the same direction. Check that one vector is a multiple of the other.

What do algebraic and geometric multiplicity mean?

Algebraic multiplicity is how many times an eigenvalue repeats as a root of the characteristic polynomial. Geometric multiplicity is how many independent eigenvectors it has. The calculator reports both for repeated eigenvalues.

Does the calculator give exact or decimal eigenvalues?

Exact whenever possible: integers, fractions and radicals such as 5/2 ± √33/2. Only when the roots of a cubic or quartic cannot be found exactly does it fall back to accurate decimal values.

How are eigenvalues related to the determinant and trace?

The product of all eigenvalues equals the determinant and their sum equals the trace. For the matrix with rows (4, 1) and (2, 3), 5 × 2 = 10 is the determinant and 5 + 2 = 7 is the trace.

What does an eigenvalue of zero mean?

The matrix is singular: it has no inverse and its determinant is zero. The eigenvectors for λ = 0 span the null space of the matrix.

Where are eigenvalues used outside the classroom?

In vibration analysis, stability of control systems, principal component analysis, quantum mechanics, Markov chains and search-engine ranking, wherever repeated application of a linear transformation needs to be understood.

Find your matrix's eigenvalues

Enter a square matrix above to get the characteristic polynomial, exact eigenvalues and an eigenvector for each one, with every step shown.

More math calculators