RREF Calculator
Reduce a matrix to reduced row echelon form with exact rationals and print the pivot columns and rank.
RREF Calculator
Reduce a matrix to reduced row echelon form with exact rationals and print the pivot columns and rank.
How this page computes
The page applies exact-fraction Gauss-Jordan elimination and prints the reduced matrix, its pivot columns and its rank. Row swaps are part of the algorithm, so no pivoting assumption is hidden.
The calculation runs entirely in this browser tab; nothing is uploaded.
The page reduces a matrix to reduced row echelon form with exact fractions and prints the pivot columns and rank. Worked example: [[1, 2, 3], [4, 5, 6]] reduces to [[1, 0, -1], [0, 1, 2]] with rank 2.
Every leading entry is 1, every pivot column has zeros elsewhere, and the rows are ordered by pivot position. The page prints the fractions it used, so a hand check can follow the same values.
How to use the RREF Calculator
Enter one matrix row per line, with entries separated by spaces or commas, then press Run. The output is the reduced matrix followed by the pivot columns and rank.
A zero row stays at the bottom and a zero column simply has no pivot. The page does not drop either, because both are part of the reduced form.
The reduced row echelon conditions
A matrix is in reduced row echelon form when each non-zero row has a leading 1, that 1 is the only non-zero entry in its column, and every leading 1 is to the right of the one above it. Zero rows sit at the bottom.
The page reaches that form by exact Gauss-Jordan elimination. The pivot columns are the columns that received a leading 1, and their count is the rank.
What to Expect
Best for
- Reducing a matrix for a linear algebra exercise
- Reading the rank and pivot columns
- Checking a hand row-reduction
Not ideal for
- A determinant or inverse, which have their own pages
- A symbolic matrix with parameters
- A matrix larger than the display can show
What this tool keeps
- The exact reduced matrix, pivot columns and rank
What may need cleanup
- Nothing: the fractions in the reduced matrix are exact
Common errors
- Rows of unequal length are refused
- A non-numeric entry is refused by name
Example use cases
- Reduce [[1, 2, 3], [4, 5, 6]]
- Reduce a matrix with a zero row
Sample input
1 2 3 4 5 6
Sample output
reduced row echelon form (exact rationals): [1, 0, -1] [0, 1, 2] pivot columns: 1, 2 rank = 2
Who this is for
- Students learning row reduction
- Readers checking rank by RREF
Frequently asked questions
How is RREF different from row echelon form?
RREF also requires each pivot to be the only non-zero entry in its column and every pivot to be 1. The page always produces that stronger form, and names it in the output.
Why print the pivot columns?
They identify the independent columns and therefore the rank. A reader can check a rank claim against the pivots instead of trusting a single number.
Can a matrix have no pivot in a column?
Yes. A zero column, or a column that is a combination of earlier columns, receives no pivot. The reduction proceeds to the next column, and the page simply reports the pivots it found.
Is anything uploaded?
Nothing is uploaded. The exact elimination runs in this browser tab with BigInt fractions, and reloading the page discards the matrix and the result.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.