Matrix calculator RREF: solve a 3×3 augmented matrix with elementary row operations
The workspace opens with the classic textbook system:
Written as a 3×4 augmented matrix, the coefficients sit on the left and the constants form the last column. Gauss-Jordan elimination then uses only three legal moves: swap two rows, multiply a row by a nonzero number, and add a multiple of one row to another. The steps the tool shows go like this:
- Scale by to make the first pivot 1.
- Clear column 1: and .
- Scale the second row to get a pivot of 1, then clear the entries above and below it.
- Repeat for the third column.
The final RREF is
so . Always substitute back: ✓, ✓, ✓.
Reading the reduced row echelon form: three possible outcomes
The shape of the RREF tells you how many solutions a system has before you do any more arithmetic.
| What the RREF looks like | Meaning | Example last rows |
|---|---|---|
| Identity on the left, numbers on the right | Exactly one solution | |
| A row of zeros ending in a nonzero number | No solution (inconsistent) | means |
| A full row of zeros and fewer pivots than variables | Infinitely many solutions | with a free variable |
In the infinite case, write the pivot variables in terms of the free one. If the RREF is , then , , for any real .
When is a matrix in reduced row echelon form? Rules for row reduction
A matrix is in reduced row echelon form when all four of these hold:
- The first non-zero entry of every non-zero row is a 1, called the pivot.
- Each pivot sits strictly to the right of the pivot in the row above, so the pivot positions move down and to the right like a staircase.
- Every other entry in the pivot column is 0: the pivot is the only non-zero entry in its column.
- Rows of all zeros are at the bottom.
Row reduction reaches that form using only the three elementary row operations, applied in sequences of row operations column by column: pick a pivot, scale the pivot row so the pivot is 1, then add multiples of that row to clear every entry above and below it. The entries to the right of the pivot are whatever the arithmetic leaves. This is the Gauss-Jordan method, and the same steps make the tool a Gauss-Jordan elimination calculator and an echelon form calculator in one.
Once you have the RREF of a matrix you can read off three things. The number of pivot columns is the rank of a matrix. Any variable whose column has no pivot is free, which is how you identify free variables when a system has infinitely many solutions. And a row [0 0 0 | c] with c ≠ 0 means the system is inconsistent. That is why RREF is the standard tool for solving systems of linear equations with augmented matrices, for finding matrix rank and, by reducing [A | I], for finding matrix inverses.
Matrix input works by rows and columns: set the size, then type each entry, including the constants column for an augmented matrix. The calculator uses floating-point arithmetic and displays exact fractions where the result has a small denominator; it does not perform exact rational arithmetic on huge fractions, so check entries that look like 1e−15 against the tolerance note below.
Determinant, inverse and rank of a matrix
For a square coefficient matrix, three numbers summarise the system. Take
- Determinant: cofactor expansion along the first row gives .
- Inverse: because , .
- Rank: 3, the number of pivots in its RREF.
With , , which matches row-reducing . The inverse route is handy when the same coefficients appear with several right-hand sides; RREF is more general because it also handles non-square and singular systems.
Self-check: det(A) = 7, and the system solves to x₁ = 1, x₂ = 2, x₃ = 3.
Solve the system 3x₁ + 2x₂ = 16 and x₁ − x₂ = 2. What is x₁?
Enter the 2×3 augmented matrix [3, 2, 16; 1, −1, 2], then 2ND x⁻¹ (MATRIX) → MATH → B: rref(. x₁ is the top entry of the last column.
Common pitfalls with matrix calculators
Singular matrices (det = 0)
has determinant : the second row is twice the first. Asking a handheld for its inverse returns ERR: SINGULAR MATRIX. Row-reduce the augmented matrix instead to see whether you have no solution or infinitely many.
Self-check: det = 0 and rank 1, so the matrix has no inverse.
Rounding that hides a zero
Decimal inputs such as 0.1 cannot be stored exactly in binary, so an entry that should be 0 can appear as . The engine treats values below about as zero and shows exact fractions with small denominators, which keeps the RREF readable. See the methodology page for the tolerance details.
Dimension mismatch
Matrix multiplication needs the number of columns of to equal the number of rows of ; otherwise a handheld shows ERR: DIM MISMATCH. A 3×4 augmented matrix has no determinant at all — only square matrices do.
Forgetting the constants column
Row-reducing only the 3×3 coefficient matrix gives the identity, which tells you the solution is unique but not what it is. Include the constants as a fourth column.
Keystroke reference: rref on a TI-84 style handheld
| Step | TI-84 style key sequence | GraphingCalc84 |
|---|---|---|
| Open the matrix editor | 2ND x⁻¹ → EDIT → 1: [A] | Matrix grid in the workspace |
| Set size 3×4 | Type 3 ENTER 4 ENTER | Rows / Columns selectors |
| Reduce | 2ND x⁻¹ → MATH → B: rref( → [A] | rref( output, updated live |
| Show fractions | MATH → 1: ►Frac | Exact fractions shown automatically |
| Determinant | MATRIX → MATH → 1: det( | det readout for square matrices |
| Inverse | [A] x⁻¹ | Inverse readout when det ≠ 0 |
Where RREF fits in a course
Algebra 2 classes use RREF to solve three-variable systems; linear algebra uses it to find rank, null spaces and inverses. For two-variable systems, graphing the lines is often more insightful — the system of equations grapher shows the intersection point you would get from a 2×3 RREF. The free OpenStax algebra and precalculus texts cover Gaussian elimination with worked exercises if you want more practice problems to check here.