RREF calculator
Enter one row per line. Every row operation is listed underneath, because that is what the marks are for.
Free · no signup Runs in your browser
One row per line. Separate entries with spaces or commas. For a system of equations, include the constants as the last column.
Row operations used
What is reduced row echelon form?
A matrix is in reduced row echelon form when every leading entry is 1, each leading 1 sits to the right of the one above it, every entry above and below a leading 1 is zero, and any all-zero rows sit at the bottom. Every matrix has exactly one reduced row echelon form, which is why it can be used to compare matrices.
The steps are the point
Most row-reduction calculators hand back a final matrix. In a linear algebra course the final matrix is worth almost nothing on its own — the marks are attached to the sequence of row operations that got you there.
This one lists every swap, every scaling and every subtraction in order, so you can check your own working line by line rather than only discovering at the end that you diverged somewhere in the middle.
It also uses partial pivoting, choosing the largest available entry as each pivot. That is not required by the definition, but it keeps the arithmetic numerically stable and mirrors what any real implementation does.
The three legal row operations
Every step of Gauss-Jordan elimination is one of these, and none changes the solution set.
1. swap two rows Rᵢ ↔ Rⱼ2. multiply a row by a non-zero Rᵢ → k·Rᵢ, k ≠ 03. add a multiple of one row Rᵢ → Rᵢ − k·Rⱼto anotherreduced row echelon form requires:every leading entry is 1each leading 1 is right of the one aboveevery other entry in a pivot column is 0zero rows sit at the bottom
The distinction between row echelon form and reduced row echelon form is the third condition. Plain echelon form only clears entries below each pivot; the reduced form clears above them too, which is what makes the answer unique.
That uniqueness matters. Two matrices are row equivalent if and only if they share the same reduced row echelon form, so it acts as a canonical fingerprint.
Worked example: a 2×3 augmented system
Solving 2x + 4y = 10 and 3x + 7y = 16, written as the augmented matrix [2 4 10; 3 7 16].
- R1 ÷ 2 to make the leading entry 1[1 2 5; 3 7 16]
- R2 − 3·R1 to clear below the pivot[1 2 5; 0 1 1]
- R1 − 2·R2 to clear above the pivot[1 0 3; 0 1 1]
- Read the solution off the rowsx = 3, y = 1
x = 3, y = 1 — with rank 2 and no free variables, the solution is unique.
Once a system is in reduced form the answer can be read directly off the rows with no back-substitution, which is the practical advantage over plain echelon form.
What the rank tells you
- Rank equals the number of pivots, which is the number of independent rows
- For an augmented system, free variables = columns − 1 − rank
- Rank equal to the number of unknowns means exactly one solution
- Rank below the number of unknowns means infinitely many solutions
- A row reading 0 0 … 0 | non-zero means the system has no solution at all
That last case is worth recognising quickly. It says zero equals something non-zero, which is a contradiction rather than a hard problem.
Assumptions and limits
- Every row must have the same number of entries
- Entries are read as decimals; fractions are displayed where one exists cleanly
- Arithmetic is floating point, so values near zero are treated as zero below a tolerance
- Very large or badly conditioned matrices can accumulate rounding error
Common questions
What is the difference between REF and RREF?
Row echelon form only requires zeros below each leading entry. Reduced row echelon form also requires zeros above them and requires every leading entry to be exactly 1. A matrix has many possible echelon forms but only one reduced echelon form.
What does rank mean?
The number of pivot positions, which is the number of linearly independent rows or columns. It tells you how much genuine information the matrix carries — a rank below the number of rows means at least one row is a combination of the others.
How do I know if a system has no solution?
Look for a row where every coefficient is zero but the augmented entry is not. That row states that zero equals a non-zero number, which is impossible, so the system is inconsistent.
Is Gaussian elimination the same as Gauss-Jordan?
Gaussian elimination clears entries below each pivot and stops, leaving you to back-substitute. Gauss-Jordan continues and clears above the pivots too, producing the reduced form where the answer can be read directly. This calculator performs Gauss-Jordan.
Why does the calculator swap rows?
To use the largest available entry as each pivot, which is called partial pivoting. It is not required by the definition, but dividing by a very small pivot magnifies rounding error, so every practical implementation does it.
Where these numbers come from
- MIT OpenCourseWare — Linear Algebra, elimination with matrices Standard treatment of Gaussian and Gauss-Jordan elimination.
Last verified 2026-08-01 The method on this page is checked against the sources above at least once a year. Spotted something out of date? Tell us and we will fix it.
Related calculators
Polynomial calculator
Add, multiply and divide polynomials, or find every root including complex ones.
Open calculatorComplex numbers
Add, subtract, multiply and divide complex numbers, with polar form and conjugate.
Open calculatorSeries calculator
Arithmetic and geometric series — nth term, partial sum and sum to infinity.
Open calculatorMoment of inertia
Second moment of area for beams and sections, with section modulus and radius of gyration.
Open calculatorPartial derivatives
Differentiate a multivariable function with respect to one variable, symbolically.
Open calculatorReverse percentage
Find the original number before a percentage increase or decrease was applied.
Open calculator🧮 Maths and science calculators
Homework tools that explain the method rather than just handing over an answer.
See all 30 calculators in this section