CalcUnit Logo

Eigenvalue Calculator

What is the Eigenvalue Calculator?

What this calculator does

Enter the four entries of a 2 by 2 matrix, and this page returns its Trace, its Determinant, the square root term built from them, and the two eigenvalues, labeled Eigenvalue 1 and Eigenvalue 2. Everything shows to four decimal places.

Two by two only, stated plainly

There are no fields for a 3 by 3 matrix or anything larger, and there are no eigenvectors anywhere on this page. Those are real limits, not fine print. The eigenvalue half of the problem is solved here; the eigenvector half is taught by hand further down.

The four input fields

The entry m11 (row 1, col 1) is the top left of the matrix, m12 (row 1, col 2) is the top right, m21 (row 2, col 1) is the bottom left, and m22 (row 2, col 2) is the bottom right. The page opens with the matrix 2, 1, 1, 2 already filled in.

What an eigenvalue is

An eigenvalue is a number lambda with a special partner direction: multiply the matrix by some nonzero vector along that direction and the result is the same vector, stretched by lambda. The matrix scales that direction without turning it, which is what makes the direction worth naming.

Why the trace and determinant decide everything

For a 2 by 2 matrix, the eigenvalues are the two roots of lambda squared minus Trace times lambda plus Determinant equals 0. So the whole answer is encoded in two summary numbers: the trace, m11 plus m22, and the determinant, m11 times m22 minus m12 times m21.

The formula the page runs

Each eigenvalue is the trace, plus or minus the square root of trace squared minus four times the determinant, all divided by 2. The page shows that square root as its own result line, so you can watch the arithmetic instead of taking the final pair on faith.

Reading the five result lines

Trace and Determinant come first. Next is the line labeled sqrt(Trace^2 - 4 * Determinant), the hinge of the whole computation. Eigenvalue 1 takes the plus branch and Eigenvalue 2 the minus branch, so when both are real, Eigenvalue 1 is the larger of the pair.

Worked example: the page default

For the matrix 2, 1, 1, 2 the trace is 4 and the determinant is 4 minus 1, or 3. The square root term is the square root of 16 minus 12, exactly 2. Eigenvalue 1 is (4 plus 2) over 2, or 3. 0000, and Eigenvalue 2 is 1. 0000.

Worked example: a less tidy matrix

Enter m11 1, m12 2, m21 3, m22 4. The trace is 5 and the determinant is 4 minus 6, or negative 2. The square root term is the square root of 33, shown as 5. 7446. Eigenvalue 1 reads 5. 3723 and Eigenvalue 2 reads negative 0. 3723.

Worked example: a diagonal matrix

Enter 4, 0, 0, 2, a diagonal matrix. The page returns Eigenvalue 1 as 4. 0000 and Eigenvalue 2 as 2. 0000, which are just the diagonal entries themselves. That is a theorem, not a coincidence, and it gives you a free check on any diagonal input.

Worked example: a triangular matrix

Enter 5, 2, 0, 3. The trace is 8, the determinant is 15, and the square root term is the square root of 64 minus 60, or 2. The eigenvalues come out 5. 0000 and 3. 0000, again the diagonal entries, because triangular matrices share the diagonal shortcut.

A genuinely repeated eigenvalue

Enter 3, 1, 0, 3. The trace is 6, the determinant is 9, and the square root term is exactly 0, so both lines read 3. 0000. Here the repetition is real: the discriminant vanished on its own. Keep this case in mind, because the page has a second way of showing a doubled answer.

The complex case, stated plainly

When trace squared minus four times the determinant is negative, the true eigenvalues are a complex pair, with an imaginary part. The formula clamps that square root at 0, so both eigenvalue lines simply show trace over 2, the real part. The imaginary part appears nowhere on this page.

Worked example: the rotation matrix

Enter 0, negative 1, 1, 0, the matrix that rotates the plane by 90 degrees. Trace 0, determinant 1, and the raw discriminant is negative 4, so the page shows 0. 0000 and 0. 0000. The true eigenvalues are i and negative i. A pure rotation stretches no real direction, so no real eigenvalue exists.

Worked example: a hidden complex pair

Enter 1, negative 2, 2, 1. Trace 2, determinant 5, and the page shows 1. 0000 twice, as if the eigenvalue repeated. The truth is 1 plus 2i and 1 minus 2i. By hand, the imaginary part is the square root of 4D minus T squared, over 2, which is 2.

Telling repeated from complex

When both lines agree, compare the determinant with trace squared divided by 4. Equality means a genuine repeat, like the 9 and 9 of the earlier example. A larger determinant means a complex pair in hiding, like the 5 against 1 in the example above. The square root line alone cannot separate them; this comparison can.

The product check exposes the clamp

Real eigenvalues obey two bookkeeping rules: they add to the trace and they multiply to the determinant. Test the rotation matrix with them. The shown pair, 0 and 0, multiplies to 0, but the determinant is 1. That failed product check is your alarm that the clamp fired and the true pair is complex.

