Matrix calculator with steps: determinant, inverse, RREF, eigenvalues and eigenvectors, LU, QR, Cholesky, SVD

Determinant, inverse, rank and row reduction with every step in exact fractions, solving A x = B, products and powers, eigenvalues and eigenvectors (complex ones too), and LU, QR, Cholesky and SVD decompositions. Checked against numpy and sympy.

Keep it one tap away for everyday use.

Bookmark Matrix calculator?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

  1. Type A
  2. Pick a job
  3. Steps
  4. Download
Nothing is uploadedWorks offline once open

Matrices

Entries are whole numbers, decimals or fractions like -3/4, separated by spaces or commas. [[1, 2], [3, 4]] works too. Up to 12 × 12.

What it does

A matrix calculator for homework, lab work and checking your own working. Type a matrix and choose what to work out:

  • Determinant, inverse, rank and reduced row echelon form (RREF), with every row operation shown, in exact fractions (no rounding: 1/3 stays 1/3).
  • Solve A x = B: one solution, no solution, or infinitely many, written with free variables.
  • Products and powers: A × B, A + B, A − B, the transpose and Aⁿ (negative n uses the inverse).
  • Eigenvalues and eigenvectors, including complex ones, with the characteristic polynomial and each eigenvalue’s algebraic and geometric multiplicity (so you can see whether A is diagonalisable).
  • Decompositions: LU (P A = L U), QR, Cholesky (A = L Lᵀ) and the singular value decomposition (A = U Σ Vᵀ) with the rank, 2-norm and condition number.

How to use it

  1. Type matrix A with one row per line and spaces or commas between entries. Entries may be whole numbers, decimals such as 0.25 or fractions such as -3/4. You can also paste [[1, 2], [3, 4]] from Python, or open a CSV or Excel file.
  2. Choose the job in Work out. Jobs with two matrices show a box for B.
  3. Show numbers as switches between exact fractions and decimals (6 significant figures).
  4. For LU, Row swaps chooses between swapping rows only when a pivot is zero, as you would by hand, or always moving the largest entry up (partial pivoting), which is what numpy and scipy do and is safer with decimals.
  5. Download the result as CSV, or the whole working (input, result and steps) as an image, PDF or Word file.

The row reduction picks, in each column, the first row with a nonzero entry, and prefers a 1 or −1 when there is one, as people do by hand. Different but equally correct steps are possible; the final RREF is always the same.

Worked example

The first example is the system 2x + y − z = 8, −3x − y + 2z = −11, −2x + y + 2z = −3. With Solve A x = B the tool shows six row-operation steps and the answer x₁ = 2, x₂ = 3, x₃ = −1. The same A has determinant −1.

The eigenvalue example A = [4 1; 2 3] has characteristic polynomial λ² − 7λ + 10, so its eigenvalues are 5 and 2, with eigenvectors (1, 1) and (1, −2). The complex example [1 −2; 1 3] has eigenvalues 2 + i and 2 − i, with eigenvectors (1 − i, −1) and (1 + i, −1). The Cholesky example gives L with rows (2, 0, 0), (6, 1, 0) and (−8, 5, 3).

What is exact and what is decimal

Determinants, inverses, row reduction, solving, products, powers, LU and the characteristic polynomial are exact. Eigenvalues are found numerically, then any that are fractions (such as 3 or −1/2) or fractions plus a fraction times i (such as 2 + i) are confirmed exactly in the characteristic polynomial and shown with whole-number eigenvectors. Others, such as the roots of λ² − 2, are shown as decimals with eigenvectors of length 1. QR, Cholesky and SVD need square roots, so they are decimals; the page shows the largest error when the factors are multiplied back.

What it does not do

It does not take symbols (like a or x) as entries; use the symbolic algebra tool for those. Square roots or π as entries are not accepted. Matrices are limited to 12 × 12 so the steps stay readable. Eigenvalues that are not fractions are not given in surd form.

Frequently asked questions

Why is my eigenvector different from my textbook’s? Any nonzero multiple of an eigenvector is also an eigenvector. This tool scales exact ones to the smallest whole numbers, and decimal ones to length 1.

Why do some U and V columns of the SVD have the opposite sign to numpy? Flipping the sign of a matching pair of columns gives an equally valid SVD.

Is my data sent anywhere? No. Everything is worked out on your device.

Plot your results with the publication plot maker.

Where the numbers come from

  • Methods: Gauss-Jordan elimination and LU in exact fractions, the Faddeev-LeVerrier characteristic polynomial, Householder QR, shifted QR iteration for eigenvalues, one-sided Jacobi SVD (standard textbook linear algebra).
  • Checked against numpy, scipy and sympy on 11 matrices (square, singular, rectangular, complex eigenvalues, a Jordan block) and a random 10 × 10.
  • The example matrices are made up for this tool.

Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

Last updated 2026-11-09.

Related tools

Uncertainty propagation calculator #25 Type your formula and your measurements with their uncertainties, or paste repeated readings. Get the result with its uncertainty, which input matters most, and a Monte Carlo check. Publication plot maker #27 Paste columns or open a CSV or Excel file and get a clean scientific figure with error bars, sized for a journal column. Download vector SVG or PDF, or PNG at 300 or 600 dpi. Your data stays in your browser. Symbolic algebra (lite CAS) #542 Type an expression and simplify, expand or factor it, differentiate it, integrate it (with definite integrals), or substitute values. Exact fractions, answers you can copy as SymPy or LaTeX, and an honest 'could not integrate' when it is out of reach. Checked against sympy. Numerical methods teacher #550 See numerical methods work step by step: root finding by bisection, false position, Newton and secant with iteration tables; integration by the trapezoid, Simpson, Gauss-Legendre and Romberg rules with error plots; and Lagrange, Newton divided-difference and cubic spline interpolation. Checked against scipy. Truth table and Karnaugh map simplifier #558 Type a Boolean expression or a list of minterms (with don't-cares) and get the truth table, the minimal sum of products and product of sums by Quine-McCluskey (up to 6 variables), a Karnaugh map with the groups circled (2 to 4 variables), the prime implicant chart and a logic gate diagram. Checked against sympy. Graphing calculator #541 Plot y = f(x), any equation in x and y, polar r(θ) and parametric (x(t), y(t)) curves together, with sliders, zoom, tap-to-trace, roots, turning points and crossings, plus 3D surfaces z = f(x, y). Download PNG, SVG or CSV. Runs in your browser.