RREF calculator (reduced row echelon form)

Type a matrix row by row and get its reduced row echelon form (RREF) by Gauss–Jordan elimination. The arithmetic is exact, so 1/3 stays 1/3, and every row operation is listed so you can check homework line by line.

Rows separated by semicolons, numbers by spaces or commas. Fractions such as 1/3 and decimals such as 0.5 work. Up to 8 × 8.
Reduced row echelon form[ 1 0 0 -8 ] [ 0 1 0 1 ] [ 0 0 1 -2 ]
Rank
3
Pivot columns
1, 2, 3
Columns without a pivot
4
Size (rows × columns)
3 × 4
Row operations
[ 1 2 -1 -4 ] [ 2 3 -1 -11 ] [ -2 0 -3 22 ] R2 ← R2 − 2·R1 [ 1 2 -1 -4 ] [ 0 -1 1 -3 ] [ -2 0 -3 22 ] R3 ← R3 + 2·R1 [ 1 2 -1 -4 ] [ 0 -1 1 -3 ] [ 0 4 -5 14 ] R2 ← R2 ÷ -1 [ 1 2 -1 -4 ] [ 0 1 -1 3 ] [ 0 4 -5 14 ] R1 ← R1 − 2·R2 [ 1 0 1 -10 ] [ 0 1 -1 3 ] [ 0 4 -5 14 ] R3 ← R3 − 4·R2 [ 1 0 1 -10 ] [ 0 1 -1 3 ] [ 0 0 -1 2 ] R3 ← R3 ÷ -1 [ 1 0 1 -10 ] [ 0 1 -1 3 ] [ 0 0 1 -2 ] R1 ← R1 − R3 [ 1 0 0 -8 ] [ 0 1 -1 3 ] [ 0 0 1 -2 ] R2 ← R2 + R3 [ 1 0 0 -8 ] [ 0 1 0 1 ] [ 0 0 1 -2 ]

Runs in your browser: nothing you enter is sent anywhere.

How to use it

  1. Type the matrix row by row, separating rows with a semicolon: 1 2 -1 -4; 2 3 -1 -11; -2 0 -3 22.
  2. Pick fractions or decimals for the final matrix.
  3. Read the RREF, the rank and the pivot columns, and scroll through the row operations if you need the working.

How it works

The calculator runs Gauss–Jordan elimination column by column. In each column it finds the first row at or below the current one with a non-zero entry, swaps it up if needed (R1 ↔ R2), divides it so the pivot becomes 1 (R2 ← R2 ÷ 3) and subtracts multiples of it from every other row (R3 ← R3 − 2·R1) so the rest of the column becomes 0. Then it moves to the next row and column. All arithmetic is with exact fractions.

Worked example

The system x + 2y − z = −4, 2x + 3y − z = −11, −2x − 3z = 22 as an augmented matrix is 1 2 -1 -4; 2 3 -1 -11; -2 0 -3 22. The first steps are R2 ← R2 − 2·R1, giving [0 −1 1 −3], and R3 ← R3 + 2·R1, giving [0 4 −5 14]. After eight row operations the result is

[ 1  0  0  -8 ]
[ 0  1  0   1 ]
[ 0  0  1  -2 ]

The rank is 3, the pivots are in columns 1, 2 and 3, and the solution reads straight off the last column: x = −8, y = 1, z = −2.

Tips and common mistakes

  • Every row needs the same number of entries; write 0 for a missing term.
  • Put the constants in the last column only for an augmented matrix; the calculator reduces every column the same way, so a pivot in the last column signals an inconsistent system.
  • Row echelon form (REF) is not unique, but RREF is, so your answer should match exactly even if you used different steps.

Frequently asked questions

What is reduced row echelon form?

A matrix is in RREF when every non-zero row starts with a 1 (the pivot), each pivot is to the right of the one above, every other entry in a pivot column is 0, and rows of zeros are at the bottom. Every matrix has exactly one RREF.

How do I use it to solve a system of equations?

Write the augmented matrix: the coefficients of each equation followed by its constant. In the RREF each pivot row reads off one variable. A row of zeros ending in a non-zero number means the system has no solution; a column without a pivot is a free variable.

What does the rank tell me?

The rank is the number of pivots, which equals the number of linearly independent rows (and columns). A square matrix is invertible exactly when its rank equals its size.

Why do the steps use fractions even in decimal mode?

The elimination is done in exact fractions so no rounding builds up. The decimal option only changes how the final matrix is shown, rounded to six decimals.

More in Math

All tools in this category: Math ·Updated November 4, 2026

Privacy choices

Google Analytics shows us which tools are used and whether they work. It may set cookies. Your choice is kept in this browser.