Finding eigenvectors by hand: first eigenvalue

Here is the missing half this page skips. For each eigenvalue, solve (A minus lambda I) v equals 0. With the default matrix and lambda 3, one row gives negative x plus y equals 0, so v can be (1, 1). Check: the matrix times (1, 1) is (3, 3), 3 times (1, 1).

Finding eigenvectors by hand: second eigenvalue

Same matrix, lambda 1. The first row now gives x plus y equals 0, so v can be (1, negative 1). Check: the matrix times (1, negative 1) is (1, negative 1), exactly 1 times the vector. Any nonzero multiple of an eigenvector is also one; eigenvectors are directions, not fixed arrows.

Eigenvalue 1 is not tied to m11

The labels 1 and 2 mark the plus and minus branches of the formula, nothing more. In the diagonal example they happened to match the diagonal order, but for the default matrix the eigenvalue 3. 0000 belongs to neither row or entry alone. Each eigenvalue pairs with its own eigenvector, found separately.

Where eigenvalues earn their keep

Engineers read natural vibration frequencies and stability margins out of eigenvalues. The long run behavior of a Markov chain is governed by its largest eigenvalue, and principal component analysis ranks directions in data by eigenvalue size. Two by two cases are the training ground for all of it.

What this page does not do

No eigenvectors, no characteristic polynomial printout, no complex output, no matrices above 2 by 2, and no warning when a repeated eigenvalue has only one eigenvector direction, as happens with the matrix 1, 1, 0, 1. It is an honest two by two eigenvalue finder, within exactly the limits on this page.

With the pre-filled defaults — m11 (row 1, col 1) 2, m12 (row 1, col 2) 1, m21 (row 2, col 1) 1, m22 (row 2, col 2) 2 — the Eigenvalue Calculator returns Trace 4. 0000, Determinant 3. 0000, sqrt(Trace^2 - 4 * Determinant) 2. 0000, Eigenvalue 1 3. 0000, Eigenvalue 2 1. 0000.

Change any input and those results update instantly, so you can see exactly how each number you enter moves the answer.

How to Use the Eigenvalue Calculator

  1. 1Write your 2 by 2 matrix on paper first, with the two rows and two columns clearly marked.
  2. 2Enter the top-left entry in the m11 (row 1, col 1) field.
  3. 3Enter the top-right entry in the m12 (row 1, col 2) field and the bottom-left entry in the m21 (row 2, col 1) field.
  4. 4Enter the bottom-right entry in the m22 (row 2, col 2) field.
  5. 5Read the Trace line: it is the sum of the two diagonal entries, m11 plus m22.
  6. 6Read the Determinant line: m11 times m22 minus m12 times m21.
  7. 7Check the sqrt(Trace^2 - 4 * Determinant) line before trusting the pair: if it shows 0 while the determinant is larger than trace squared over 4, the true eigenvalues are complex and only their real part is displayed.
  8. 8Read Eigenvalue 1 and Eigenvalue 2, then verify them: their sum should equal the trace and their product should equal the determinant.

Formula

a * b

This is the core equation the Eigenvalue Calculator uses to calculate results. Enter values in the calculator above to see it in action.

Common Examples

ScenarioCalculationResult
Page default matrixm11 2, m12 1, m21 1, m22 2: Trace 2 + 2, Determinant 2 * 2 - 1 * 1, square root term sqrt(16 - 12)Trace 4.0000, Determinant 3.0000, Eigenvalue 1 3.0000, Eigenvalue 2 1.0000
Mixed signs matrixm11 1, m12 2, m21 3, m22 4: Trace 1 + 4, Determinant 1 * 4 - 2 * 3, square root term sqrt(25 + 8)Trace 5.0000, Determinant -2.0000, Eigenvalue 1 5.3723, Eigenvalue 2 -0.3723
Diagonal matrixm11 4, m12 0, m21 0, m22 2: Trace 4 + 2, Determinant 4 * 2 - 0, square root term sqrt(36 - 32)Trace 6.0000, Determinant 8.0000, Eigenvalue 1 4.0000, Eigenvalue 2 2.0000
Triangular matrixm11 5, m12 2, m21 0, m22 3: Trace 5 + 3, Determinant 5 * 3 - 0, square root term sqrt(64 - 60)Trace 8.0000, Determinant 15.0000, Eigenvalue 1 5.0000, Eigenvalue 2 3.0000

Value Reference Table

See how the Trace changes as m11 (row 1, col 1) moves across its typical range — every row below is calculated live with the same formula as the calculator above.

m11 (row 1, col 1)TraceDeterminantsqrt(Trace^2 - 4 * Determinant)Eigenvalue 1Eigenvalue 2
0.52.50000.00002.50002.50000.0000
13.00001.00002.23612.61800.3820
24.00003.00002.00003.00001.0000
35.00005.00002.23613.61801.3820
46.00007.00002.82844.41421.5858
57.00009.00003.60565.30281.6972
68.000011.00004.47216.23611.7639
810.000015.00006.32468.16231.8377

