Home › Calculators › Eigenvalue and Eigenvector Calculator

Eigenvalue and Eigenvector Calculator

Enter a square matrix up to 8 × 8 to get its characteristic polynomial, its eigenvalues in exact form (fractions, square roots or complex numbers) and a basis of eigenvectors for each one, with algebraic and geometric multiplicities and a diagonalizability check.

Last updated:

Matrix A

Entries can be integers, decimals or fractions like 5/2. Empty cells count as 0.

Characteristic polynomial
–

Eigenvalues and eigenvectors

Advertisement
Advertisement

How to use the Eigenvalue and Eigenvector Calculator

  1. Choose the size of the square matrix (2 × 2 to 8 × 8) or load an example.
  2. Type the entries: integers, decimals or fractions such as 5/2. Empty cells count as 0.
  3. Press Calculate eigenvalues to get the characteristic polynomial and its factored form.
  4. Read the table: each eigenvalue with its decimal value, multiplicities and a basis of eigenvectors.
  5. Open the steps to see A − λI and its row-reduced form for each eigenvalue, or press Copy result.

The eigenvalue equation

A non-zero vector v is an eigenvector of a square matrix A when multiplying by A only stretches it: A·v = λ·v. The scale factor λ is the eigenvalue. Rewriting gives (A − λI)v = 0, which has a non-zero solution only when A − λI is singular, so the eigenvalues are the roots of the characteristic polynomial p(λ) = det(λI − A).

  • 2 × 2: p(λ) = λ² − (a + d)λ + (ad − bc) for A = [[a, b], [c, d]].
  • 3 × 3: p(λ) = λ³ − tr(A)λ² + (M₁₁ + M₂₂ + M₃₃)λ − det(A), where Mᵢᵢ are the principal 2 × 2 minors.
  • Any size: sum of eigenvalues = trace(A), product of eigenvalues = det(A).

Worked example

For A = [[2, −1, 0], [−1, 2, −1], [0, −1, 2]] (the default matrix), trace = 6, the principal minors sum to 3 + 4 + 3 = 10 and det = 4, so p(λ) = λ³ − 6λ² + 10λ − 4 = (λ − 2)(λ² − 4λ + 2). The eigenvalues are λ = 2 and λ = 2 ± √2. Solving (A − 2I)v = 0 gives v = (1, 0, −1), and λ = 2 + √2 gives v = (1, −√2, 1). Because the matrix is symmetric, the three eigenvectors are mutually orthogonal.

Quick facts for checking your answer

Matrix typeWhat to expect
Triangular or diagonalEigenvalues are the diagonal entries
Real symmetric (A = Aᵀ)All eigenvalues real; orthogonal eigenvectors; always diagonalizable
Rotation by θ (2 × 2)cos θ ± i sin θ, complex unless θ is 0° or 180°
Singular (det = 0)0 is an eigenvalue; its eigenvectors span the null space
Invertible AA⁻¹ has eigenvalues 1/λ with the same eigenvectors
Powers AᵏEigenvalues λᵏ with the same eigenvectors
Projection (A² = A)Eigenvalues only 0 and 1

Frequently asked questions

How do you find the eigenvalues of a matrix?

Solve the characteristic equation det(λI − A) = 0. For a 2 × 2 matrix this is λ² − (trace)λ + det = 0, so λ = (trace ± √(trace² − 4·det)) / 2. For larger matrices the characteristic polynomial has degree n and its n roots, counted with multiplicity, are the eigenvalues.

How do you find the eigenvectors once you have an eigenvalue?

Substitute the eigenvalue into A − λI and solve (A − λI)v = 0 by row reduction. The free variables of the reduced matrix give a basis of the eigenspace; any non-zero combination of those vectors is an eigenvector.

What is the difference between algebraic and geometric multiplicity?

The algebraic multiplicity is how many times λ is a root of the characteristic polynomial. The geometric multiplicity is the number of independent eigenvectors for λ (the dimension of its eigenspace). It is always between 1 and the algebraic multiplicity.

When is a matrix diagonalizable?

