What Is RREF? Reduced Row Echelon Form with Steps

Reduced row echelon form (RREF) is the cleanest version of a matrix you can reach using row operations. Every pivot is 1, each pivot is the only nonzero number in its column, and the pivots step down from left to right.

It matters because once a system of equations is in RREF, you can read the solution straight off the matrix. No back-substitution needed.

This guide shows how to find RREF by hand, works through two full examples with exact fractions, and covers the slips that cost marks in exams. When you want to check your work, the step-by-step RREF Calculator shows every row operation.

What Is Reduced Row Echelon Form?

A matrix is in reduced row echelon form when it follows four rules:

  1. Any row made entirely of zeros sits at the bottom.
  2. The first nonzero number in each row (the pivot) is 1.
  3. Each pivot is to the right of the pivot in the row above, so the pivots form a staircase.
  4. Each pivot is the only nonzero entry in its column.

Rules 1 to 3 give you row echelon form (REF). Rule 4 is the one that makes it “reduced”.

REF vs RREF: What Is the Difference?

REFRREF
Zeros below pivotsYesYes
Pivots equal 1Not requiredAlways
Zeros above pivotsNot requiredAlways
Is it unique?No, many versionsYes, exactly one

Here is a matrix that is in RREF:

[ 1  0  2  0 ]
[ 0  1 -3  0 ]
[ 0  0  0  1 ]

The pivots sit in columns 1, 2 and 4. Each one is a 1 with zeros above and below it. Column 3 has no pivot, and that is allowed.

And here is a matrix that is not in RREF:

[ 1  2  0 ]
[ 0  1  3 ]

The pivot in column 2 has a 2 sitting above it. Rule 4 says that must be 0.

The Three Row Operations You Are Allowed to Use

Every step of row reduction uses one of these three moves:

  • Swap two rows: R₁ ↔ R₂
  • Scale a row by a nonzero number: Rᵢ → cRᵢ
  • Replace a row by adding a multiple of another row: Rᵢ → Rᵢ + cRⱼ

Each one is reversible, so the new system has exactly the same solutions as the old one. You are rewriting the problem, not changing it. The one thing you can never do is scale a row by 0, because that destroys information.

How to Find RREF: Step-by-Step Method

This method is called Gauss-Jordan elimination. It works on any matrix, and the steps are the same every time.

  1. Find the pivot column. Start at the leftmost column that is not all zeros.
  2. Put a nonzero number at the top. If the current position holds a 0, swap with a row below that has a nonzero entry.
  3. Scale the pivot row. Multiply the row so the pivot becomes 1.
  4. Clear the whole column. Use row replacement to make every other entry in the pivot column 0, both below and above the pivot.
  5. Move on. Go to the next row and the next column to the right, then repeat steps 2 to 4.
  6. Stop when you run out of rows or columns. Zero rows end up at the bottom.

Why clear above the pivot too? Plain Gaussian elimination only clears below, and then you need back-substitution. Clearing above removes that last stage.

Solved Example 1: A Simple 2×2 System

Solve this system by finding the RREF of its augmented matrix:

2x + 4y = 10
 x + 3y = 7

The augmented matrix is:

[ 2  4 | 10 ]
[ 1  3 |  7 ]

Step 1. Swap the rows so the top-left entry is 1 (R₁ ↔ R₂):

[ 1  3 |  7 ]
[ 2  4 | 10 ]

Step 2. Clear below the pivot (R₂ → R₂ − 2R₁):

[ 1   3 |  7 ]
[ 0  -2 | -4 ]

Step 3. Make the second pivot 1 (R₂ → −½R₂):

[ 1  3 | 7 ]
[ 0  1 | 2 ]

Step 4. Clear above the second pivot (R₁ → R₁ − 3R₂):

[ 1  0 | 1 ]
[ 0  1 | 2 ]

This is RREF. Read it row by row: x = 1 and y = 2.

Quick check: 2(1) + 4(2) = 10 and 1 + 3(2) = 7. Both equations hold.

Solved Example 2: A 3×3 System with Fractions

Now a bigger one. Every number stays an exact fraction, because rounded decimals are the fastest way to lose marks.

  2x +  y -  z =   8
 -3x -  y + 2z = -11
 -2x +  y + 2z =  -3

The augmented matrix:

[  2   1  -1 |   8 ]
[ -3  -1   2 | -11 ]
[ -2   1   2 |  -3 ]

Step 1. Scale row 1 to get a pivot of 1 (R₁ → ½R₁):

[  1   1/2  -1/2 |   4 ]
[ -3   -1     2  | -11 ]
[ -2    1     2  |  -3 ]

Step 2. Clear below the first pivot (R₂ → R₂ + 3R₁ and R₃ → R₃ + 2R₁):

[ 1  1/2  -1/2 | 4 ]
[ 0  1/2   1/2 | 1 ]
[ 0   2     1  | 5 ]

Row 2 worked out like this: −1 + 3(½) = ½, then 2 + 3(−½) = ½, then −11 + 3(4) = 1.

Step 3. Make the second pivot 1 (R₂ → 2R₂):

[ 1  1/2  -1/2 | 4 ]
[ 0   1     1  | 2 ]
[ 0   2     1  | 5 ]

