Skip to content
ihateDesmos

RREF calculator

Type any matrix, square or not, and see it reduced to reduced row echelon form with every row operation listed, in exact fractions. You also get the rank and pivot columns.

Reduced row echelon form
100
010
001
Rank
3
Pivot columns
1, 2, 3
Row operations
  1. R2 → R2 − 4·R1
  2. R3 → R3 − 7·R1
  3. R2 → R2 ÷ −3
  4. R1 → R1 − 2·R2
  5. R3 → R3 + 6·R2
  6. R1 → R1 + 1·R3
  7. R2 → R2 − 2·R3

How to use it

  1. 1
    Type the matrix with one row per line and spaces between entries. Fractions like 1/2 and decimals both work.
  2. 2
    Leave the operation on “Reduced row echelon form of A”.
  3. 3
    The answer stays in exact fractions, so nothing is rounded, and the row operations are listed underneath.

What RREF is

A matrix is in reduced row echelon form when:

  1. Any row of all zeros is at the bottom.
  2. The first non-zero entry of each row, its pivot, is 1.
  3. Each pivot is to the right of the pivot above it.
  4. Each pivot is the only non-zero entry in its column.

Every matrix has exactly one RREF, so it works as a standard form to compare against.

How to row-reduce by hand

Three operations never change a system’s solutions: swap two rows, multiply a row by a non-zero number, and add a multiple of one row to another.

  1. Find the first column with a non-zero entry, and swap a row with that entry to the top.
  2. Divide that row by its pivot, to make the pivot 1.
  3. Subtract multiples of it from every other row, to clear the rest of the column.
  4. Move to the next row and the next column, and repeat.

What you can read from it

  • Solving systems: row-reduce the augmented matrix and read off the solution. A row like 0 0 | 1 means no solution.
  • Rank: the number of pivots.
  • Free variables: columns with no pivot mean infinitely many solutions.
  • Inverses: row-reducing [A | I] gives [I | A⁻¹].

Frequently asked questions

What is the difference between REF and RREF?
Row echelon form only needs zeros below each pivot. Reduced row echelon form also needs each pivot to be 1, with zeros above it too. REF isn’t unique, but RREF is.
Does RREF work for non-square matrices?
Yes. Any matrix can be row-reduced, which is why it is so useful for augmented matrices.
How do I solve a system with RREF?
Write the coefficients and right-hand sides as an augmented matrix, and reduce it. Each pivot row then gives one variable directly.
Are the answers exact?
Yes. Everything is kept as exact fractions, so there are no rounding errors to confuse a pivot with zero.

Related tools and guides

Try the RREF calculator

It opens instantly, with no account and nothing to install.

Open the calculator