RREF Calculator
Applies row operations to reach reduced row echelon form and reports the rank and pivot columns.
INPUT
Integers, fractions (1/3) and decimals (0.25) are accepted. Empty cells count as 0. Paste a block of numbers from a spreadsheet or textbook into the first cell to fill the whole matrix.
RESULT
LaTeX is the math code you can paste into Overleaf, Notion equation blocks or Word's equation editor.
Steps
Reduced row echelon form (RREF)
The first nonzero entry of each row (the pivot) is 1, every other entry in a pivot column is 0, and zero rows sit at the bottom.
Every matrix has exactly one RREF, which makes it the standard tool for finding rank and solving linear systems.
Full explanation with examples: Rank and Reduced Row Echelon Form (RREF) Explained
Exam tipThe number of pivots is the rank of the matrix.
How to do it by hand
- Start at the top left. Find a nonzero entry in column 1, move it to the top (swap rows if needed) and divide its row by it so the pivot is 1.
- Subtract multiples of the pivot row from every other row so the rest of the pivot column is 0, above and below.
- Move to the next column and repeat using only the rows that do not yet have a pivot. If the column is all zeros there, skip it.
- Stop when no more pivots can be made. The number of pivots is the rank, and the columns without a pivot are the free variables.
Let's reduce A = [1 2 −1; 2 4 1].
R₂ − 2R₁ → [1 2 −1; 0 0 3]. Column 2 has a zero below the pivot, so no pivot there; move on to column 3.
R₂ ÷ 3 → [1 2 −1; 0 0 1], then R₁ + R₂ → [1 2 0; 0 0 1]
Pivots in columns 1 and 3, rank 2, column 2 free. The RREF is unique, so everyone gets this same form.
Where is it used?
- The heart of solving linear systems: reduce the augmented matrix and read the solution off.
- Rank, a basis for the null space, and whether a set of column vectors is independent all come from one RREF.
- Gauss-Jordan inversion is just reducing [A | I] to RREF.
Common mistakes
- Stopping once the entries below the pivots are zero. That is row echelon form (REF); reduced form also needs zeros above every pivot and pivots equal to 1.
- Changing the reference row during an operation. In R₂ ← R₂ − 2R₁ only R₂ changes.
- Using operations that are not row operations. Multiplying rows together or swapping columns is not allowed. The only three are: swap two rows, scale a row by a nonzero number, add a multiple of one row to another.
How to use
- Set the matrix size with the row and column buttons. Up to 6×6 is supported.
- Type numbers into the cells and the result updates instantly. Enter fractions as
1/3and negatives as-2. - Enter moves to the next cell; the ← → ↑ ↓ arrow keys move between cells.
- Open ‘Steps’ to see the full working. ‘Copy LaTeX’ copies the result as math code you can paste into Overleaf, a Notion equation block or Word's equation editor.
FAQ
- What is the difference between REF and RREF?
- REF only needs zeros below each pivot. RREF also needs pivots equal to 1 and zeros above them. A matrix has many REFs but only one RREF.
- My textbook uses a different order of row operations.
- The order can differ from person to person, but the final RREF is always the same.
Related guides
- Rank and Reduced Row Echelon Form (RREF) ExplainedReduce a matrix to RREF and read off pivot columns, rank and free variables.
- How to Find a Basis for the Null Space and Column Space (RREF Example)How to read bases for the null space and column space off the RREF, with a worked example.
- How to Test Vectors for Linear Independence (Using Rank)Test linear independence by putting the vectors in columns and finding the rank, with worked examples.