Eigenvalue Calculator (2x2 Matrix)
- Trace = a + d = 4.00 and determinant = ad - bc = 3.00.
- Eigenvalues solve the characteristic equation lambda^2 - 4.00 lambda + 3.00 = 0, whose discriminant is 4.00 — real roots.
- lambda = (4.00 +/- 2.00) / 2, giving 3.00 and 1.00. Check: they sum to the trace 4.00 and multiply to the determinant 3.00.
This eigenvalue calculator finds the eigenvalues of any 2x2 matrix you enter. For a matrix [[a, b], [c, d]], the tool computes the trace (a + d) and the determinant (ad - bc), then solves the characteristic equation lambda^2 - (trace) lambda + (determinant) = 0. The two eigenvalues it returns always sum to the trace and multiply to the determinant, which gives you a built-in check on any calculation. Real matrices usually yield real eigenvalues, such as [[2, 1], [1, 2]] with trace 4.00 and determinant 3.00, giving eigenvalues 3.00 and 1.00, or [[4, 2], [1, 3]] with trace 7.00 and determinant 10.00, giving eigenvalues 5.00 and 2.00. When the discriminant is negative, meaning trace^2 is less than 4 times the determinant, there are no real eigenvalues. The 90-degree rotation matrix [[0, -1], [1, 0]] has trace 0 and determinant 1; its discriminant is negative and the eigenvalues are the complex pair 0.00 + 1.00i and 0.00 - 1.00i. A negative discriminant means the transformation rotates every vector, so no direction is merely stretched.
Solving the characteristic equation is the accepted standard method for finding eigenvalues because it directly follows from the definition of an eigenvalue and works for every square matrix. This page shows the formula, step-by-step workings, worked examples, and sources so you can verify each result yourself.
Worked examples
The symmetric classic
Primary result: 3.00 — trace 4.00 and determinant 3.00 give eigenvalues 3.00 and 1.00. (2 · 1 · 1 · 2)
| First eigenvalue | 3.00 |
| Second eigenvalue | 1.00 |
| Trace (sum of eigenvalues) | 4.00 |
| Determinant (product of eigenvalues) | 3.00 |
Two whole numbers
Primary result: 5.00 — with trace 7.00 and determinant 10.00, the eigenvalues are 5.00 and 2.00. (4 · 2 · 1 · 3)
| First eigenvalue | 5.00 |
| Second eigenvalue | 2.00 |
| Trace (sum of eigenvalues) | 7.00 |
| Determinant (product of eigenvalues) | 10.00 |
A rotation has no real eigenvalues
Primary result: 0.00 + 1.00i — the 90-degree rotation matrix produces the complex pair +i and -i. (0 · -1 · 1 · 0)
| First eigenvalue (complex) | 0.00 + 1.00i |
| Second eigenvalue (conjugate) | 0.00 - 1.00i |
| Trace (sum of eigenvalues) | 0.00 |
| Determinant (product of eigenvalues) | 1.00 |
The characteristic equation for 2x2
For any 2x2 matrix, you do not need to work through a large determinant expansion to find the eigenvalues. The entire problem reduces to one quadratic equation. If your matrix is [[a, b], [c, d]], then the trace is a + d and the determinant is ad - bc. The characteristic equation for 2x2 is simply lambda^2 - (trace) lambda + (determinant) = 0. This is why a 2x2 eigenvalue calculator only needs the trace and determinant to give you the answer.
The structure of this quadratic gives you a built-in check on any calculation. Because of how the characteristic equation is built, the two eigenvalues always sum to the trace and multiply to the determinant. Once you compute a pair of eigenvalues, you can add them together and multiply them together to confirm you matched the trace and determinant of the original matrix. If either check fails, you know there is an error in your arithmetic before you use the result for anything else.
Working through examples shows how directly the trace and determinant set the answer. The matrix [[2, 1], [1, 2]] has trace 4.00 and determinant 3.00, so the quadratic is lambda^2 - 4.00 lambda + 3.00 = 0. The eigenvalues are 3.00 and 1.00, which sum to 4.00 and multiply to 3.00 as expected. The matrix [[4, 2], [1, 3]] has trace 7.00 and determinant 10.00, giving eigenvalues 5.00 and 2.00, which again match the trace and determinant exactly.
The quadratic can also reveal that a matrix has no real eigenvalues at all. The 90-degree rotation matrix [[0, -1], [1, 0]] has trace 0 and determinant 1. Here the discriminant is negative, and the eigenvalues are the complex pair 0.00 + 1.00i and 0.00 - 1.00i. A negative discriminant, meaning the trace squared is less than 4 times the determinant, tells you there are no real eigenvalues. The transformation rotates every vector, so no direction is merely stretched.
The trace-and-determinant check
For any 2x2 matrix, the eigenvalues solve the characteristic equation lambda^2 - (trace) lambda + (determinant) = 0. Because a quadratic's roots always add up to the coefficient of the middle term (with a sign change) and multiply to the constant term, the eigenvalues always sum to the trace and multiply to the determinant. That relationship gives you a built-in check on any calculation: if your two eigenvalues do not add and multiply to those two values, something went wrong. When you use an eigenvalue calculator, applying this check takes only a few seconds and catches arithmetic slips before they propagate.
Trace and determinant are easy to compute directly from the entries of the matrix. For the matrix [[a, b], [c, d]], the trace equals a + d and the determinant equals ad - bc. Take the first worked example, [[2, 1], [1, 2]]: the trace is 2.00 + 2.00 = 4.00, and the determinant is (2.00)(2.00) - (1.00)(1.00) = 3.00. The reported eigenvalues are 3.00 and 1.00. Add them: 3.00 + 1.00 = 4.00, which matches the trace. Multiply them: 3.00 x 1.00 = 3.00, which matches the determinant. Both identities hold, so the result is internally consistent.
The second worked example, [[4, 2], [1, 3]], works the same way. The trace is 4.00 + 3.00 = 7.00, and the determinant is (4.00)(3.00) - (2.00)(1.00) = 10.00. The reported eigenvalues are 5.00 and 2.00. Their sum is 5.00 + 2.00 = 7.00, equal to the trace, and their product is 5.00 x 2.00 = 10.00, equal to the determinant. Again the check passes, confirming the pair before you use it for anything downstream.
One caution: a passing sum-and-product check does not guarantee the eigenvalues are real. The identities hold for complex eigenvalues too. The 90-degree rotation matrix [[0, -1], [1, 0]] has trace 0 and determinant 1; the discriminant is negative and the eigenvalues are the complex pair 0.00 + 1.00i and 0.00 - 1.00i. Add them and you get 0, the trace; multiply them and you get 1, the determinant. A negative discriminant (trace^2 < 4 x determinant) means no real eigenvalues exist: the transformation rotates every vector, so no direction is merely stretched.
| Matrix | Trace | Determinant | Eigenvalues | Sum check | Product check |
|---|---|---|---|---|---|
| [[2, 1], [1, 2]] | 4.00 | 3.00 | 3.00 and 1.00 | 3.00 + 1.00 = 4.00 | 3.00 x 1.00 = 3.00 |
| [[4, 2], [1, 3]] | 7.00 | 10.00 | 5.00 and 2.00 | 5.00 + 2.00 = 7.00 | 5.00 x 2.00 = 10.00 |
| [[0, -1], [1, 0]] | 0 | 1 | 0.00 + 1.00i and 0.00 - 1.00i | 0.00 + 1.00i + 0.00 - 1.00i = 0 | (0.00 + 1.00i)(0.00 - 1.00i) = 1 |
When the answers go complex
Not every 2x2 matrix gives clean, real eigenvalues. Sometimes the characteristic equation produces a negative discriminant, and the eigenvalues become complex numbers. This is not an error in your calculation — it is a meaningful geometric signal. The classic case is the 90-degree rotation matrix [[0, -1], [1, 0]], which has trace 0 and determinant 1. Plug those into the characteristic equation and the discriminant comes out negative, giving the complex eigenvalue pair 0.00 + 1.00i and 0.00 - 1.00i.
To see why this happens, recall that for a 2x2 matrix, the eigenvalues solve the characteristic equation lambda^2 - (trace) lambda + (determinant) = 0. Here, trace = a + d and determinant = ad - bc for the matrix [[a, b], [c, d]]. The quadratic formula then gives lambda = (trace ± sqrt(trace^2 - 4 × determinant)) / 2. When the term under the square root is negative — that is, when trace^2 < 4 × determinant — there are no real solutions. A negative discriminant means no real eigenvalues exist at all.
The geometry behind this result is straightforward. A negative discriminant tells you the transformation rotates every vector, so no direction is merely stretched. Think about what the 90-degree rotation matrix does: it takes every vector and spins it a quarter turn. After the rotation, every vector points in a new direction. Because no vector lands back on its own line after the transformation, there is no real eigenvalue — an eigenvalue would require at least one direction to stay fixed in place while being scaled. The vector simply does not exist. Instead, the rotation reveals itself through the complex pair, where the imaginary parts capture the turning action.
A reliable eigenvalue calculator will display these complex results clearly, but it helps to know what to expect before you read the output. The eigenvalues always sum to the trace and multiply to the determinant — a built-in check on any calculation. For the rotation matrix, the two complex eigenvalues sum to 0, matching the trace, and their product is 1, matching the determinant. You can verify both of these facts instantly, which confirms the complex pair is correct even though the numbers look unusual at first glance. Compare this with the matrix [[2, 1], [1, 2]], which has trace 4.00 and determinant 3.00, giving eigenvalues 3.00 and 1.00 — both real, because the discriminant is positive. Or consider [[4, 2], [1, 3]], which has trace 7.00 and determinant 10.00, giving eigenvalues 5.00 and 2.00 — again real, for the same reason. When the discriminant turns negative, the answers go complex, and that is your signal that the matrix represents pure rotation rather than simple stretching.
Where eigenvalues run the world
Eigenvalues sound abstract, but they quietly govern systems you rely on every day. In mechanical and structural engineering, each eigenvalue of a system matrix pins down a natural vibration mode — the frequency at which a bridge, building, or machine part wants to oscillate. Designers need those values before construction begins, because an external force driving at a matching frequency can trigger destructive resonance. The same math describes the stability of differential equations: the signs of the eigenvalues tell you whether a system's state grows without bound, settles to equilibrium, or oscillates forever. An eigenvalue calculator built for 2x2 matrices lets you trace these behaviors quickly, without grinding through algebra by hand.
The reach extends well beyond physics. In statistics, the principal component analysis technique finds eigenvalues of a covariance matrix to identify which directions in a dataset carry the most variance — the backbone of dimensionality reduction and feature extraction. In computer science, early search ranking algorithms treated web links as a giant matrix and solved for its dominant eigenvalue to score pages by importance. Across these fields, the same small set of numbers reveals where a transformation concentrates its effort.
For a 2x2 matrix, the eigenvalues solve the characteristic equation lambda^2 - (trace) lambda + (determinant) = 0, where trace equals a + d and determinant equals ad - bc for the matrix [[a, b], [c, d]]. The eigenvalues always sum to the trace and multiply to the determinant — a built-in check on any calculation. Consider the matrix [[2, 1], [1, 2]]: it has trace 4.00 and determinant 3.00, giving eigenvalues 3.00 and 1.00. A second example, [[4, 2], [1, 3]], has trace 7.00 and determinant 10.00, giving eigenvalues 5.00 and 2.00. In each case, adding and multiplying the eigenvalues returns the trace and determinant exactly.
Not every matrix yields real eigenvalues. The 90-degree rotation matrix [[0, -1], [1, 0]] has trace 0 and determinant 1; the discriminant is negative and the eigenvalues are the complex pair 0.00 + 1.00i and 0.00 - 1.00i. A negative discriminant (trace^2 < 4 x determinant) means no real eigenvalues: the transformation rotates every vector, so no direction is merely stretched. This is why a pure rotation has no fixed axis in the real plane — every vector changes direction, and the eigenvalues move into complex territory to describe that spin.
FAQs
How do you find eigenvalues of a 2x2 matrix?
To find the eigenvalues of a 2x2 matrix, solve the characteristic equation lambda^2 - (trace)lambda + (determinant) = 0 using the quadratic formula. The trace is the sum of the diagonal entries, and the determinant is ad - bc. The quadratic formula yields the two roots, which are the matrix's eigenvalues.
What do eigenvalues mean geometrically?
Geometrically, eigenvalues are the stretch factors along the matrix's special directions, called eigenvectors. When the matrix transformation is applied, these eigenvectors do not get rotated or redirected — the transformation leaves them pointing the same way. The eigenvalue simply scales each eigenvector by that factor, stretching or shrinking it.
Can eigenvalues be complex?
Yes, eigenvalues can be complex. Rotations and other swirling transformations produce complex conjugate pairs. For example, the 90-degree rotation matrix has eigenvalues +i and -i. These complex values indicate the transformation rotates vectors rather than simply stretching them along fixed directions, which is why no real eigenvectors exist for such matrices.
How can I check my eigenvalues?
You can verify your eigenvalues using two simple properties: they must add to the trace of the matrix and multiply to the determinant. If the sum and product of your calculated eigenvalues match the trace and determinant respectively, your eigenvalues are correct. This provides a quick and reliable consistency check for your calculations.
What does a zero eigenvalue mean?
A zero eigenvalue means the matrix flattens space along some direction. Because one eigenvalue is zero, the product of eigenvalues is zero, so the determinant is zero. A matrix with a zero determinant has no inverse. This indicates the transformation collapses at least one dimension, losing information that cannot be recovered.
What about repeated eigenvalues?
When the discriminant is exactly zero, both eigenvalues equal trace/2. This means the characteristic equation has a repeated root. In such cases, the matrix may or may not have a full set of eigenvectors. Some matrices with repeated eigenvalues can still be diagonalized, while others lack enough independent eigenvectors to form a complete basis.