Skip to content

Reduced row echelon form, step by step

5 min read

Short answer

A matrix is in reduced row echelon form when each nonzero row starts with a 1 (the pivot), pivots move right as you go down, each pivot is the only nonzero entry in its column, and zero rows sit at the bottom. To get there, use row operations: swap, scale a row, add a multiple of one row to another. Work left to right, one pivot column at a time.

Steps1Find the leftmost column that is not all zeros2Swap a nonzero entry to thetop and scale it to 13Clear every other entry in that column4Repeat on the rows below, then read the answerPivots tell you the basic variables; the rest are free
Gauss-Jordan elimination is the same routine each time. Do not skip the scaling step.

Reading the result

Treat the last column as the right-hand side if the matrix was augmented. A pivot column is a basic variable; a column with no pivot is a free variable and can be any number. A row (0 0 0∣1)(0\ 0\ 0\mid1) means no solution. No free variables and no contradictory row means a unique solution.

RREF versus plain echelon form

Echelon form only requires zeros below each pivot, which is enough for back-substitution. RREF clears above the pivots too, so the answer can be read off without further work. RREF is also unique: every matrix has exactly one, which is why it is the standard for rank and null space questions.

Worked example

Reduce (120324181215)\left(\begin{array}{ccc|c}1&2&0&3\\2&4&1&8\\1&2&1&5\end{array}\right) (variables x,y,zx,y,z) and describe the solutions.

R2←R2−2R1R_2\leftarrow R_2-2R_1 gives (0,0,1∣2)(0,0,1\mid2). R3←R3−R1R_3\leftarrow R_3-R_1 gives (0,0,1∣2)(0,0,1\mid2). Then R3←R3−R2R_3\leftarrow R_3-R_2 gives zeros: (120300120000).\left(\begin{array}{ccc|c}1&2&0&3\\0&0&1&2\\0&0&0&0\end{array}\right). Already in RREF. Pivots are in columns xx and zz; yy is free. So x=3−2tx=3-2t, y=ty=t, z=2z=2: a line of solutions.

Try it yourself

Reduce (2413)\begin{pmatrix}2&4\\1&3\end{pmatrix} to RREF.

Show the answer

Swap or scale: R1←12R1R_1\leftarrow\tfrac12R_1 gives (1,2)(1,2). R2←R2−R1R_2\leftarrow R_2-R_1 gives (0,1)(0,1). R1←R1−2R2R_1\leftarrow R_1-2R_2 gives (1,0)(1,0). Result: the identity matrix, so the matrix is invertible.

Keep going with practice

Vidi's matrix calculator shows each row-reduction step, and the Linear Algebra & Probability course practices it.