Skip to content

Eigenvalue Calculator

Eigenvalues tell you how a matrix stretches space. Enter a square matrix; the solver builds det(A − λI) = 0, solves the characteristic polynomial and gives each eigenvalue exactly.

Size×

How to use the eigenvalue calculator

  1. Set the matrix size and fill in the entries.
  2. Press Solve.
  3. Read the characteristic polynomial and the eigenvalues.

Examples

[[2,1],[1,2]]

Answer: λ = 1, 3

[[4,1],[2,3]]

Answer: λ = 2, 5

What eigenvalues and eigenvectors are

For a square matrix , an eigenvector is a direction that only stretches (or flips) without rotating:

The stretch factor is the eigenvalue. The calculator finds the characteristic polynomial, its roots (the eigenvalues, including complex ones) and a basis of eigenvectors for each, with every step shown.

How to find them

  1. Solve the characteristic equation for .
  2. For each , solve to get the eigenvectors.

Worked example

  1. .
  2. , so and .
  3. For : gives .
  4. For : gives .

Check: ✓

Quick checks you can always do

  • The eigenvalues add up to the trace (sum of the diagonal): ✓
  • They multiply to the determinant: ✓
  • Triangular matrices have their eigenvalues on the diagonal.

Common mistakes

  • Subtracting from every entry instead of only the diagonal.
  • Accepting as an eigenvector. It never counts.
  • Expecting a unique eigenvector. Any non-zero multiple works, so is just as valid as .

Where they're used

Diagonalizing makes powers easy (). Eigenvalues decide the stability of systems of differential equations, and they power principal component analysis (PCA), Google's PageRank and vibration analysis.

In real life: where a population settles

A city has two neighbourhoods. Each year, 10% of the people in A move to B and 20% of the people in B move to A. The yearly change is described by

Its eigenvalues are and . The eigenvector for is proportional to . That's the long-run state: whatever the starting numbers, the population settles at two thirds in A and one third in B. The other eigenvalue (0.7) controls how fast it gets there: the gap shrinks by 30% each year.

This "steady state as the eigenvector for eigenvalue 1" idea is exactly how Google's original PageRank ranked web pages.

Formulas

Practice problems

Try each one first, then open the answer to check your work.

  1. 1.Find the eigenvalues of .

    Show answer

    3 and , the diagonal entries.

  2. 2.Find the eigenvalues of .

    Show answer

    1 and 3. .

  3. 3.Find an eigenvector of for .

    Show answer

    .

  4. 4.A matrix has trace 5 and determinant 6. What are its eigenvalues?

    Show answer

    2 and 3. .

  5. 5.Find the eigenvalues of .

    Show answer

    . . This is a 90° rotation.

Key terms

Eigenvalue
A scalar with .
Eigenvector
A non-zero vector that only scales.
Characteristic polynomial
, whose roots are the eigenvalues.
Trace
The sum of the diagonal entries, equal to the sum of the eigenvalues.
Eigenspace
All the eigenvectors for one eigenvalue, together with the zero vector.

Frequently asked questions

What is an eigenvalue?

A number λ such that Av = λv for some non-zero vector v. The vector keeps its direction and is only scaled by λ.

How do I find eigenvalues by hand?

Solve det(A − λI) = 0. For a 2×2 matrix this is λ² − (trace)λ + det = 0.

Can eigenvalues be complex?

Yes. A rotation matrix such as [[0,−1],[1,0]] has eigenvalues ±i.

Can an eigenvalue be zero?

Yes. A zero eigenvalue means the matrix is singular (its determinant is 0) and has no inverse.

What does diagonalizable mean?

That , with the eigenvalues on the diagonal of and the eigenvectors as the columns of . An matrix with independent eigenvectors is diagonalizable.

How many eigenvalues does a matrix have?

An matrix has exactly eigenvalues, counted with multiplicity, though some may repeat or be complex.