Math Last updated: July 2026

Row Echelon Form Calculator

Use our free **Row Echelon Form Calculator** to **reduce any matrix** to **row echelon form (REF)** or **reduced row echelon form (RREF)** instantly. This **Gaussian elimination calculator** helps you **solve linear systems** with step-by-step results. Whether you need to **perform Gauss-Jordan elimination**, find **matrix rank**, or **determine linear independence**, this tool provides accurate results. 100% free — no signup required!

How to Use the Row Echelon Form Calculator

Interactive calculator available after JavaScript loads.

Loading calculator...

Written by Calculator Archive Team

Math & Finance Experts — Verified Formulas, Peer-Reviewed Sources, Expert Analysis

Looking for a deeper explanation?

Read our comprehensive, peer-reviewed educational article in our Blog to learn the underlying math, formulas, and step-by-step examples.

Read Blog Guide ›

Mathematical Formula & Logic

REF: (1) Leading entries are 1, (2) Each leading 1 is to the right of the one above, (3) Zero rows are at the bottom. RREF adds: (4) Each leading 1 is the only nonzero in its column.
Variable Glossary
REF Row Echelon Form — the staircase form after elimination
RREF Reduced Row Echelon Form — the unique canonical form
pivot The first nonzero entry in a row (which is 1 in REF/RREF)
leading 1 The first 1 in a row, used as a pivot

Step-by-Step Worked Calculation

Scenario: Example: RREF of a 3×3 Matrix

Reduce A = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] to RREF.

1

Step 1: Start with A = [[1, 2, 3], [4, 5, 6], [7, 8, 9]].

2

Step 2: R2 — R2 — 4R1: [[1, 2, 3], [0, —3, —6], [7, 8, 9]].

3

Step 3: R3 — R3 — 7R1: [[1, 2, 3], [0, —3, —6], [0, —6, —12]].

4

Step 4: R2 — (—1/3)R2: [[1, 2, 3], [0, 1, 2], [0, —6, —12]].

5

Step 5: R3 — R3 + 6R2: [[1, 2, 3], [0, 1, 2], [0, 0, 0]].

6

Step 6: R1 — R1 — 2R2: [[1, 0, —1], [0, 1, 2], [0, 0, 0]].

7

Step 7: RREF = [[1, 0, —1], [0, 1, 2], [0, 0, 0]].

How to Use the Row Echelon Form Calculator

  1. 1. Step 1: Select the matrix dimensions (rows and columns) in the Row Echelon Form Calculator.
  2. 2. Step 2: Enter the values for each element in the matrix.
  3. 3. Step 3: Choose between REF (row echelon form) and RREF (reduced row echelon form).
  4. 4. Step 4: Click "Calculate" to perform Gaussian elimination on your matrix.
  5. 5. Step 5: Review the row echelon form result and verify each leading entry.
  6. 6. Step 6: Check the step-by-step row operations showing each pivot and elimination step.
  7. 7. Step 7: Use the final RREF to solve your linear system by reading off the solution directly.

What Is a Row Echelon Form Calculator?

Row echelon form (REF) is a staircase-like matrix form achieved through Gaussian elimination, where each leading entry is 1 and sits to the right of the leading entry in the row above. Reduced row echelon form (RREF) additionally requires each leading 1 to be the only nonzero entry in its column.

Why This Calculation Matters

Row echelon form is fundamental for solving systems of linear equations, computing matrix rank, determining linear independence, and finding null spaces. It is used in engineering, physics, computer science, and data analysis.

Common Mistakes to Avoid

  • Confusing REF with RREF — REF only requires leading 1s to step right, while RREF requires zeros above and below each leading 1
  • Forgetting that row operations must use nonzero scalars — multiplying a row by zero destroys information
  • Not verifying the result by checking that each leading 1 is the only nonzero in its column (for RREF)
  • Skipping partial pivoting, which can lead to numerical instability with floating-point arithmetic

Frequently Asked Questions

Complete indexable directory of answers (13 questions)

What is row echelon form?

Row echelon form (REF) is a matrix form where: (1) all nonzero rows are above zero rows, (2) the leading entry of each row is to the right of the leading entry in the row above, and (3) all entries below a leading entry are zero. It is obtained by Gaussian elimination.

What is reduced row echelon form?

Reduced row echelon form (RREF) is a stricter form of REF where: (1) each leading entry is 1, (2) each leading 1 is the only nonzero entry in its column. RREF is unique for each matrix, while REF is not.

What is Gaussian elimination?

Gaussian elimination is an algorithm that uses elementary row operations to reduce a matrix to row echelon form. The three row operations are: (1) swap two rows, (2) multiply a row by a nonzero scalar, (3) add a multiple of one row to another.

What is Gauss-Jordan elimination?

Gauss-Jordan elimination extends Gaussian elimination to produce reduced row echelon form. After reaching REF, it continues by using each leading 1 to eliminate all other entries in its column.

What is the difference between REF and RREF?

REF has leading 1s that may have nonzero entries above them. RREF has each leading 1 as the only nonzero entry in its column. RREF is unique; REF is not (different elimination orders give different REFs).

How do I use this row echelon form calculator?

Enter your matrix dimensions, fill in the elements, choose REF or RREF, and click Calculate. The calculator performs all elementary row operations step by step, showing each pivot operation and the final reduced form.

Is row echelon form unique?

REF is not unique — different row operation sequences can produce different REFs. However, RREF is unique for each matrix. Every matrix has exactly one RREF regardless of the elimination path.

Can REF be used for non-square matrices?

Yes, Gaussian elimination works for any m × n matrix. The same row operations are applied, and the result is an m × n matrix in REF or RREF.

What is the computational complexity of Gaussian elimination?

Gaussian elimination requires O(m × n × min(m, n)) operations for an m × n matrix. For an n × n matrix, this is O(n³), making it one of the standard O(n³) algorithms.

How does REF relate to matrix rank?

The rank of a matrix equals the number of nonzero rows (or pivots) in its REF or RREF. This is one of the most practical ways to compute matrix rank.

What mathematical formula does the Row Echelon Form Calculator use?

The Row Echelon Form Calculator uses standard mathematical formulas validated against authoritative references. The specific formula is displayed in the calculator interface with a detailed explanation of each variable.

How can I verify the Row Echelon Form Calculator results manually?

Each calculator includes a step-by-step worked example showing exactly how the formula is applied. You can follow these steps with pen and paper to verify any result.

What types of inputs does the Row Echelon Form Calculator accept?

The Row Echelon Form Calculator accepts numeric inputs including integers and decimals. Invalid inputs (letters, special characters) are rejected with clear error messages.