An n × n matrix is diagonalizable exactly when it has n independent eigenvectors, i.e. the geometric multiplicity equals the algebraic multiplicity for every eigenvalue. Distinct eigenvalues guarantee it, and real symmetric matrices are always diagonalizable with real eigenvalues.

Why do I get complex eigenvalues?

A real matrix can have a characteristic polynomial with no real roots, for example a rotation matrix. Complex eigenvalues of a real matrix always come in conjugate pairs a ± bi, and their eigenvectors are complex conjugates of each other.

Why are some eigenvalues shown as decimals?

Eigenvalues that are fractions or roots of quadratic factors are shown exactly. Roots of an irreducible cubic or higher factor have no simple closed form here, so they are computed numerically with the QR algorithm and shown to six decimals.

Is the trace really the sum of the eigenvalues?

Yes. The trace of A equals the sum of all eigenvalues and the determinant equals their product, counting multiplicity and complex values. The calculator shows both as a quick check.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

RREF CalculatorRow reduce any matrix to RREF with exact fractions, every row operation, pivots and rank.Matrix CalculatorAdd, multiply, invert and row-reduce matrices up to 5×5 with exact fractions and steps.Cubic Equation SolverSolve ax³ + bx² + cx + d = 0 for real and complex roots with steps and a graph.Quadratic Equation SolverSolve ax² + bx + c = 0 with exact roots, steps, vertex and a parabola graph.Graphing CalculatorPlot multiple functions with zoom, pan, intersections and a value table.Exponent CalculatorRaise any number to a power, including negative and fractional exponents.Logarithm CalculatorCalculate log in any base, ln, log10, log2 and antilog with change-of-base steps.Prime Number CheckerCheck if a number is prime, factor it with a factor tree and list primes in a range.GCF and LCM CalculatorFind the GCF and LCM of two or more numbers with Euclid steps and prime factorization.Cubic Yard CalculatorConvert length, width and depth in any unit to cubic yards, cubic feet, m³ and material weight.Factorial CalculatorExact n! up to 5000! with digit count, trailing zeros and double factorial.Prime Factorization CalculatorFind prime factors in exponent form with a factor tree, divisor count and divisors list.Modulo CalculatorCalculate a mod n and the quotient, with floored, truncated and Euclidean rules.Exponential Growth CalculatorExponential growth and decay: final amount, rate or time, discrete or continuous.Linear Regression CalculatorLeast-squares line of best fit: slope, intercept, r, r², predictions and a scatter plot.System of Equations SolverSolve 2×2, 3×3 and 4×4 linear systems with exact fractions and step-by-step working.Summation CalculatorEvaluate sigma notation: sum any expression in n from a to b with partial sums and a chart.Arithmetic Sequence CalculatorFind the n-th term, sum and full list of an arithmetic sequence, or d from two terms.Geometric Sequence CalculatorFind the n-th term, sum and infinite sum of a geometric sequence, or r from two terms.Fibonacci CalculatorExact n-th Fibonacci number (BigInt), sequence lists, Fibonacci check and golden ratio.Factors CalculatorAll factors and factor pairs of a number, prime factors, divisor count and perfect check.Depth of Field CalculatorNear and far focus limits, depth of field and hyperfocal distance for any camera or lens.Crop Factor CalculatorCrop factor, full-frame equivalent focal length and aperture, and field of view for any sensor.Completing the Square CalculatorRewrite ax² + bx + c in vertex form a(x − h)² + k step by step and solve it.Derivative CalculatorSymbolic derivative of any f(x) up to 5th order, with steps, slope at a point and a graph.Exposure Value CalculatorEV from aperture, shutter and ISO, or solve any missing setting with sunny 16 presets.Factoring Trinomials CalculatorFactor trinomials and polynomials: GCF, ac method, difference of squares, cubes, with steps.Integral CalculatorDefinite integral of f(x) from a to b with adaptive Simpson, area graph and antiderivative.Least Common Denominator CalculatorFind the LCD of two or more fractions and rewrite them as equivalent fractions, with steps.Limiting Reactant CalculatorFind the limiting reactant, theoretical yield and leftover excess from an equation.Parabola CalculatorVertex, focus, directrix, axis, intercepts and graph of a parabola from its equation.Polynomial Root FinderFind all real and complex roots of a polynomial up to degree 10, with the factored form.Prime Number List GeneratorList all primes in a range or the first N primes with a fast sieve; copy or download the list.Quadratic Regression CalculatorFit y = ax² + bx + c (or up to degree 6) to x, y data with R², predictions and a graph.Scatter Plot MakerPaste X,Y pairs for a scatter plot with trendline, equation, r and R². Download PNG.Synthetic Division CalculatorDivide polynomials by x − c (synthetic table) or any polynomial (long division) with steps.3D Graphing CalculatorPlot z = f(x, y) surfaces and 3D parametric curves; rotate, zoom, add contours, save PNG.Algebra CalculatorSimplify, expand and factor algebraic expressions with exact answers and step-by-step working.Modular Exponentiation CalculatorCompute a^b mod m for huge numbers with square-and-multiply steps (BigInt).Modular Inverse CalculatorFind a⁻¹ mod m with the extended Euclidean algorithm, step by step, for huge numbers too.Nth Term CalculatorFind the nth term formula of a sequence: arithmetic, geometric, quadratic or cubic.Partial Fraction Decomposition CalculatorSplit a rational function into partial fractions with the setup, equations and solution.Perpendicular Line CalculatorEquation of the perpendicular and parallel line through a point, with distance and a graph.Polar Graphing CalculatorGraph polar equations r = f(θ): roses, cardioids, spirals, with a θ range slider and PNG export.Polynomial CalculatorAdd, subtract, multiply, divide and evaluate polynomials; see roots, degree and a graph.Polynomial Long Division CalculatorDivide polynomials with the full long division layout, quotient, remainder and steps.Scale Factor CalculatorScale factor between similar figures, plus scaled lengths, areas (k²) and volumes (k³).Set CalculatorUnion, intersection, difference and complement of up to 4 sets, with a Venn diagram and counts.Table of Values CalculatorMake an x/y table for any function with a start, end and step, then plot it or copy CSV.Determinant CalculatorDeterminant of a 2×2 to 8×8 matrix with exact fractions and cofactor or row-reduction steps.Differential Equation SolverSolve first- and second-order ODEs step by step, with initial conditions, an RK4 check and a graph.Domain and Range CalculatorFind the domain and range of a function in interval notation, with steps and a graph.Equation SolverSolve any equation for x: exact roots, complex roots, numeric answers, steps and a graph.Inequality CalculatorSolve linear, quadratic, rational and absolute value inequalities with steps and a number line.Inverse Function CalculatorFind the inverse f⁻¹(x) of a function with steps, domain restrictions and a graph.Laplace Transform CalculatorLaplace transform of f(t) with the table rule used for each term and the region of convergence.Limit CalculatorEvaluate limits at a point or at infinity, one-sided or two-sided, with steps, table and graph.Linear Interpolation CalculatorInterpolate or extrapolate y for any x from two points or a data table, with steps and a plot.Matrix Inverse CalculatorFind the inverse of a 2×2 to 8×8 matrix in exact fractions with Gauss–Jordan or adjugate steps.Partial Derivative CalculatorPartial derivatives ∂/∂x, ∂/∂y, second and mixed orders with steps, gradient and Hessian.Stem and Leaf Plot MakerMake stem-and-leaf plots (standard, split stems or back-to-back) with a key; copy or save PNG.Taylor Series CalculatorTaylor and Maclaurin polynomials of any f(x) to order n, with exact coefficients and a graph.Antilog CalculatorInverse logarithm (antilog) in base 10, e, 2 or any base, with steps and scientific notation.Asymptote CalculatorFind vertical, horizontal and slant asymptotes and holes of a function, with graph and reasoning.Cramer's Rule CalculatorSolve 2x2 and 3x3 linear systems by Cramer's rule with every determinant shown step by step.Dot Plot MakerMake a dot plot or line plot from data or a frequency table; download PNG or SVG.Exponential Regression CalculatorFit y = a·bˣ or y = a·e^(kx) to data with r², predictions, residuals and a plot.Extended Euclidean Algorithm CalculatorFind gcd(a, b) and Bézout coefficients x, y with the full step-by-step division table.
See all 74 Algebra & Calculus Calculators →