Determinant Calculator
Exact determinants of 2x2 to 6x6 matrices by row reduction or cofactor expansion, with every step.
This eigenvalue calculator finds the eigenvalues and eigenvectors of any square matrix up to 4 × 4, with steps.
Eigenvalues
λ₁ = 6, λ₂ = 1
A has 2 distinct real eigenvalues: 6 and 1. Along each eigenvector, multiplying by A just scales the vector by its eigenvalue.
| Eigenvalue | Value | Algebraic multiplicity | Geometric multiplicity | Eigenvectors |
|---|---|---|---|---|
| λ₁ | 6 | 1 | 1 | (2, 1) |
| λ₂ | 1 | 1 | 1 | (−1, 2) |
Subtract λ from the diagonal
An eigenvalue λ is a number for which (A − λI)v = 0 has a nonzero solution v, which happens exactly when det(A − λI) = 0.
Find the characteristic polynomial
For a 2 × 2 matrix, , with tr A = 7 and det A = 6.
Find the rational roots
By the rational root theorem, a rational root of p(λ) must divide the constant term (the polynomial is monic). Testing the candidates gives λ = 1, λ = 6.
Eigenvectors for λ = 6
Row-reduce A − 6I and solve (A − λI)v = 0. There is one free variable, so the eigenvectors are the multiples of (2, 1).
Eigenvectors for λ = 1
Row-reduce A − 1I and solve (A − λI)v = 0. There is one free variable, so the eigenvectors are the multiples of (−1, 2).
Check with the trace and determinant
The eigenvalues (with multiplicity) add up to the trace and multiply to the determinant: sum ≈ 7 and tr A = 7; product ≈ 6 and det A = 6.
It builds the characteristic polynomial exactly, solves it for exact rational, surd or complex roots, and finds each eigenvector from , with unit vectors, multiplicities and trace and determinant checks.
Eigenvalue equation
Plain-text formula: Avec(v) = λvec(v), vec(v) ≠ vec(0)
An eigenvector keeps its direction when multiplied by A; the eigenvalue λ is the factor it is scaled by. Rewriting as shows that λ must make singular.
Characteristic equation
Plain-text formula: det(A − λI) = 0
Expanding the determinant gives a polynomial of degree n in λ, the characteristic polynomial. Its roots, counted with multiplicity, are the n eigenvalues. The calculator writes it as , which has the same roots and always starts with .
2 × 2 characteristic polynomial
Plain-text formula: λ^2 − (tr A)λ + det A = 0, λ = (tr A ± √((tr A)^2 − 4 det A))/2
For the polynomial needs only the trace and the determinant . A negative value under the square root means the two eigenvalues are complex conjugates.
3 × 3 characteristic polynomial
Plain-text formula: det(λI − A) = λ^3 − (tr A)λ^2 + (M_11 + M_22 + M_33)λ − det A
The middle coefficient is the sum of the three principal 2 × 2 minors: delete row i and column i and take the determinant of what is left. This avoids expanding symbol by symbol.
Trace and determinant checks
Plain-text formula: λ_1 + ⋯ + λ_n = tr A, λ_1λ_2⋯λ_n = det A
These identities hold for every square matrix, counting repeated eigenvalues with multiplicity, and are a quick way to check eigenvalues found by hand.
An eigenvalue tells you how A acts along one special direction: λ = 2 doubles vectors in that direction, λ = −1 flips them, and λ = 0 squashes them to zero (so A is singular). Complex eigenvalues come in conjugate pairs for real matrices and signal rotation.
The algebraic multiplicity is how many times λ repeats as a root of the characteristic polynomial. The geometric multiplicity is the number of independent eigenvectors for λ, the dimension of its eigenspace. It is always at least 1 and at most the algebraic multiplicity.
A is diagonalizable when the geometric multiplicities add up to n, so there is a full set of independent eigenvectors. Matrices with n distinct eigenvalues are always diagonalizable; symmetric matrices are too, with real eigenvalues and perpendicular eigenvectors.
1. Subtract λ from the diagonal. Write : the same matrix with λ subtracted from every diagonal entry.
2. Find the characteristic polynomial. Take . For a 2 × 2 matrix this is ; for a 3 × 3 use the trace, the principal minors and the determinant, as in the formulas above.
3. Solve for the eigenvalues. Set the polynomial to 0 and solve. Use the quadratic formula for degree 2. For degree 3 or 4, test the divisors of the constant term (the rational root theorem), divide out each root you find, and solve what is left.
4. Find the eigenvectors. For each eigenvalue, row reduce and solve . Every free variable gives one independent eigenvector. If you get only the zero vector, the eigenvalue is wrong.
5. Check. Confirm for one eigenvector, and that the eigenvalues add up to the trace and multiply to the determinant.
The determinant calculator shows step 2 for a numeric matrix, and the RREF calculator shows the row reduction in step 4.
Take . Its trace is 6, each principal 2 × 2 minor is (so they add to 9), and . The characteristic polynomial is therefore .
The divisors of 4 are the candidates for rational roots. λ = 1 gives , so is a factor. Dividing leaves , so the polynomial is : λ = 4 once and λ = 1 twice.
For λ = 4, row reduces to , , giving the eigenvector (1, 1, 1). For λ = 1, every row of is (1, 1, 1), so the only condition is . That leaves two free variables and two eigenvectors, (−1, 1, 0) and (−1, 0, 1).
λ = 1 has algebraic and geometric multiplicity 2, so A has three independent eigenvectors and is diagonalizable. Check: 4 + 1 + 1 = 6 = tr A and 4 · 1 · 1 = 4 = det A. Load the “3 × 3, repeated eigenvalue” example above to see the same result.
Some matrices give their eigenvalues away before you expand anything. Use these patterns to check an answer or to skip the algebra.
| Matrix type | Example | Eigenvalues | What to expect |
|---|---|---|---|
| Diagonal or triangular | [[2, 0, 0], [1, 3, 0], [4, 5, 1]] | 2, 3, 1 (the diagonal entries) | Read straight off the diagonal |
| Symmetric (A = Aᵀ) | [[5, 2], [2, 2]] | 6 and 1 | Always real, with perpendicular eigenvectors; always diagonalizable |
| Rotation by 90° | [[0, −1], [1, 0]] | i and −i | Complex, because no real direction stays fixed |
| Singular (det A = 0) | [[1, 2], [2, 4]] | 0 and 5 | At least one eigenvalue is 0 |
| Jordan block | [[3, 1], [0, 3]] | 3, twice | Only one eigenvector, so not diagonalizable |
| Projection (A² = A) | [[1, 0], [0, 0]] | 1 and 0 | Only 0 and 1 are possible |
When A has n independent eigenvectors, put them in the columns of a matrix P and the matching eigenvalues on the diagonal of D. Then , and powers become easy: , where just raises each diagonal entry to the power k.
For , and . The calculator’s “Diagonalizable?” line tells you whether such a P exists. To build , use the inverse matrix calculator; to multiply the three matrices back together, use the matrix calculator.
The characteristic polynomial is computed with exact fractions. Rational roots are found with the rational root theorem, and quadratic factors are solved with the quadratic formula, so eigenvalues such as or are exact. Eigenvectors for rational eigenvalues come from exact row reduction of .
A cubic or quartic factor with no rational roots is solved numerically by Aberth–Ehrlich iteration, accurate to about 15 significant digits, and its eigenvectors are computed in floating point. To study such a polynomial on its own, use the polynomial root finder.
Matrices larger than 4 × 4 are outside this calculator. In practice they are not solved through the characteristic polynomial at all, but with numerical methods such as the QR algorithm, as in NumPy’s numpy.linalg.eig or MATLAB’s eig.
Subtracting λ from every entry. λ comes off the diagonal only: , not .
Dropping a repeated root. has three eigenvalues counted with multiplicity, and the trace and determinant checks only work when λ = 1 is counted twice.
Expecting one eigenvector per repeated eigenvalue. A repeated eigenvalue can have one eigenvector or several. Count the free variables after row reducing .
Reporting the zero vector. always solves , but it is never an eigenvector. If row reduction leaves no free variable, recheck the eigenvalue.
Ignoring complex roots. A negative discriminant does not mean “no eigenvalues”. It means a conjugate pair such as 2 ± i.
Find the eigenvalues and eigenvectors of A = [[5, 2], [2, 2]].
Answer: λ₁ = 6 with eigenvector (2, 1) and λ₂ = 1 with eigenvector (−1, 2). A is diagonalizable.
Subtract λ from each diagonal entry, take the determinant of A − λI, and set it to 0. The roots of that characteristic polynomial are the eigenvalues. For a 2 × 2 matrix the equation is λ² − (tr A)λ + det A = 0, so [[5, 2], [2, 2]] gives λ² − 7λ + 6 = 0 and λ = 6 or 1.
For each eigenvalue λ, solve (A − λI)v = 0 by row reduction. Each free variable gives one independent eigenvector. For [[5, 2], [2, 2]] and λ = 6, A − 6I has the row (−1, 2), so −v₁ + 2v₂ = 0 and v = (2, 1).
λ is an eigenvalue exactly when det(A − λI) = 0. For A = [[3, 2], [3, 8]] and λ = 2, A − 2I = [[1, 2], [3, 6]] has determinant 6 − 6 = 0, so 2 is an eigenvalue, with eigenvector (−2, 1). The other eigenvalue is 9, since they must add to the trace 11.
It is a stretch factor. Most vectors change direction when a matrix multiplies them, but an eigenvector only gets longer, shorter or flipped. The eigenvalue says by how much: 3 triples it, 0.5 halves it, and −1 reverses it.
Yes. A real matrix can have complex eigenvalues, which then come in conjugate pairs. For example, [[1, −2], [1, 3]] has characteristic polynomial λ² − 4λ + 5 and eigenvalues 2 + i and 2 − i.
Eigenvectors are only determined up to a nonzero multiple. (2, 1), (4, 2) and (−2, −1) are all eigenvectors for the same eigenvalue. The calculator scales exact eigenvectors to the smallest whole numbers; a normalized (unit) eigenvector is that vector divided by its length, such as (2, 1)/√5.
λ = 0 means some nonzero vector is sent to zero, so A is singular and det A = 0. The eigenvectors for λ = 0 span the null space of A.
A matrix with an eigenvalue whose geometric multiplicity is smaller than its algebraic multiplicity, such as [[3, 1], [0, 3]]: λ = 3 is a double root but has only one independent eigenvector, (1, 0). Defective matrices cannot be diagonalized.
Its diagonal entries. Subtracting λ from the diagonal leaves a triangular matrix whose determinant is the product of the (aᵢᵢ − λ) terms, so [[2, 0, 0], [1, 3, 0], [4, 5, 1]] has eigenvalues 2, 3 and 1.
The TI-84 Plus and Casio fx-991EX have no eigenvalue key, but they can give the trace and determinant, and for a 2 × 2 matrix you can then solve λ² − (tr A)λ + det A = 0 with the equation solver. CAS calculators such as the TI-Nspire CAS have built-in eigVl and eigVc functions. None of them show the working; this calculator does.
Up to degree 4, the factoring and exact formulas stay fast and readable. Larger matrices are normally handled with numerical methods such as the QR algorithm rather than the characteristic polynomial.
Exact determinants of 2x2 to 6x6 matrices by row reduction or cofactor expansion, with every step.
Multiply, add and subtract matrices up to 6 × 6, plus determinant, inverse, transpose and powers, exactly.
Reduced row echelon form or REF with each row operation, rank, nullity and linear system solutions.
Exact inverses of 2x2 to 6x6 matrices by Gauss–Jordan elimination, with every row operation and a check.
Dot product, angle between vectors, magnitude, unit vector and projections of 2D to 6D vectors.
All real and complex roots of a polynomial up to degree 10, with multiplicities, exact forms and steps.
Results are calculated in your browser with methods checked by automated tests, and are intended for learning and general use. For engineering, medical, financial, legal or safety-critical decisions, verify important values independently and follow the rounding rules your work requires. How accurate are these results?