§ 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
Entries may be fractions: 1/2 3; 0 4/5. Up to 8 × 8.
Operation
Determinant
1
exact entriesRow operations
01 · R2 ← R2 − (5/2)·R1
| 2 | 1 |
| 0 | 1/2 |
02 · the product of the diagonal entries, with the sign of the swaps
| 2 | 1 |
| 0 | 1/2 |
Try one
Compared with a basic calculator
| Task | Basic calculator | This page |
|---|---|---|
| Input | Scalar values | Rational matrices up to 8 × 8 |
| Working | Repeat row arithmetic manually | Row operations with rational entries |
| Operations | Scalar arithmetic | Determinant, inverse and row reduction |
How to use it
§ How to use- 01
Type rows separated by semicolons and entries by spaces: 2 1; 5 3. Fractions are allowed.
- 02
Choose determinant, inverse or row reduction.
- 03
Read the operation list: every elementary row operation is printed with the matrix it produced.
- 04
Entries stay fractional throughout, so an inverse never turns 1/3 into 0.3333.
Why exact fractions matter more here
§ 02Row reduction multiplies errors as it goes; exact entries do not.
| Task | Typical float result | ShowSteps |
|---|---|---|
| det [2 1; 5 3] | 0.9999999999999998 | 1 |
| inverse of [3 1; 2 1] | 1 −1; −2 3 as decimals | exactly [1 −1; −2 3] |
| rank of [1 2; 2 4] | computed by tolerance | 1, because row 2 is 2 × row 1 |
What the three operations mean
§ 03Determinant
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.
Related calculators
allAlgebra
Quadratic Equation Solver
Exact roots in surd form, with the discriminant worked out first.
x² − 5x + 6 = 0
Arithmetic
Scientific Calculator
A full keypad that keeps surds exact and records every operation.
√8 + 3/8 + 5/12
Statistics
Statistics Calculator
Mean, spread and quartiles with the arithmetic shown.
12, 15, 15, 18, 21, 30
Algebra
Equation Solver
Exact roots to degree two, numerical roots above it.
x² − 5x + 6 = 0 → x = 3, 2
Measurement
Unit Converter
One exact factor per conversion, and it tells you which factor.
32 psi → kPa
Arithmetic
Combinations & Permutations Calculator
Choose or arrange, in exact integers, repeats included.
C(10, 3) = 120