Skip to content

§ IV · Linear algebra

Matrix Calculator

Determinant, inverse and row reduction in exact fractions.

  • Updated 2026-11-25
  • Free · no sign-up
  • Runs in your browser
Matrix calculatorexact fractions · row operations in order

Entries may be fractions: 1/2 3; 0 4/5. Up to 8 × 8.

Operation

Determinant

1

exact entries

Row operations

01 · R2 ← R2 − (5/2)·R1

21
01/2

02 · the product of the diagonal entries, with the sign of the swaps

21
01/2

Try one

Compared with a basic calculator

TaskBasic calculatorThis page
InputScalar valuesRational matrices up to 8 × 8
WorkingRepeat row arithmetic manuallyRow operations with rational entries
OperationsScalar arithmeticDeterminant, inverse and row reduction

How to use it

§ How to use
  1. 01

    Type rows separated by semicolons and entries by spaces: 2 1; 5 3. Fractions are allowed.

  2. 02

    Choose determinant, inverse or row reduction.

  3. 03

    Read the operation list: every elementary row operation is printed with the matrix it produced.

  4. 04

    Entries stay fractional throughout, so an inverse never turns 1/3 into 0.3333.

Why exact fractions matter more here

§ 02

Row reduction multiplies errors as it goes; exact entries do not.

TaskTypical float resultShowSteps
det [2 1; 5 3]0.99999999999999981
inverse of [3 1; 2 1]1 −1; −2 3 as decimalsexactly [1 −1; −2 3]
rank of [1 2; 2 4]computed by tolerance1, because row 2 is 2 × row 1

What the three operations mean

§ 03

Determinant

The determinant is the factor by which the matrix scales area (or volume, or hypervolume). It is computed by Gaussian elimination: the product of the pivots, with a sign flip for each row swap. A determinant of zero means the matrix collapses space onto a lower dimension, which is exactly why it has no inverse.

Inverse

The matrix is augmented with the identity and reduced until the left half is the identity; the right half is then the inverse. Because every operation is exact, the identity arrives exactly rather than approximately, and a singular matrix is detected by a missing pivot instead of a tiny number being treated as zero.

Row reduction

Reduced row echelon form is the canonical answer to “what does this system actually say?”. Each leading one marks a pivot variable, the columns without one are free variables, and the number of pivots is the rank. Every step in the panel is one elementary row operation, so the sequence can be copied into an exam answer.

The operations used

Only three, and the panel names each one: swap two rows, divide a row by its pivot, and subtract a multiple of the pivot row from another row. Nothing else is needed, and nothing else is done.

Questions

§ 04
How do I enter a matrix?
Write one row per line, or separate rows with a semicolon: 2 1; 5 3. Entries are separated by spaces or commas, and may be fractions such as 1/2.
Are the entries exact?
Yes. Entries are rational numbers held as integers over integers, so the inverse of [2 1; 5 3] is exactly [3 −1; −5 2] and a 1/3 never becomes 0.3333.
What does row reduce do?
It applies elementary row operations until the matrix is in reduced row echelon form: leading ones down the diagonal, zeros above and below them. The rank is the number of leading ones, and it is printed with the result.
Which pivot does it choose?
The first non-zero entry in the column, scanning from the top. That is the standard textbook choice; it keeps the sequence of row operations easy to follow by hand rather than minimising rounding, which exact fractions already handle.
What happens if the matrix is singular?
The inverse operation reports that a column has no pivot and stops, rather than printing a wrong matrix. The determinant of the same matrix will be 0, which is the same fact stated differently.
How large can the matrix be?
Up to 8 × 8. Beyond that the list of row operations becomes longer than it is useful to read, and exact fractions grow quite fast.
Can I multiply two matrices?
Not in this panel — it works on one matrix at a time. Multiplication of two matrices is on the list.
Why print the row operations?
Because a reduced matrix on its own does not show how it was reduced, and the operations are exactly what you would be asked to write down. Every line records one elementary operation together with the matrix it produced.

ShowSteps

Free calculators with exact fractions, simplified surds and recorded working, so you can check supported calculations.

© 2026 ShowSteps ·