Linear algebra, made clearer
RREF calculator. Every step, explained.
Turn your matrix into reduced row echelon form. Enter your values and follow every row operation.
Calculated in your browser
E-mail: advertise@primescopemedia.io
02RREF result
Example resultReduced row echelon form
| 1 | 0 | 1 |
| 0 | 1 | −1 |
| 0 | 0 | 0 |
Null space, determinant and inverse
Null space basis
- v1 = (−1, 1, 1)
Every solution of Ax = 0 is a combination of these vectors, one for each non-pivot column.
Inverse
This matrix has no inverse: its RREF is not the identity matrix.
- Free, no account
- Exact fractions
- Every operation explained
- Up to 10×11
- Your matrix stays in this browser
The working, step by step.
5 operations · exact values01R2 ← R2 + (−2) R1
Clear the entry below the pivot: add −2 × row 1 to row 2 so column 1 becomes 0 there.
Matrix after step 1 1 2 −1 0 −3 3 3 3 0 02R3 ← R3 + (−3) R1
Clear the entry below the pivot: add −3 × row 1 to row 3 so column 1 becomes 0 there.
Matrix after step 2 1 2 −1 0 −3 3 0 −3 3 03R2 ← (−1/3) R2
Multiply row 2 by −1/3 so its pivot in column 2 becomes 1.
Matrix after step 3 1 2 −1 0 1 −1 0 −3 3 04R1 ← R1 + (−2) R2
Clear the entry above the pivot: add −2 × row 2 to row 1 so column 2 becomes 0 there. Clearing above pivots is what turns REF into RREF.
Matrix after step 4 1 0 1 0 1 −1 0 −3 3 05R3 ← R3 + (3) R2
Clear the entry below the pivot: add 3 × row 2 to row 3 so column 2 becomes 0 there.
Matrix after step 5 1 0 1 0 1 −1 0 0 0
Shaded row: the row that changed. Outlined entry: the pivot used.
Three quick steps
How to use this RREF matrix calculator.
Enter, paste or pick a matrix
Choose up to 10 rows and 11 columns, from a 3×3 matrix to a 10×10 system. Type integers, decimals such as 0.25, or fractions such as −3/4, paste rows from a spreadsheet, or load one of the examples. Every cell needs a value, so a blank cell is flagged instead of being read as zero.
Pick RREF or REF
Reduced row echelon form clears above and below every pivot. Row echelon form stops after clearing below; the REF vs. RREF guide shows the difference on one matrix. Changing the form clears the previous result so you always calculate the form you selected.
Read the result and every step
The online RREF calculator reports rank, pivot columns and non-pivot columns, then lists each row operation with its exact intermediate matrix and a sentence explaining why it was chosen, the same method as the worked example. Copy the exact matrix, copy the whole working as LaTeX, or copy a link that reopens the same matrix.
The definition
What is reduced row echelon form?
A matrix is in reduced row echelon form (RREF) when it meets four rules:
- Any rows made entirely of zeros are at the bottom.
- The first nonzero entry of each other row, called its pivot or leading entry, is 1.
- Each pivot is to the right of the pivot in the row above it.
- Every other entry in a pivot's column is 0.
Rules 1 and 3 define row echelon form (REF). Rules 2 and 4 are the extra conditions that make the reduced form unique: however you choose your row operations, a matrix has exactly one RREF. The example above shows it. Its RREF has pivots in columns 1 and 2 and a zero row at the bottom, so its rank is 2. The REF vs. RREF guide compares the two forms side by side.
Why it is useful
What the RREF of a matrix tells you.
Solutions of a linear system
Row-reduce the augmented matrix [A | b] and read the answer: one solution, infinitely many, or none. The augmented matrix calculator does this and writes free variables as parameters.
Rank and linear independence
The rank is the number of pivots. The columns of a matrix are linearly independent exactly when every column has a pivot. In the example, column 3 has no pivot, so the three columns are dependent: column 3 equals column 1 minus column 2.
Null space
Each non-pivot column gives one basis vector of the null space, the solutions of Ax = 0. For the example that vector is (−1, 1, 1). The calculator lists these vectors under “Null space, determinant and inverse”.
Inverse and determinant
A square matrix is invertible exactly when its RREF is the identity matrix. Reducing [A | I] then turns the right half into the inverse. The determinant follows from the same steps: each row swap flips its sign, and each row scaling divides it by the scale factor. The example's RREF is not the identity, so its determinant is 0 and it has no inverse; try the “3×3 invertible” example to see an inverse.
How it calculates
Gauss-Jordan elimination with exact fractions.
The calculator uses Gauss-Jordan elimination. It works through the columns from left to right. In each one it swaps a nonzero entry into the pivot position if needed, scales that row so the pivot is 1, and clears every other entry in the column, both below and above the pivot. Gaussian elimination stops after clearing below the pivots, which gives REF; clearing above as well is what gives RREF.
Every value is stored as an exact fraction, so 1/3 stays 1/3 through every step. Calculators and programs that work in decimals round at each operation, and the small errors can add up: an entry that should be 0 can come out as a tiny number such as 1E−13, and it is not always clear whether a value is really 0. Exact arithmetic avoids that, which matters most for rank, pivots and whether a system has a solution. Try the 4×4 Hilbert matrix example, a classic case where decimal rounding causes trouble. The exact answer is still the identity.
The why behind the answer
Make the next step make sense.
RREF calculator questions.
What does RREF mean?
RREF stands for reduced row echelon form. Each leading nonzero entry is 1, and it is the only nonzero entry in its column. Leading entries move right as you go down, and zero rows come last. Every matrix has exactly one RREF.
What does RREF do on a calculator?
It applies elementary row operations until the matrix reaches reduced row echelon form. The result shows the rank, the pivot columns and, for an augmented matrix, the solutions of the system. This RREF calculator also lists each operation. For the graphing-calculator command, see how to find RREF on a TI-84 or TI-83 Plus.
Can I use decimals and fractions?
Yes. Enter integers, finite decimals such as 1.25, or fractions such as 2/3, with up to 12 digits in each number. Values are converted to exact fractions before any row operation, so no rounding builds up. The Display menu can show the result as decimals rounded to 8 significant digits; the copied matrix stays exact.
What matrix sizes does it support?
Any size from 1×1 to 10 rows by 11 columns, including the common 2×3, 3×3, 3×4, 4×5 and 10×10 cases. Wide results scroll inside their own panel.
Does it explain why each row operation is done?
Yes. Every step has a sentence saying what it achieves: swapping in a nonzero pivot, scaling a pivot to 1, or clearing an entry below or above a pivot. The row that changed is shaded and the pivot used is outlined in the step matrix.
Can it find the inverse, determinant or null space?
Yes. Under the result, open “Null space, determinant and inverse”. It lists a basis of the null space, says whether the columns are linearly independent, and for a square matrix gives the exact determinant and, when it exists, the exact inverse.
Can I share a matrix or copy the working into my notes?
“Copy share link” creates a link that reopens the same matrix and result. The matrix is stored after the # in the link, a part that browsers do not send to any server, so it stays private unless you share the link. “Copy LaTeX with steps” copies the starting matrix, every row operation and the result for a LaTeX document or an app that renders LaTeX.
How do I solve a system of equations?
Use the augmented matrix RREF calculator. It treats the last column as the constants, compares the rank of A with the rank of [A | b], and tells you whether the system has one solution, infinitely many or none.
Can I enter variables or complex numbers?
No. This calculator accepts real rational values: integers, finite decimals and fractions. Symbolic coefficients, imaginary numbers and arithmetic over GF(2) are not supported.
Why is my result not the identity matrix?
A square matrix reduces to the identity only when it has full rank. Dependent rows leave zero rows, and rectangular matrices can have non-pivot columns.
Can I reverse RREF to get the original matrix?
Not from the reduced matrix alone, because different matrices can share the same RREF. Keep your original entries and the list of row operations if you need to retrace the calculation.