Skip to main content
L
Loopaloo
Buy Us a Coffee
All ToolsImage ProcessingAudio ProcessingVideo ProcessingDocument & TextPDF ToolsCSV & Data AnalysisConverters & EncodersWeb ToolsMath & ScienceGames
Guides & BlogAboutContact
Buy Us a Coffee
L
Loopaloo

Free online tools for developers, designers, and content creators. Your files are processed in your browser and are never uploaded - no accounts required. A few network utilities (like What's My IP and Currency Converter) call public APIs to do their job and say so on their pages.

support@loopaloo.com

Tool Categories

  • Image Tools
  • Audio Tools
  • Video Tools
  • Document & Text
  • PDF Tools
  • CSV & Data
  • Converters
  • Web Tools
  • Math & Science
  • Games

Company

  • About Us
  • Contact
  • Blog
  • FAQ

Legal

  • Privacy Policy
  • Terms of Service
  • Disclaimer

Support

Buy Us a Coffee

© 2026 Loopaloo. All rights reserved. Built with privacy in mind.

Privacy|Terms|Disclaimer
  1. Home
  2. Math & Science
  3. Matrix Calculator
Add to favorites

Matrix Calculator

Determinants, inverses, eigenvalues and row reduction over exact fractions, with A times its inverse shown to be exactly the identity and the condition number reported.

Calculated locally in your browserMore math & scienceJump to full guide

Initializing in your browser…

You might also like

Tip Calculator

The tip, the tax and everybody's share worked out in whole pennies, so the amounts printed add up to the total printed. Says who pays the odd penny, and what rounding does to the tip rate.

Equation Solver

Linear, quadratic, cubic and higher equations and systems, with exact rational coefficients, numerically stable roots and each root substituted back to show its residual.

Scientific Calculator

Exact arithmetic on rationals, with both evaluation conventions named and the precedence table the parser runs on printed on the page.

A worked calculation

You need the inverse of a 3x3 matrix whose entries are all around a ten-thousandth, which most calculators call singular.

Matrix A

0.0002  -0.0003   0.0001
0.0002   0        -0.0001
0.0001   0.0004   0.0005
What Matrix Calculator produces

Result

det A = 49/1000000000000  (exactly 49 × s³)
A⁻¹ computed, and A × A⁻¹ is EXACTLY the identity
condition number 5.57, so it is well conditioned

Scaling a matrix changes no angle and no rank, and multiplies its determinant by the cube of the scale. A tool that tests the determinant against an absolute 1e-10 calls this one singular and refuses; this one reads the entries as exact fractions, so the test is whether the determinant IS zero. The identity check below the answer is computed on the output itself and needs nothing external.

What this calculator does

Determinants, inverses, eigenvalues, rank, row reduction, null spaces and linear systems for matrices up to 6 by 6, computed over exact fractions. Because nothing rounds, there is no tolerance anywhere in the arithmetic: a matrix is singular exactly when its determinant is exactly zero, and scaling a matrix by a millionth changes nothing about the answer.

How it works

Most matrix tools decide whether a matrix is singular by comparing a pivot or a determinant against a small constant, typically 1e-10. That is an absolute test on a quantity that scales with the cube of the matrix: [[2,-3,1],[2,0,-1],[1,4,5]] has determinant 49, and the same matrix scaled by a ten-thousandth has determinant 4.9e-11, which such a test calls zero. It is exactly as invertible. Here every entry is read as a rational number, so the determinant of an integer matrix is an integer (49, not 48.99999999999999), a pivot is chosen because it is not zero, and the entries of the inverse are exact fractions. The page then computes A times its inverse and shows you that every entry is exactly 1 or exactly 0, which is the check that decides an inverse and needs nothing external. Alongside it is the condition number, the number that says how far a NUMERICAL answer from this matrix could be trusted, and which a matrix tool should report: [[1,2,3],[4,5,6],[7,8,9.000001]] has a condition number near 1.4e8, and its inverse deserves a warning that a well-conditioned one does not. Eigenvalues come from the characteristic polynomial computed exactly by Faddeev-LeVerrier, so integer matrices give integer eigenvalues, and the result is checked three ways at once: the eigenvalues sum to the trace, they multiply to the determinant, and substituting the matrix into its own characteristic polynomial gives exactly the zero matrix.

How to use

  1. 1Pick the operation, then set the shape of matrix A (up to 6 by 6)
  2. 2Type the entries. Whole numbers, decimals and fractions like 3/4 are all read exactly
  3. 3Results update as you type; nothing is behind a Calculate button
  4. 4For an inverse, read the identity check and the condition number below it
  5. 5Open the elimination steps to see every row operation written as exact fractions

Key features

  • Exact rational arithmetic throughout, so the determinant of an integer matrix is an integer
  • No tolerance anywhere: a matrix scaled by a millionth is inverted just as one scaled by a million
  • A times its inverse computed and shown to be exactly the identity
  • The condition number in the 1-norm, with a warning when an answer would be untrustworthy
  • Eigenvalues from an exact characteristic polynomial, with exact eigenvectors and both multiplicities
  • Cayley-Hamilton checked on the matrix itself: p(A) is exactly the zero matrix
  • Add, subtract, multiply, scalar multiply, integer powers by repeated squaring, transpose
  • Rank, row reduced echelon form, null space, adjugate, trace, and solving Ax = b
  • Matrices up to 6 by 6, rectangular where the operation allows it
  • A shape mismatch is explained by naming both shapes and which numbers have to agree
  • The full elimination shown step by step as exact fractions

When this is useful

  • Linear algebra homework

    Determinants, inverses and row reduction given as exact fractions with the working shown, rather than as rounded decimals.

  • Checking a numerical result

    The identity check and the condition number together say whether an inverse computed elsewhere can be believed.

  • Small-coefficient matrices

    A matrix whose entries are all tiny is as invertible as any other, and this tool treats it that way.

  • Eigenvalue problems

    The characteristic polynomial is printed exactly, and rational eigenvalues come out as integers or fractions with their eigenvectors.

  • Solving a system

    Ax = b over the rationals, with no solution and infinitely many distinguished as decisions and the answer multiplied back through A as the check.

Frequently asked questions

Why does it refuse to invert some matrices and not others?

It refuses exactly when the determinant is exactly zero. That is a decision about a rational number rather than a comparison against a small constant, so a matrix with tiny entries is not mistaken for a singular one.

What is the condition number for?

It says how much an answer computed from this matrix in ordinary floating-point arithmetic could be wrong. A condition number of 1e8 means about eight of the sixteen significant figures a double holds would be lost, and that a change of one part in 1e8 in the input can change the answer completely. The exact inverse this page shows is still exact; the condition number is about what the INPUT would have to be.

Why are the entries fractions rather than decimals?

Because they are exact. The inverse of an integer matrix has rational entries, and 1/3 is a third where 0.333333 is not. A fraction can always be divided out if a decimal is wanted.

How are eigenvalues found?

The characteristic polynomial det(xI - A) is computed exactly by Faddeev-LeVerrier, its rational roots are found exactly by the rational root theorem, and any remaining roots come from the Durand-Kerner iteration. The result is checked against the trace, the determinant, and Cayley-Hamilton.

What is the largest matrix it handles?

Six by six. Exact arithmetic means the entries of a high power or a large inverse can grow to many digits, which is the price of never rounding.

Can I enter fractions?

Yes: 3/4, -1 1/2 and percentages are all read exactly. An entry it cannot read is refused with the cell named, rather than being silently treated as zero.

Private by design

Every calculation runs locally in your browser. Your numbers and expressions are not transmitted or stored.