How to Find the RREF of a Matrix, Step by Step
A plain guide to reduced row echelon form: the three row operations, pivots, rank and reading solutions, with a fully worked 3×3 system you can check.

Row reduction is the first big technique in linear algebra, and it keeps coming back: solving systems, finding inverses, computing rank, building bases for the null space. Most students understand the idea quickly and then lose marks to arithmetic. This guide walks through the method in plain language and shows how to check every line of your own work with the free RREF Calculator with Steps, which keeps all numbers as exact fractions.
The three moves you are allowed
Every reduction uses only three elementary row operations. You may swap two rows. You may multiply a row by a non-zero number. You may add a multiple of one row to another row. None of these changes the set of solutions of the system, which is why the final matrix tells you the truth about the original equations.
The goal is a staircase. In row echelon form each row starts with more zeros than the row above, and the first non-zero number in each row is called a pivot. Reduced row echelon form goes further: every pivot is 1, and every other entry in a pivot column is 0. A matrix can have many echelon forms but only one reduced form, so two people who both do the work correctly always agree on the RREF even if their middle steps differ.
A routine that always works
Start with the leftmost column that has a non-zero entry. If the top row has a zero there, swap in a row that does not. Divide the row by its pivot so the pivot becomes 1. Subtract suitable multiples of that row from every other row to clear the rest of the column. Then move one row down and one column right and repeat. When you run out of rows or columns, you are done.
There are two popular orders. Gauss-Jordan clears each column above and below the pivot straight away. The echelon-first order clears only below the pivots on the way down, then goes back up and clears above them, which is called back substitution. The calculator lets you pick either, so the steps on screen follow the same pattern as your lecture notes.
Working a real example
Take the system x1 + 2x2 − x3 = −4, 2x1 + 3x2 − x3 = −11 and −2x1 − 3x3 = 22. Its augmented matrix has rows 1 2 −1 | −4, 2 3 −1 | −11 and −2 0 −3 | 22. Type these into the grid, tick the box that marks the last column as the right-hand side, and the tool performs eight operations.
First it subtracts twice row 1 from row 2 and adds twice row 1 to row 3, so column 1 becomes 1, 0, 0. Row 2 now starts with −1, so the tool multiplies it by −1. It clears column 2 by subtracting twice the new row 2 from row 1 and four times it from row 3. Row 3 now reads 0 0 −1 | 2, which is multiplied by −1. Finally it subtracts row 3 from row 1 and adds it to row 2.
The result has rows 1 0 0 | −8, 0 1 0 | 1 and 0 0 1 | −2. That is the unique solution x1 = −8, x2 = 1 and x3 = −2. The tool also multiplies the original coefficient matrix by this vector and shows that it gives back −4, −11 and 22, so you know the answer is right.
What the final matrix tells you
Count the pivots: that number is the rank. Look at the right-hand column of an augmented matrix. If any row reads all zeros on the left and a non-zero number on the right, the equations contradict each other and there is no solution. If there is no such row and every variable column has a pivot, the solution is unique. If some variable column has no pivot, that variable is free and the system has infinitely many solutions.
For the infinite case the calculator names each free variable t, s, u and so on and writes the pivot variables in terms of them. Try the example called "infinitely many solutions" to see a general answer of the form x = p + t·v, where p is one particular solution and v is a direction in the null space.
Habits that save marks
Write the operation next to every new matrix, exactly as the calculator does, so you can find a mistake later. Keep fractions rather than decimals; 1/3 written as 0.33 will spoil every later row. When a pivot is awkward, look for a row with a 1 or −1 in that column and swap it up first. The calculator has a switch that imitates this habit, which makes its steps look more like hand work.
Check your answer by substituting it back into the original equations, not the reduced ones. An error made early would pass a check against the reduced matrix.
Using the tool to study
Do the problem by hand first. Then enter the same matrix, open the list of row operations and compare matrix by matrix. The first place where your matrix differs from the tool's is where your mistake is. When you are happy, copy the working as text, copy the final matrix as LaTeX for an assignment, or print the whole page. Your matrix and settings stay saved in the browser, with undo and redo, and nothing is uploaded anywhere.