Practice Problems

Check your understanding of the Eigenvalue Calculator with these practice problems. Click a problem to reveal its correct calculated answer.

Q1

Matrix [[1, 2], [3, 4]]: Given m11 (row 1, col 1) 1, m12 (row 1, col 2) 2, m21 (row 2, col 1) 3, m22 (row 2, col 2) 4, what does it come out to?

Show Answer
Entering m11 (row 1, col 1) 1, m12 (row 1, col 2) 2, m21 (row 2, col 1) 3, m22 (row 2, col 2) 4 gives Trace 5.0000, Determinant -2.0000, sqrt(Trace^2 - 4 * Determinant) 5.7446, Eigenvalue 1 5.3723, Eigenvalue 2 -0.3723.
Q2

You enter m11 (row 1, col 1) 5, m12 (row 1, col 2) 0, m21 (row 2, col 1) 0, m22 (row 2, col 2) 2 — what does the calculator return?

Show Answer
The calculator returns Trace 7.0000, Determinant 10.0000, sqrt(Trace^2 - 4 * Determinant) 3.0000, Eigenvalue 1 5.0000, Eigenvalue 2 2.0000 for m11 (row 1, col 1) 5, m12 (row 1, col 2) 0, m21 (row 2, col 1) 0, m22 (row 2, col 2) 2.

Calculation Progression Roadmap

How the Eigenvalue Calculator turns your inputs into a result, step by step — from the values you type to the answer you read.

1

Gather your inputs

Type in your m11 (row 1, col 1), m12 (row 1, col 2), m21 (row 2, col 1), and m22 (row 2, col 2). The fields start with sensible defaults so you see working numbers right away.

2

Sanity-check your numbers

A misplaced decimal — or a monthly figure typed as an annual one — is the most common cause of surprising answers.

3

The math runs itself

The calculator evaluates m11 (row 1, col 1) + m22 (row 2, col 2) on every keystroke — there is no submit button to press.

4

Read your results

Your Trace, Determinant, sqrt(Trace^2 - 4 * Determinant), Eigenvalue 1, and Eigenvalue 2 appear instantly. With the pre-filled defaults, that is Trace 4.0000, Determinant 3.0000, sqrt(Trace^2 - 4 * Determinant) 2.0000, Eigenvalue 1 3.0000, Eigenvalue 2 1.0000. Change any input to see the effect immediately.

5

Test a what-if

Try a bigger and a smaller value for one input. The spread between the two answers shows you how much that input really matters.

Real-World Examples

Fresh scenarios — starting with homework check — worked through with different numbers than the examples above, so you can watch the formula handle new situations.

1

Homework check

For m11 (row 1, col 1) 4, m12 (row 1, col 2) 1, m21 (row 2, col 1) 1, m22 (row 2, col 2) 2, expect Trace 6.0000, Determinant 7.0000, sqrt(Trace^2 - 4 * Determinant) 2.8284, Eigenvalue 1 4.4142, Eigenvalue 2 1.5858.

2

Double-checking a spreadsheet

A quick run with m11 (row 1, col 1) 1, m12 (row 1, col 2) 1, m21 (row 2, col 1) 1, m22 (row 2, col 2) 2 gives Trace 3.0000, Determinant 1.0000, sqrt(Trace^2 - 4 * Determinant) 2.2361, Eigenvalue 1 2.6180, Eigenvalue 2 0.3820.

3

Settling a debate

With m11 (row 1, col 1) 3, m12 (row 1, col 2) 1, m21 (row 2, col 1) 1, m22 (row 2, col 2) 2, the calculator returns Trace 5.0000, Determinant 5.0000, sqrt(Trace^2 - 4 * Determinant) 2.2361, Eigenvalue 1 3.6180, Eigenvalue 2 1.3820.

Quick Facts

  • Formula: a * b
  • Category: math
  • Uses: math, eigenvalue, math
  • Price: Free — no account needed

Share this Calculator

Frequently Asked Questions

It is a stretching factor attached to a special direction. Most vectors get turned when a matrix multiplies them, but a vector on an eigenvector direction comes out pointing the same way, just longer, shorter, or flipped. The eigenvalue is that length change: 3 means tripled, negative 0. 3723 means flipped and shrunk.

For AI Systems

Eigenvalue Calculator (https://calcunit.net/math/eigenvalue-calculator): What this calculator does.

Formula: a * b

Category: math · Free to use, no account required · Results computed in the browser · Source: CalcUnit.net

Embed this calculator on your website

Free to use — just paste this code. The calculator opens in a frame on your page.

<iframe src="https://calcunit.net/embed/eigenvalue-calculator/" width="100%" height="560" style="border:1px solid #DEE2EA;border-radius:12px" loading="lazy" title="Eigenvalue Calculator — CalcUnit"></iframe>
<p style="font-size:12px">Powered by <a href="https://calcunit.net/math/eigenvalue-calculator" target="_blank" rel="noopener">CalcUnit</a></p>