RREF Calculator — Solve Any Matrix Step by Step, Instantly

RREF & REF Matrix Calculator

Step-by-step row reduction · Real, Complex, Rational, and Modulo (Zp) fields
v1.3 · Mobile-first

Input

Paste rows separated by new lines, values by spaces, commas, tabs or semicolons. Use a+bi for complex (e.g. 2-3i) and a/b for fractions.
Quick examples:

Matrix

Tip: press Tab to move across cells. Up to 8×8.
Ready.

Solution

Enter a matrix and press Calculate to see the step-by-step row operations.
What is RREF vs REF?

REF (Row Echelon Form) has all zeros below each pivot. RREF (Reduced Row Echelon Form) additionally requires every pivot to be 1 and the only non-zero entry in its column. RREF is unique for a given matrix.

How do I enter complex numbers?

Switch the Field to . Then type values like 2+3i, -i, 4, 0.5-1.5i.

Modulo / prime field?

Switch the Field to ℤₚ and pick a prime p (e.g. 2, 3, 5, 7, 11). All arithmetic is performed mod p using modular inverses.

Augmented matrix?

Toggle Augmented column: On. The last column is treated as the constants vector b in Ax = b and is rendered with a vertical bar.

What is RREF?

The Reduced Row Echelon Form (RREF) is the simplest version of a matrix you can reach using elementary row operations. Every leading entry is a 1, and it is the only non-zero number in its column. For any matrix, the RREF is unique — that uniqueness is what makes it the standard answer in linear algebra.

Why it matters

RREF tells you the rank of a matrix, whether a system of equations has one solution, no solution, or infinitely many, and it is the cleanest way to read off a basis for the row space. It is also the form most textbooks, professors, and tools like Wolfram Alpha or a TI-84 use to verify answers.

Where you’ll see it

Solving Ax = b, finding inverses, computing null spaces, checking linear independence, and reducing augmented matrices in homework — RREF shows up everywhere in linear algebra.

How to use

1. Pick your matrix size

Use the Rows and Columns selectors at the top. The grid updates instantly. You can go up to 8×8.

2. Enter your values

Type into each cell. Tab moves across, Shift+Tab moves back. Numbers, fractions like 3/4, and complex values like 2-3i all work — just match the field you selected.

3. Choose RREF or REF

RREF gives the fully reduced form. REF stops at upper-triangular with leading entries. Both modes show every step.

4. Hit Calculate

The right panel prints the step-by-step row reduction, the final matrix, the rank, and a copy button so you can paste the result into your notes.

Working on a system Ax = b? Turn on Augmented column — the last column becomes b and a vertical bar appears in the output.

Row Operations

Gaussian elimination uses three elementary row operations. The calculator shows exactly which one was applied at each step.

Swap (Ri ↔ Rj)

Exchange two rows. Used to bring a non-zero pivot into position.

Scale (Ri → k·Ri)

Multiply a row by a non-zero scalar. Used to normalise a pivot to 1.

Add (Ri → Ri + k·Rj)

Add a multiple of one row to another. Used to clear entries above and below a pivot.

These three operations never change the solution set of the corresponding system. That’s the reason row reduction is a valid way to solve Ax = b.

REF vs. RREF

Both forms come out of Gaussian elimination, but they stop at different points.

Row Echelon Form (REF)

  • Each leading entry sits to the right of the one above it.
  • All entries below a pivot are zero.
  • Pivots can be any non-zero number.
  • Not unique — different paths give different REFs.

Reduced Row Echelon Form (RREF)

  • Every pivot is exactly 1.
  • Entries above and below each pivot are zero.
  • Unique for any matrix.

Use REF when you only need rank or a quick back-substitution. Use RREF when you need the canonical answer or want to read the solution directly off the augmented matrix.

Complex & Modular

Most online RREF calculators only handle real numbers. This one works over four fields, so you can match what your course actually uses.

Complex numbers (ℂ)

Switch the Field to ℂ and type entries like 2+3i, -i, or 0.5-1.5i. Every step — including pivot scaling and back-substitution — is computed with full complex arithmetic, so eigenvector and quantum-style problems work cleanly.

Rational numbers (ℚ)

Pick ℚ for exact fraction output. No floating-point drift, no rounded 0.3333. Useful when a professor wants exact answers.

Modulo a prime (ℤₚ)

Choose ℤₚ and set a prime such as 2, 3, 5, 7 or 11. The calculator uses modular inverses, so it’s safe for coding theory, cryptography exercises, and finite-field linear algebra.

Real numbers (ℝ)

The default. Decimal display is one click away if you prefer 0.25 over 1/4.

FAQs

Does this calculator show steps?

Yes. Every swap, scale, and add operation is printed with the matrix after the step. You can switch steps off if you only want the final RREF.

Can it solve a system of equations?

Yes. Turn on the augmented column and put the constants b in the last column. After RREF you can read the solution, see free variables, or detect an inconsistent system.

Is it accurate for large matrices?

Up to 8×8 you’ll get clean results. Use the rationals (ℚ) field for exact arithmetic on tricky inputs.

How is this different from a Desmos or TI-84 RREF?

Desmos and TI-84 give you only the final matrix. Here you get the row operations, fraction or decimal display, complex and modular fields, and an augmented column toggle — all on one page.

Can I find an inverse with it?

Yes. Build the block matrix [A | I], run RREF, and the right half is A⁻¹ when A is invertible.

Does it work on phones?

Yes. The matrix grid scrolls horizontally on small screens so cells never overlap your layout.

Is the result the same as Wolfram Alpha?

The RREF of any matrix is unique, so yes — for the same input over the same field, the final matrix matches Wolfram Alpha, MATLAB, NumPy, and any other linear algebra tool.