Skip to main content

Matrix Calculator — Add, Multiply, Invert, RREF, Eigenvalues with Steps

Matrix calculator — add/sub/multiply/inverse/determinant/transpose/rank/RREF/eigenvalues for n×m matrices, step-by-step.

  • Runs locally
  • Category Calculator
  • Best for Getting a realistic range before a purchase, plan, workout, or schedule decision.

Build matrix A (and B when needed), pick an operation, see the result plus step-by-step row operations.

Try a textbook matrix
Matrix A
Matrix A size:3×3
Operation

Each cell accepts integers, decimals (0.5), fractions (1/2), and negatives (−3). Results are computed exactly with BigInt fractions — no rounding.

Result
det(A) = 2
All matrix arithmetic happens in your browser with BigInt fractions. No values are uploaded.

What this tool does

A full linear-algebra calculator for n×m matrices (n, m up to 10). One page covers every operation a college course actually asks for: addition and subtraction (dimension-checked), multiplication (cols-rows checked), integer powers A^k, transpose Aᵀ, determinant via Bareiss fraction-free elimination, inverse A⁻¹ by Gauss-Jordan with every row operation written out (R3 ← R3 + 2·R1 style), rank and row-reduced echelon form (RREF) with the same step trace, eigenvalues for ≤4×4 matrices via the characteristic polynomial, and the solver for A·x = b with unique / no / infinite-solution reporting. Every cell accepts integers, decimals (0.5), fractions (1/2) and negatives — internally the calculator uses BigInt fractions so results are exact rationals, never the dreaded 0.9999. Five textbook example matrices (90° rotation, Vandermonde, tridiagonal symmetric positive-definite, singular, 5×5 sparse) load with one click so you can sanity-check the math before plugging in your homework. All math runs in your browser; nothing is uploaded.

Tool details

Input
Text + Numbers
The page exposes text boxes, numeric controls, file pickers, or structured inputs depending on the tool.
Output
Live result + Copy
The result area focuses on usable output, with copy, download, or preview actions when supported.
Privacy
Browser-side processing
The main tool logic does not call an external API, so inputs normally stay in the current tab.
Save / share
No account required
Open the page and use it; whether results survive refresh depends on the tool.
Performance budget
Initial JS <= 28 KB
No WASM budget is declared, keeping the tool quick to open on mobile.
Best fit
Calculator · Student
Category and role tags drive related tools, internal links, and quick fit checks.

How to use

  1. 1. Input

    Paste or drop your content into the tool panel.

  2. 2. Process

    Click the button. All processing is local in your browser.

  3. 3. Copy / Download

    Copy the result or download to disk in one click.

How Matrix Calculator fits into your work

Use it for fast estimates, comparisons, and planning numbers before you make the final call.

Calculation jobs

  • Getting a realistic range before a purchase, plan, workout, or schedule decision.
  • Comparing scenarios by changing one input at a time.
  • Turning rough assumptions into a number you can discuss.

Calculation checks

  • Double-check units, dates, rates, and rounding assumptions.
  • Treat health, finance, tax, and legal outputs as planning aids, not professional advice.
  • Save the inputs that produced an important result so you can reproduce it later.

Good next steps

These links move the current task into a more complete workflow.

  1. 1 Chemistry Equation Balancer Chemistry equation balancer — paste an unbalanced equation, solve coefficients using the matrix method, show step-by-step. Open
  2. 2 Quadratic Equation Solver Quadratic equation solver — ax² + bx + c = 0, discriminant analysis, real + complex roots, vertex/intercepts, parabola visualization. Open
  3. 3 Trigonometry Calculator Trigonometry calculator — sin/cos/tan + inverse + sec/csc/cot, degree/radian/gradient, unit circle visualization, exact values. Open

