Row reduction

Reduce a matrix to REF or RREF

Enter a coefficient or augmented matrix and choose where to stop. Gaussian elimination produces row echelon form, while Gauss-Jordan continues until every pivot column is reduced.

Enter a coefficient or augmented matrix

Matrix A

2 × 3

Select any entry, then type with the math keyboard or your device keyboard.

Use REF for forward elimination or RREF for a unique reduced form.

The augmented system has one solution

RREF(A)=[10750195]\operatorname{RREF}(A)=\begin{bmatrix}1&0&\frac75\\0&1&\frac95\end{bmatrix}
Conditions
  • The last column is interpreted as the constants column.
  • Pivots are chosen with exact arithmetic.
  • The two variable columns contain pivots, so the solution is unique.

Steps

  1. Eliminate below the first pivot Replace row 2 by row 2 minus twice row 1.[125059]\begin{bmatrix}1&2&5\\0&-5&-9\end{bmatrix}
  2. Scale the second pivot Divide row 2 by negative 5.[1250195]\begin{bmatrix}1&2&5\\0&1&\frac95\end{bmatrix}
  3. Clear above the second pivot Replace row 1 by row 1 minus twice row 2.[10750195]\begin{bmatrix}1&0&\frac75\\0&1&\frac95\end{bmatrix}
Independent check

Substitution gives 7/5+2(9/5)=5 and 2(7/5)-9/5=1, matching both original equations.

What this row reduction covers

Gaussian elimination uses elementary row operations to reach row echelon form (REF), then solves by back-substitution. Gauss-Jordan elimination continues to reduced row echelon form (RREF), where each pivot is the only nonzero entry in its column.

Stop at row echelon form

Use Gaussian elimination to create pivots with zeros below them, then preserve REF for back-substitution.

Examples: upper triangular REF, back-substitution

Continue to reduced row echelon form

Use Gauss-Jordan elimination to make every pivot 1 and clear all other entries in each pivot column.

Examples: unique RREF, free-variable RREF

Solve augmented linear systems

Interpret the last column as constants and distinguish one solution, infinitely many solutions, and no solution.

Examples: pivot in every variable column, free variable, inconsistent row

Reduce an ordinary matrix

Treat every column as matrix data when no augmented separator is selected, useful for rank and pivot analysis.

Examples: rank, pivot columns, linear dependence

Enter enough information for one clear task

  1. 1
    Choose coefficient or augmented input

    Use an augmented matrix for a system of equations and identify the last column as constants. Use an ordinary matrix for rank or pivot structure.

  2. 2
    Choose REF or RREF

    Select Gaussian elimination to stop at REF or Gauss-Jordan elimination to continue to the unique RREF.

  3. 3
    Enter every value exactly

    Use integers, finite decimals, or fractions. Exact fractions avoid rounding a pivot or residual to zero.

  4. 4
    Interpret the pivot pattern

    Read pivot and free-variable columns, and check for an inconsistent row of the form [0 ... 0 | c] with c nonzero.

Examples to try

Use these examples to recognize the method, compare equivalent forms, and check your own work.

Unique two-variable system

Use two pivots and clear both pivot columns.

[125211]\left[\begin{array}{cc|c}1&2&5\\2&-1&1\end{array}\right]

Expected result

[10750195]\left[\begin{array}{cc|c}1&0&\frac75\\0&1&\frac95\end{array}\right]

Infinite solutions

The second row reduces to zero, leaving one free variable.

[123246]\left[\begin{array}{cc|c}1&2&3\\2&4&6\end{array}\right]

Expected result

x=32t,y=tx=3-2t,\quad y=t

Inconsistent system

Elimination creates the impossible equation 0=1.

[112225]\left[\begin{array}{cc|c}1&1&2\\2&2&5\end{array}\right]

Expected result

[112001]\left[\begin{array}{cc|c}1&1&2\\0&0&1\end{array}\right]\Rightarrow\varnothing

REF without clearing above pivots

Eliminate entries below successive pivots and stop before backward clearing.

[121254102]\begin{bmatrix}1&2&1\\2&5&4\\-1&0&2\end{bmatrix}

Expected result

[121012001]\begin{bmatrix}1&2&1\\0&1&2\\0&0&-1\end{bmatrix}

RREF of a dependent matrix

Reduce until pivot columns have zeros above and below their leading ones.

[123246111]\begin{bmatrix}1&2&3\\2&4&6\\1&1&1\end{bmatrix}

Expected result

[101012000]\begin{bmatrix}1&0&-1\\0&1&2\\0&0&0\end{bmatrix}

