Math

RREF Calculator

Reduce a matrix to reduced row echelon form with visible Gauss–Jordan row operations.

Quick guide

How to use the RREF Calculator

  1. Enter or choose matrix or augmented matrix.
  2. Select Find RREF.
  3. Review the main result, supporting breakdown, and step-by-step calculation notes.
  4. Copy the output or download the generated file when available.

What this tool does

Transform any numeric or augmented matrix into its unique Reduced Row Echelon Form (RREF) using Gauss–Jordan elimination with partial pivoting, and inspect every row swap, scaling step, and elimination operation. Use it for solving linear systems, finding matrix rank, identifying pivot columns, and checking linear independence.

Elementary row ops: Rᵢ ↔ Rⱼ · Rᵢ → k·Rᵢ (k ≠ 0) · Rᵢ → Rᵢ + c·Rⱼ

Calculation method

  1. Parse whitespace- or comma-separated rows and verify all rows share the same column count (up to 8×8).
  2. Locate the largest-magnitude pivot in each column to reduce floating-point instability and swap it into the active row.
  3. Scale the pivot row so its leading entry equals 1, then eliminate all entries above and below that pivot.
  4. Record each elementary row operation, compute matrix rank from pivot count, and display the final RREF table.

Example: Gauss–Jordan reduction of a 3×4 augmented matrix

Input: 1 2 -1 8 / 2 3 -1 13 / -1 -1 2 -3

Result: RREF · rank 3 → [[1,0,0,1], [0,1,0,4], [0,0,1,1]]

After scaling pivots to 1 and clearing above and below each pivot column, the left 3×3 block becomes the identity matrix and the rightmost column reveals x = 1, y = 4, z = 1.

Practical uses

  • Linear algebra homework verification
  • Finding matrix rank and basis pivot columns
  • Checking whether a matrix is invertible
  • Solving augmented linear systems by hand

Accuracy tips and common mistakes

  • Separate entries within a row using spaces or commas, and put each matrix row on a new line.
  • Tiny near-zero residuals (smaller than 10⁻¹⁰) are snapped to 0 to suppress floating-point artifacts.
  • If a row becomes all zeros except a nonzero last entry in an augmented matrix, the linear system has no solution.
Frequently Asked

RREF Calculator – Frequently Asked Questions

Common questions, edge-cases, and mathematical explanations.

What makes a matrix in Reduced Row Echelon Form (RREF) versus REF?

In RREF, every leading nonzero entry (pivot) equals 1, each pivot is the only nonzero entry in its entire column (zeros both above and below), pivots move strictly right down the rows, and any zero rows sit at the bottom.

Is the RREF of a matrix always unique?

Yes. Regardless of which valid sequence of elementary row operations you take, every matrix has exactly one unique RREF.

How do I read the matrix rank from the RREF output?

The rank equals the number of nonzero rows (equivalently, the number of pivot columns), which is shown directly in the headline result.

Analytics preferences

Optional Google Analytics cookies help us understand visits and improve our tools. Analytics is off until you allow it. Your tool inputs and files are never included in our analytics events. Read our privacy policy.

Analytics is off.