Real-world use cases

  • Verify a homework determinant before turning it in

    You expanded det of a 4×4 matrix by cofactor along the first row and got 18, but you're not sure the signs alternated right. Type the 16 entries into the calculator and pick det(A). It runs Bareiss fraction-free elimination in O(n³) with exact BigInt fractions and returns the exact integer — no rounding, no "answer is approximately 17.999999". If you got 18 too, you can submit with confidence; if not, switch the operation to "RREF (with steps)" to spot which row operation in your hand calculation introduced the error.

  • Invert a coefficient matrix without losing precision

    The matrix A = [[2,1,1],[1,3,2],[1,0,0]] needs to be inverted for a stats problem. Plug it in, choose A⁻¹, and the page shows both the result (exact fractions like 0/−2, 0/2, 1, −2, 1/2, 1/2, …) and every row operation that produced it. You can read the Gauss-Jordan trace top to bottom — first the row swap to bring a non-zero pivot up, then scaling each pivot to 1, then eliminating the other entries in each pivot column — and use those same operations to check your hand-derived inverse later in the semester.

  • Find eigenvalues of a 3×3 stress tensor in a physics problem

    The stress tensor σ = [[3,1,0],[1,3,0],[0,0,2]] has three principal stresses (its eigenvalues). The calculator builds the characteristic polynomial λ³ − 8λ² + 20λ − 16 via Faddeev-LeVerrier (in exact rationals), then numerically resolves the roots: λ = 2, 2, 4. You also see the principal stress directions are aligned with the third coordinate axis (because the matrix is block-diagonal). All three real, no complex residue — exactly what the physics says, no spurious imaginary parts.

  • Solve a linear system that turns out to have infinite solutions

    The system x + 2y + 3z = 6, 2x + 4y + 6z = 12, 3x + 5y + 7z = 15 looks like three independent equations. Plug in A = the coefficient matrix and b = (6, 12, 15), pick "Solve A·x = b". The calculator runs RREF on [A | b], finds that rank(A) = rank([A | b]) = 2 < 3, and reports "infinitely many solutions" with a particular solution and which variable is free. This is the exact moment many students realize a 3×3 system can be under-determined — the calculator names which column is free so the parametric form falls out by hand.

  • Test whether a basis is linearly independent

    You have four vectors in ℝ⁵ and want to know if they form a linearly independent set. Stack them as columns of a 5×4 matrix A, pick rank(A). If rank = 4, the vectors are independent and span a 4-dimensional subspace; if rank < 4, there's a linear relation and the calculator's RREF reveals exactly which columns are pivot columns and which are dependent. Same machinery handles "is this set a basis of ℝ⁴?" — stack them in a 4×4 matrix and check det ≠ 0 or rank = 4.

Common pitfalls

  • Confusing matrix multiplication with element-wise multiplication. The "×" here means A times B in the linear-algebra sense (sum of products), and it requires cols(A) = rows(B). If you wanted Hadamard (element-wise) product, that's a different operation and is not what most courses call "matrix multiplication".

  • Asking for the inverse of a non-square or singular matrix. Only square matrices have inverses in the usual sense, and even square matrices need det ≠ 0. The calculator returns "singular" rather than silently giving a meaningless result; a pseudoinverse (Moore-Penrose) would be a different request.

  • Reading the eigenvalue list as ordered. Eigenvalues are a multiset — the calculator may list them in any order, and repeated eigenvalues appear with multiplicity. Pair each one with its eigenvector by checking which rows of (A − λI) collapse to zero.

Privacy

Every matrix cell and every derived result (sums, products, inverses, determinants, ranks, RREFs, eigenvalues, solutions to A·x = b) is computed locally in JavaScript with BigInt fractions. No coefficient you type, no intermediate row operation, and no result is ever sent to a server, logged, or analyzed. The page works offline once loaded — you can solve a 10×10 system in airplane mode and it still works.

FAQ

Tool combos

Folks in your role tend to reach for these alongside this tool.

Made by Toolora · 100% client-side · Updated 2026-06-13