RREF Calculator

Reduce a matrix to reduced row echelon form, step by step.

Matrix A
Rows
2
Columns
3

Write rows separated by semicolons, like 1, 2; 3, 4.

Try

Result

You enteredrref⁡(123456)\operatorname{rref}\begin{pmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{pmatrix}

(10−1012)\displaystyle \begin{pmatrix} 1 & 0 & -1 \\ 0 & 1 & 2 \end{pmatrix}

Rank

2\displaystyle 2
Show the work
  1. Gauss-Jordan elimination

    Work column by column. Make a pivot (a leading 1) with a swap or a scaling, then clear every other entry in its column by adding multiples of the pivot row.

    A=(123456)A = \begin{pmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{pmatrix}
  2. Row operation: add a multiple of one row to another

    Subtract 44 times R1R_1 from R2R_2 to turn the entry in row 2, column 1 into 0.

    R2→R2−4R1(1230−3−6)R_2 \to R_2 - 4R_1 \quad \begin{pmatrix} 1 & 2 & 3 \\ 0 & -3 & -6 \end{pmatrix}
  3. Row operation: scale a row

    Multiply R2R_2 by −13-\frac{1}{3} so that the pivot in row 2, column 2 becomes 1.

    R2→−13R2(123012)R_2 \to -\frac{1}{3}R_2 \quad \begin{pmatrix} 1 & 2 & 3 \\ 0 & 1 & 2 \end{pmatrix}
  4. Row operation: add a multiple of one row to another

    Subtract 22 times R2R_2 from R1R_1 to turn the entry in row 1, column 2 into 0.

    R1→R1−2R2(10−1012)R_1 \to R_1 - 2R_2 \quad \begin{pmatrix} 1 & 0 & -1 \\ 0 & 1 & 2 \end{pmatrix}
  5. Result

    So rref⁡(A)=(10−1012)\operatorname{rref}(A) = \begin{pmatrix} 1 & 0 & -1 \\ 0 & 1 & 2 \end{pmatrix}. It has 2 pivots, so the rank is 2.

Worked examples