RREF Calculator
Reduce a matrix to RREF with exact fractions, step-by-step Gauss-Jordan row operations, pivot columns, rank and augmented-system interpretation.
Reduce a matrix to reduced row echelon form with exact fractions, row-operation steps, pivots, rank and optional augmented-system interpretation.
Reduced row echelon form
RREF result
Gauss-Jordan row operations
This RREF calculator converts a matrix to reduced row echelon form using Gauss-Jordan elimination. Unlike a basic decimal-only RREF solver, it keeps exact rational arithmetic for integers, terminating decimals and fractions, then shows the row operations, pivot columns and matrix rank.
How to use the RREF calculator
- Choose the number of rows and columns.
- Select Matrix only or Augmented system.
- Enter integers, decimals or fractions such as 3/4.
- Click Calculate RREF.
- Read the reduced matrix, pivot columns, rank and each Gauss-Jordan row operation.
When Augmented system is selected, the last column is treated as the constants column of a linear system. The calculator then reports whether the system is consistent and whether it has a unique solution or free variables.
What is reduced row echelon form?
Reduced row echelon form is a canonical simplified form produced by elementary row operations. A matrix has one unique RREF even though different valid sequences of row operations can reach it.
The allowed elementary row operations are:
- swap two rows;
- multiply a row by a nonzero constant;
- add a multiple of one row to another row.
These operations preserve the solution set of an augmented system.
How the RREF solver uses Gauss-Jordan elimination
The algorithm works from left to right. It finds a nonzero pivot, swaps rows if necessary, scales the pivot row so the pivot becomes 1, and then eliminates every other value above and below that pivot. The process repeats in later columns until no more pivots are available.
That differs from ordinary Gaussian elimination, which typically stops at row echelon form (REF) with zeros below the pivots. Gauss-Jordan elimination continues upward as well, producing zeros above each pivot and therefore RREF.
RREF vs REF
| Feature | REF | RREF |
|---|---|---|
| Zeros below pivots | Yes | Yes |
| Pivot must equal 1 | Not required | Yes |
| Zeros above pivots | Not required | Yes |
| Unique form for a matrix | No | Yes |
Worked RREF example
Consider the augmented matrix for the system 2x + y − z = 8, −3x − y + 2z = −11, and −2x + y + 2z = −3:
[[2, 1, −1, 8], [−3, −1, 2, −11], [−2, 1, 2, −3]]
Gauss-Jordan elimination reduces it to the identity matrix with constants [2, 3, −1], so the unique solution is x = 2, y = 3 and z = −1. Use the built-in unique-solution example to see each row operation.
Pivot columns, rank and free variables
A pivot column contains a leading 1 in the RREF. The number of pivots is the matrix rank. For a coefficient matrix with n variables, non-pivot variable columns correspond to free variables. In an augmented system, free variables mean infinitely many solutions as long as the system remains consistent.
A row such as [0 0 0 | 1] is inconsistent because it represents 0 = 1. The calculator detects that pattern and reports no solution.
Why exact fractions matter
Many online row-reduction tools calculate with floating-point decimals. That is convenient, but repeated division can create values such as 0.9999999998 where the exact result is 1. This calculator stores values as rational fractions during elimination, so entries such as 1/3 stay exact through every row operation.
Frequently asked questions
What does RREF stand for?
RREF stands for reduced row echelon form.
Is RREF unique?
Yes. Every matrix has exactly one reduced row echelon form, even though there can be many valid row-operation paths to reach it.
How do I find matrix rank from RREF?
Count the pivot positions, or equivalently the nonzero rows in the RREF. That count is the rank.
Can the RREF calculator solve systems of equations?
Yes. Select Augmented system and place the constants in the last column. The calculator identifies pivots and checks for a unique solution, free variables or an inconsistent row.
Can I use fractions?
Yes. Enter values such as 1/2, -3/4 or 2.5. The calculator converts supported decimal inputs to exact rational values before elimination.
What is the difference between Gaussian and Gauss-Jordan elimination?
Gaussian elimination usually stops at REF and uses back-substitution. Gauss-Jordan elimination continues until each pivot column is cleared both above and below the pivot, giving RREF directly.
Methodology and sources
The implementation follows standard Gauss-Jordan elimination and the definition of reduced row echelon form used in linear-algebra references. MathWorks documents rref(A) as reduced row echelon form using Gauss-Jordan elimination with partial pivoting. Current competitor research was used to align the tool with expectations such as exact fractions, step-by-step operations, pivot columns, rank and augmented-system interpretation.