Row Reduction Calculator — RREF and REF with Steps

Reduce a rectangular or augmented matrix to row echelon form or reduced row echelon form. Follow every swap, scaling, and elimination step without sending matrix entries anywhere.

Enter a Matrix

A candidate pivot at or below the selected size relative to its row is treated as zero. Standard suits most entered decimal data.

Enter integers, decimals, or scientific notation. Display precision does not round intermediate calculations.

Put rows on separate lines and separate entries with spaces, commas, or tabs. A valid 1×1 through 8×9 paste changes the grid dimensions.

Reduced Row Echelon Form (RREF)

Enter a valid matrix to calculate its row-reduced form.
Coefficient rank
Pivot columns
Free columns
Row operations
Rank and pivot information appear after a successful reduction.

Advertisement

Elementary Row-Operation Steps

Rows are numbered from 1. When enabled, the vertical divider marks the augmented final column.

Reduce a valid matrix to see the matrix after every elementary row operation.

REF, RREF, and the Three Row Operations

Swap two rows

Rᵢ ↔ Rⱼ

Move a usable pivot into the next pivot position.

Scale a row

Rᵢ ← cRᵢ,   c ≠ 0

This calculator scales each pivot to 1 for a clearer echelon form.

Add a row multiple

Rᵢ ← Rᵢ + cRⱼ

Eliminate entries below a pivot for REF and both below and above it for RREF.

Numerical method: The calculator uses scaled partial pivoting and JavaScript double-precision arithmetic. It accepts zero or finite nonzero entries from 10⁻⁴⁰ through 10⁴⁰ in magnitude. The selected relative tolerance controls numerical pivot decisions; use exact-arithmetic software when exact rational output is required.

How to Use the Row Reduction Calculator

  1. Select the row and column counts, then enter every value or paste a complete rectangular matrix.
  2. Mark the final column as augmented when the matrix represents a linear system [A | b].
  3. Choose REF for forward Gaussian elimination or RREF for full Gauss–Jordan elimination.
  4. Select Reduce matrix. Review the rank, pivot and free columns, system classification, and recorded steps.

Worked 3×4 Augmented-Matrix Example

The default matrix represents three equations in three unknowns:

Starting matrix [A | b]

[[1, 2, −1 | −4], [2, 3, −1 | −11], [−2, 0, −3 | 22]]

RREF

[[1, 0, 0 | −8], [0, 1, 0 | 1], [0, 0, 1 | −2]]

The three coefficient columns are pivots, so the coefficient rank equals the number of variables. The system has the unique solution x = −8, y = 1, and z = −2.

Reading Rank, Pivots, and System Status

A pivot column contains a leading entry in an echelon form. The number of pivots is the matrix rank. Non-pivot coefficient columns are free columns; in a consistent system, each free variable contributes a parameter to the solution family.

For an augmented matrix [A | b], the system is inconsistent when reduction produces a row of the form [0 0 … 0 | c] with nonzero c. Otherwise, it has a unique solution when every variable column is a pivot and infinitely many solutions when at least one variable column is free.

Row Reduction Calculator FAQs

What is the difference between REF and RREF?

REF has zeros below each pivot and places successive pivots farther right. RREF additionally makes each pivot 1 and clears every other entry in its pivot column.

Is reduced row echelon form unique?

Yes. Every matrix has one unique RREF. REF is not unique, so another valid elimination order may give a different echelon matrix with the same rank and pivot structure.

Can I row-reduce a non-square matrix?

Yes. This calculator accepts rectangular matrices from 1×1 through 8×9. A matrix does not need to be square to have REF, RREF, rank, pivots, or free columns.

How does the augmented-column option work?

The last column is treated as the constants vector rather than a variable column. It still participates in every row operation, but the calculator does not choose a coefficient pivot from it.

Does row reduction preserve a linear system's solutions?

Yes. Each elementary row operation is reversible, so it replaces the system with an equivalent system having the same solutions.

Why does a decimal result sometimes show a tiny error?

Most decimal fractions are approximated in binary floating point. The selected tolerance suppresses numerically negligible pivot candidates, but poorly scaled or sensitive matrices may still require more specialized numerical software.

Are my matrix entries private?

Yes. The page parses and reduces the matrix locally, and creates copied text and downloads in your browser. The calculator code does not transmit or save entered values.

Calculation Notes

Last reviewed: August 5, 2026 by the Starlight Tools editorial team.

The algorithm selects the strongest available pivot relative to each candidate row, scales pivots to 1, and records every effective elementary row operation. REF output depends on the pivot strategy; RREF is mathematically unique, subject to the selected numerical tolerance and floating-point rounding.

Explore more tools