Row swap for a zero leading entry

Swap the rows before using the first-column pivot.

[024111]\left[\begin{array}{cc|c}0&2&4\\1&-1&1\end{array}\right]

Expected result

[103012]\left[\begin{array}{cc|c}1&0&3\\0&1&2\end{array}\right]

Fractional pivot

Keep one-third exact after elimination.

[211110]\left[\begin{array}{cc|c}2&1&1\\1&-1&0\end{array}\right]

Expected result

[10130113]\left[\begin{array}{cc|c}1&0&\frac13\\0&1&\frac13\end{array}\right]

Solve a three-variable system and verify every equation

The augmented matrix has three variable columns. Reaching a pivot in each one will produce a unique solution.

[1116211312312]\left[\begin{array}{ccc|c}1&1&1&6\\2&-1&1&3\\-1&2&3&12\end{array}\right]
  1. 1
    Clear below the first pivot

    Use row 1 to eliminate the first entries of rows 2 and 3.

    [1116031903418]\left[\begin{array}{ccc|c}1&1&1&6\\0&-3&-1&-9\\0&3&4&18\end{array}\right]
  2. 2
    Create the third pivot

    Add row 2 to row 3, producing a simple equation for z.

    [111603190039]\left[\begin{array}{ccc|c}1&1&1&6\\0&-3&-1&-9\\0&0&3&9\end{array}\right]
  3. 3
    Reduce upward

    Scale the pivots and clear entries above them to reach RREF.

    [100101020013]\left[\begin{array}{ccc|c}1&0&0&1\\0&1&0&2\\0&0&1&3\end{array}\right]
x=1,y=2,z=3x=1,\quad y=2,\quad z=3

Verification: Substitution gives 1+2+3=6, 2-2+3=3, and -1+4+9=12, so all three original equations hold.

Common mistakes and how to fix them

Calling every echelon form RREF

Problem: Stop when entries below pivots are zero and label the matrix reduced row echelon form.

Why it matters: RREF also requires each pivot to be 1 and the only nonzero entry in its column.

Better approach: Label the intermediate result REF, or continue backward clearing for RREF.

Changing only part of a row

Problem: Apply a row replacement to coefficients but not to the augmented constant.

Why it matters: That changes the represented equation and therefore the solution set.

Better approach: Apply every row operation across all columns, including the augmented column.

Treating a free variable as zero

Problem: Set every nonpivot variable to zero and report only one vector.

Why it matters: A free variable represents a family of solutions, not a fixed value unless the problem imposes one.

Better approach: Introduce a parameter and express each pivot variable in terms of it.

Missing an inconsistent row

Problem: Ignore [0 0 | 1] and continue back-substitution.

Why it matters: That row represents 0=1, so no vector satisfies the full system.

Better approach: Check every reduced row for a nonzero constant after all coefficient entries become zero.

Checks, assumptions, and limits

How results are checked

  • Every displayed elementary row operation is replayed on the complete row.
  • The result is tested against the formal REF or RREF conditions selected.
  • System solutions are substituted into every original equation.
  • Rank, pivot, free-variable, and inconsistency conclusions are derived from the final matrix.

When to stop and revise the input

  • Matrices are limited to four rows and four columns, including an augmented column.
  • Entries must be finite real integers, decimals, or simple fractions.
  • Symbolic parameters and complex entries are outside this release.
  • The page does not infer whether the last column is augmented unless that mode is selected.

Reduce a matrix to REF or RREF FAQ

What is the difference between Gaussian and Gauss-Jordan elimination?

Gaussian elimination stops at REF and usually uses back-substitution. Gauss-Jordan continues until every pivot column is reduced, producing RREF directly.

Is row echelon form unique?

No. Different valid row-operation sequences can produce different REF matrices. RREF is unique for a given matrix.

How does RREF show infinitely many solutions?

At least one variable column lacks a pivot and no inconsistent row appears. The nonpivot variables become free parameters.

How does row reduction show no solution?

An augmented row with all zero coefficients and a nonzero constant represents an impossible equation such as 0=1.

Do row operations change the solution set?

Swapping rows, multiplying a row by a nonzero number, or adding a multiple of one row to another produces an equivalent system with the same solutions.

Sources and curriculum alignment

This page follows standard introductory mathematics notation and learning sequences. Use these references to continue with a complete course treatment.

Choose the resource that matches what you need to do next.

Created by Mathos AI. Methods, conditions, and checks are shown so you can review the mathematical reasoning.