Step 4. Clear above and below the second pivot (R₁ → R₁ − ½R₂ and R₃ → R₃ − 2R₂):

[ 1  0  -1 | 3 ]
[ 0  1   1 | 2 ]
[ 0  0  -1 | 1 ]

Step 5. Make the third pivot 1 (R₃ → −R₃):

[ 1  0  -1 |  3 ]
[ 0  1   1 |  2 ]
[ 0  0   1 | -1 ]

Step 6. Clear above the third pivot (R₁ → R₁ + R₃ and R₂ → R₂ − R₃):

[ 1  0  0 |  2 ]
[ 0  1  0 |  3 ]
[ 0  0  1 | -1 ]

The left side is now the identity matrix, so the solution is x = 2, y = 3, z = −1.

Check in the original equations: 2(2) + 3 + 1 = 8, then −3(2) − 3 + 2(−1) = −11, then −2(2) + 3 + 2(−1) = −3. All three are correct.

Stuck on a step? Enter the same matrix in the RREF Calculator and compare its row operations with yours to see exactly where they split.

What RREF Tells You: Rank, Free Variables and No Solution

RREF is not just a tidy matrix. It answers real questions about your system.

Rank

The rank is the number of pivots, which is the number of nonzero rows in RREF. In Example 2 the rank is 3. To test any other matrix, use the Rank of Matrix Calculator.

Infinitely many solutions

Take this augmented matrix and reduce it with R₂ → R₂ − 2R₁:

[ 1  2  3 | 4 ]        [ 1  2  3 | 4 ]
[ 2  4  6 | 8 ]   -->  [ 0  0  0 | 0 ]

Only column 1 has a pivot. So y and z are free variables, and x = 4 − 2y − 3z. Every choice of y and z gives a valid solution.

No solution

[ 1  1 | 2 ]        [ 1  1 | 2 ]
[ 1  1 | 5 ]   -->  [ 0  0 | 3 ]

The bottom row says 0 = 3, which is impossible. Whenever you see a row like [0 0 | nonzero], the system has no solution.

For a faster way to solve full systems, use the System of Linear Equations Calculator.

Common Mistakes When Row Reducing

  • Stopping at REF. If a pivot still has a nonzero number above it, you are not done.
  • Forgetting the augmented column. Every row operation must be applied to the full row, including the numbers after the bar.
  • Updating two rows from each other in one step. If you do R₁ → R₁ − R₂ and R₂ → R₂ − R₁ together, the second one uses a row you already changed. Do them one at a time.
  • Sign errors. Subtracting a negative number is the most common slip. Write the arithmetic out for each entry.
  • Switching to decimals. 1/3 is not 0.33. Keep fractions until the very end.
  • Scaling a row by 0. It is not a valid operation.

Where RREF Is Used: Machine Learning and Beyond

RREF shows up anywhere you solve or analyze linear equations.

In machine learning, linear regression uses the normal equations, which need a matrix to be invertible. If two feature columns are copies or combinations of each other, row reduction reveals a zero row and a lower rank. That tells you the features are linearly dependent, and the model cannot find a unique answer. The same idea is explained in Linear Independence: Definition, Examples and How to Test It.

RREF also finds inverses. Reduce [A | I] until the left side becomes I, and the right side is A⁻¹. This is covered in How to Find the Inverse of a Matrix.

Try It Yourself

Doing it by hand builds understanding. Checking it with a tool saves you from a tiny arithmetic slip that ruins six steps. Enter your matrix and get every row operation with exact fractions.

Check your work with the RREF Calculator

Frequently Asked Questions About RREF

What is the difference between REF and RREF?

Row echelon form (REF) only needs zeros below each pivot, and pivots can be any nonzero number. Reduced row echelon form goes further: every pivot is 1, and every pivot is the only nonzero entry in its column. A matrix can have many REFs, but only one RREF.

How do you find the RREF of a matrix?

Use Gauss-Jordan elimination. Work column by column from the left: get a pivot, scale it to 1, then clear every other entry in that column using row replacement. Swap rows when a pivot position holds a zero. Repeat until every pivot column is clean.

Is the RREF of a matrix unique?

Yes. Every matrix has exactly one RREF, no matter which valid row operations you use or in what order. Your intermediate steps can look different from a classmate's, but the final answer will match.

How do you find the rank of a matrix using RREF?

Reduce the matrix to RREF, then count the nonzero rows. That count is the rank, and it equals the number of pivots. A 3×3 matrix whose RREF is the identity has rank 3. Each row of zeros lowers the rank by one.

What does a zero row in RREF mean?

A zero row means one row was a combination of the others, so the rows are linearly dependent. In an augmented matrix, [0 0 0 | 0] with free variables gives infinitely many solutions. A row like [0 0 0 | 5] means no solution.

Conclusion

Reduced row echelon form is the finish line of row reduction: pivots of 1, zeros everywhere else in their columns, and one unique answer for every matrix. Follow the same loop each time (pivot, scale, clear, move right) and the method never changes.

Key takeaway: do the steps by hand until they feel automatic, keep your numbers as fractions, and use the RREF Calculator to confirm the result.

Keep learning: What is a Determinant? · Inverse Matrix Calculator · All blog posts