2×2 Matrix Eigenvalues, Determinant, Trace & Inverse Calculator

Find eigenvalues, trace, determinant ad − bc, and condition metrics of a 2×2 matrix.

Eigenvalue λ₁ (+ Root) 5
Eigenvalue λ₂ (− Root) 2
Matrix Determinant (ad − bc) 10
Matrix Trace (a + d) 7
Inputs
Try:
Matrix entry a₁₁ (top-left).
Matrix entry a₁₂ (top-right).
Matrix entry a₂₁ (bottom-left).
Matrix entry a₂₂ (bottom-right).
Results & Graph
Eigenvalue λ₁ (+ Root)
5
Eigenvalue λ₂ (− Root)
2
Matrix Determinant (ad − bc)
10
Matrix Trace (a + d)
7
Inverse Top-Left (d / det)
0.3
Inverse Top-Right (−b / det)
-0.2
Inverse Bottom-Left (−c / det)
-0.1
Inverse Bottom-Right (a / det)
0.4

Eigenvalue λ₁ (+ Root)

Graph 1 • How the inputs feed 2×2 Eigenvalues
2×2 Matrix Eigenvalues, Determinant, Trace & Inverse Calculator • Custom Domain Schematic (Linear Algebra) mAmB2×2 Eigenvalues M A: 4 • M B: 2 EIGENVALUE Λ₁ (+ ROOT) 5 • Eigenvalue λ₂ (− Root): 2 • Matrix Determinant (ad: 10 Eq: det(A) = ad − bc; Tr(A) = a + d;
Graph 2 • Eigenvalue λ₁ (+ Root) as M A changes (40% to 160% of current)
0 3.80 7.60 3.88 1.60 4.15 2.40 4.52 3.20 5 4 5.58 4.80 6.22 5.60 6.91 6.40
Graph 3 • M A and M B together Compares Eigenvalue λ₁ (+ Root) when M B is shifted +25% (solid) vs. −25% (dashed).
0 3.31 6.63 --- M B @ 75% 4.48 -30% 4.79 -15% 5.16 +0% 5.57 +15% 6.03 +30%
Summary: Matrix has Trace = 7, Determinant = 10, characteristic polynomial λ² − 7λ + 10, and eigenvalues λ₁ = 5, λ₂ = 2. Inverse = (1/(10)) × [[3, -2], [-1, 4]].
Summary: Matrix has Trace = 7, Determinant = 10, characteristic polynomial λ² − 7λ + 10, and eigenvalues λ₁ = 5, λ₂ = 2. Inverse = (1/(10)) × [[3, -2], [-1, 4]].
Interactive chart & math engine powered by CalculatorGraph

Formula: 2×2 Eigenvalues Mathematical Identity

det(A) = ad − bc
Tr(A) = a + d
λ = [Tr ± Tr² − 4·det] / 2
det(A) = ad − bc; Tr(A) = a + d; λ = [Tr ± √(Tr² − 4·det)] / 2
  • mA: M A (numeric parameter)
  • mB: M B (numeric parameter)
  • mC: M C (numeric parameter)
  • mD: M D (numeric parameter)

Frequently Asked Questions

Where do I find the characteristic polynomial?

In the sentence under the result. For the default matrix it reads λ² minus 7λ + 10, built from the trace of 7 and the determinant of 10, and it factors as (λ minus 5)(λ minus 2). With negative values the signs print literally, so λ² − -1λ + -6 should be read as λ² + λ minus 6. The shape is the same for every 2×2 matrix.

How are complex eigenvalues shown?

As a real part and an imaginary part, in place of λ₁ and λ₂. For a = 0, b = minus 1, c = 1, d = 0 the page shows real part 0 and imaginary part 1, meaning 0 ± 1i. Multiply the pair out and you get the determinant, 1. Add it and you get the trace, 0. There is no real eigenvector in this case.

Does the page give eigenvectors?

No, only eigenvalues. For each eigenvalue, take (b, λ minus a) as an eigenvector, provided b is not zero. In the default matrix that gives (2, 1) for λ = 5 and (2, minus 2), the same direction as (1, minus 1), for λ = 2. Multiply A by your vector and confirm the result is λ times the vector.

Should I use the four inverse lines or the fraction in the sentence?

Use the lines for a quick look and the fraction for exact work. The lines are rounded to three decimals, so the Higher preset shows 0.188 and -0.063 where the exact values are 3/16 and -1/16. The sentence gives (1/16) × [[3, -2], [-1, 6]], which you can multiply out to any precision you need.

What does a zero eigenvalue tell me?

That the matrix is singular. A zero eigenvalue always comes with a determinant of zero, because the determinant is the product of the eigenvalues. For a = 1, b = 2, c = 2, d = 4 the page shows eigenvalues 5 and 0 with determinant 0. The rows are multiples of each other, the matrix has no inverse, and a system Ax = y has no unique solution.

Is λ₁ always the eigenvalue with the largest size?

No. λ₁ is the plus root of the quadratic formula, which is the larger number, not the larger absolute value. For diag(2, minus 3) it shows λ₁ = 2 and λ₂ = -3. If you care about long run growth under repeated multiplication, compare absolute values yourself, because minus 3 grows faster in that example even though it is listed second.

Can two different matrices give identical results here?

Yes, whenever they share a trace and determinant. The scaling matrix with 2 on the diagonal and [[2, 1], [0, 2]] both show eigenvalues 2 and 2, determinant 4 and trace 4. Only the inverse lines differ. The first matrix has every vector as an eigenvector, the second only one eigenvector direction, and nothing on screen reveals that, so check A minus λI by hand.

Does swapping b and c change anything?

Not for the eigenvalues, trace or determinant: only the product bc enters the determinant, and the trace uses only a and d. The two off diagonal inverse lines swap places, and the eigenvectors change. A swap is the same as transposing the matrix, and a matrix and its transpose share eigenvalues but generally have different eigenvectors unless the matrix is symmetric.

How many decimals should I trust in the eigenvalues?

The supporting lines show three decimals and the interpretation shows four, such as 6.5616 and 2.4384 for the Higher preset. For well separated eigenvalues that is reliable. When the discriminant is close to zero, small changes in the entries move the eigenvalues a lot, so tiny rounding in your inputs can shift the second or third decimal.

Will this work for symmetric matrices?

Yes, and they are the friendliest case. A real symmetric matrix, where b equals c, always has real eigenvalues, so the complex pair display never appears. Its eigenvectors are also perpendicular. Try a = 2, b = 1, c = 1, d = 2: the eigenvalues are 3 and 1, with eigenvectors (1, 1) and (1, minus 1), whose dot product is zero.

Can I use the eigenvalues to tell if a system is stable?

For a linear system x' = Ax, stability needs both eigenvalues to have negative real parts. For a repeated map x(next) = Ax, it needs both to have absolute value below 1. The default has eigenvalues 5 and 2, so it is unstable in both senses. For a complex pair, use the real part line for the first test and √det, the modulus, for the second.

The default matrix [[4, 2], [1, 3]] and what comes back

Out of the box the four entries are a = 4 and b = 2 on the top row, c = 1 and d = 3 on the bottom row. The calculator reports λ₁ = 5 as the plus root, λ₂ = 2 as the minus root, a determinant of 10 and a trace of 7, then four lines for the inverse: 0.3, -0.2, -0.1 and 0.4.

Trace and determinant are the quick ones. The trace adds the diagonal, 4 + 3 = 7. The determinant is ad minus bc, 12 minus 2 = 10. Everything else on this page grows out of those two numbers, because for any 2×2 matrix the eigenvalues are fixed entirely by the trace and the determinant.

A useful check sits right in the default. The eigenvalues must add up to the trace and multiply to the determinant. Here 5 + 2 = 7 and 5 × 2 = 10. If you ever do this by hand and the two numbers you get fail that test, you have made an arithmetic slip somewhere.

Writing out the characteristic polynomial

The sentence under the result writes out the characteristic polynomial for you: λ² minus 7λ + 10 for the default. It always has the same shape for a 2×2 matrix, λ² minus (trace)λ plus (determinant) = 0, so you can also build it from the trace and determinant lines.

Where does it come from? An eigenvalue λ is a number for which A minus λI has no inverse, which means its determinant is zero. Subtract λ from each diagonal entry to get [[4 minus λ, 2], [1, 3 minus λ]]. Its determinant is (4 minus λ)(3 minus λ) minus 2. Expand it and you get 12 minus 7λ + λ² minus 2, which is the same polynomial.

This one factors neatly as (λ minus 5)(λ minus 2), giving the 5 and 2 on screen. Most matrices do not factor so kindly, and that is why the page uses the quadratic formula instead: λ = [trace ± √(trace² minus 4·det)] / 2. Try the Higher preset, which changes a to 6. The trace becomes 9 and the determinant 16, and the page prints λ² minus 9λ + 16. The discriminant is 81 minus 64 = 17, and the roots come out as 6.5616 and 2.4384. One small quirk: with a negative trace or determinant the sentence prints signs literally, so diag(2, minus 3) reads as λ² − -1λ + -6, which means λ² + λ minus 6.

Finding the eigenvectors by hand

The calculator stops at eigenvalues and the inverse, so here is the step it leaves to you. For each λ, solve (A minus λI)v = 0. In a 2×2 matrix the two rows of A minus λI are multiples of each other whenever λ is a true eigenvalue, so one row is enough.

For λ = 5, A minus 5I is [[minus 1, 2], [1, minus 2]]. The first row says minus x + 2y = 0, so x = 2y. Any multiple of (2, 1) is an eigenvector. Check it: A times (2, 1) is (8 + 2, 2 + 3) = (10, 5), which is 5 times (2, 1).

For λ = 2, A minus 2I is [[2, 2], [1, 1]]. The row says x + y = 0, so the eigenvector is any multiple of (1, minus 1). A times (1, minus 1) is (4 minus 2, 1 minus 3) = (2, minus 2), which is 2 times (1, minus 1).

A shortcut works for any 2×2 matrix with b not zero: the vector (b, λ minus a) is an eigenvector for λ. With b = 2 and a = 4 that gives (2, 1) for λ = 5 and (2, minus 2) for λ = 2, the same directions as above. If b is zero, use (λ minus d, c) instead. Eigenvectors have no fixed length, so scale them however suits you, or divide by the length to get a unit vector.

The inverse, and when there is none

When the determinant is not zero, the page prints the inverse two ways. The sentence gives it as (1/det) times [[d, minus b], [minus c, a]], and four supporting lines give each entry already divided. For the default that is (1/10) × [[3, -2], [-1, 4]], shown as 0.3, -0.2, -0.1 and 0.4. Swap the diagonal, flip the signs of the off diagonal, divide by the determinant.

Multiply the inverse by the original and you should get the identity: the top left entry is 4 × 0.3 + 2 × (-0.1) = 1, and the top right is 4 × (-0.2) + 2 × 0.4 = 0. The inverse also has eigenvalues 1/5 and 1/2, with the same eigenvectors as A, which is a second quick check.

The entry lines are rounded to three decimals, which matters when the determinant does not divide evenly. The Lower preset has det = 5.2, and its inverse lines read 0.577, -0.385, -0.192 and 0.462. For exact work, use the fraction form in the sentence, (1/5.2) × [[3, -2], [-1, 2.4]], rather than the rounded entries.

Now enter a = 1, b = 2, c = 2, d = 4. The determinant is 4 minus 4 = 0, and the calculator reports eigenvalues 5 and 0. The inverse lines disappear and the sentence says the matrix is singular and has no inverse. A zero eigenvalue and a zero determinant are the same fact said two ways: the matrix squashes some direction, here (2, minus 1), down to nothing.

Complex pairs: reading the real and imaginary lines

When trace² minus 4·det is negative, the eigenvalues form a complex pair, and the result changes shape. Instead of λ₁ and λ₂ the page shows a real part and an imaginary part, and the sentence writes the pair as real ± imaginary i.

Take the rotation matrix a = 0, b = minus 1, c = 1, d = 0. The trace is 0 and the determinant is 1, so the polynomial is λ² + 1 = 0. The page reports a real part of 0 and an imaginary part of 1, that is 0 ± 1i. Check by hand: (0 + i)(0 minus i) = 1, the determinant, and the sum is 0, the trace.

Another example: a = 1, b = minus 2, c = 1, d = 3. Trace 4, determinant 5, discriminant 16 minus 20 = minus 4. The page gives 2 ± 1i. In general the real part is trace/2 and the imaginary part is √(4·det minus trace²)/2.

Complex eigenvalues mean the matrix rotates vectors as well as stretching them, so there is no real eigenvector. The modulus of the pair, √det, is the stretch factor per step: 1 for the pure rotation, √5 for the second example. The inverse still exists in both cases, and the page prints it as usual.

Repeated eigenvalues and the missing second eigenvector

If the discriminant is exactly zero, both eigenvalues are equal. Enter a = 2, b = 1, c = 0, d = 2. The trace is 4, the determinant 4, the discriminant 0, and the calculator shows 2 and 2. Here that is correct, and the product 4 equals the determinant, which separates it from the complex case.

What the screen cannot tell you is how many independent eigenvectors there are. For [[2, 1], [0, 2]], A minus 2I is [[0, 1], [0, 0]], which forces y = 0. Only multiples of (1, 0) work, so there is one eigenvector direction, not two. A matrix like this is called defective and cannot be diagonalised.

Compare a = 2, b = 0, c = 0, d = 2, the plain scaling matrix. Same trace, same determinant, same eigenvalues on screen. But A minus 2I is the zero matrix, so every vector is an eigenvector. Only the inverse lines tell the two apart, and they say nothing about eigenvectors. It is a good reminder that trace and determinant fix the eigenvalues but not the eigenvectors.

Plus root first, which is not the same as dominant

The page labels λ₁ as the plus root and λ₂ as the minus root, the two signs in the quadratic formula. That ordering puts the larger number first. It is not the same as the dominant eigenvalue in the usual sense, which is the one with the largest absolute value, because that one decides long run growth when you multiply by the matrix again and again.

Those two ideas agree for the presets, where both eigenvalues are positive. They part ways with negative eigenvalues. Enter a = 2, b = 0, c = 0, d = minus 3. The calculator lists λ₁ = 2 and λ₂ = minus 3. In the long run sense minus 3 dominates, since repeated multiplication grows a vector along that axis by a factor of 3 each time while flipping its sign.

For population models, Markov chains and repeated maps, compare absolute values yourself. In the default, 5 dominates 2, so after many steps any starting vector lines up with the eigenvector (2, 1) and grows by a factor of about 5 per step.

How a single entry moves the eigenvalues

The presets change only the top left entry. Dropping it from 4 to 2.4 takes the trace to 5.4 and the determinant to 5.2. The eigenvalues become 4.146 and 1.254. Raising it to 6 gives 6.562 and 2.438. In both cases the larger eigenvalue moves by more than the second one, because the eigenvector for the larger root, (2, 1) in the default, leans toward the first axis where a acts.

The off diagonal entries behave differently. Their product bc is what matters for the eigenvalues, not either value alone, since only bc appears in the determinant. Swap b and c in the default and the eigenvalues, trace and determinant stay put, while the two off diagonal inverse lines trade places. Push bc up and the eigenvalues spread apart. Make bc negative enough and the discriminant goes below zero, which sends you into the complex case covered above.