Singapore ยท Maths & Statistics

RREF Calculator

For a system of equations, include the constants as the last column to make an augmented matrix.
Reduced row echelon form—

Paste a matrix, one row per line, values separated by spaces or commas. The calculator reduces it and lists every row operation in order, so you can reproduce the result by hand.

How do you find the reduced row echelon form of a matrix?

Use Gauss-Jordan elimination. Find the leftmost column with a non-zero entry, swap that row to the top of the working block, divide it so the pivot becomes 1, then subtract multiples of it from every other row to make the rest of that column zero. Move down and right, and repeat until no columns remain.

How to use this calculator

  1. Enter one row per lineSeparate values with spaces, tabs or commas. Negative numbers and decimals are fine. Every row must have the same number of entries.
  2. Include the constants for a system of equationsTo solve a linear system, add the right-hand side as a final column. That is an augmented matrix, and reducing it reads off the solution directly.
  3. Read the row operationsEvery swap, scaling and elimination is listed in order underneath. That list is what you would write out in an exam answer.
  4. Check the rank and free columnsThe breakdown gives the rank, which pivot columns were used, and which columns are free โ€” the information that tells you whether a system has one solution, none, or infinitely many.

How the calculation works

Row echelon form and reduced row echelon form differ in how far the elimination is taken. Ordinary row echelon form clears everything below each pivot, leaving an upper triangular shape. Reduced row echelon form goes further and clears above the pivots too, so every pivot column ends up with a single 1 and zeros everywhere else.

The algorithm works one column at a time. Find the leftmost column that still contains a non-zero entry in the rows you have not finished with. If the top entry of that block is zero, swap in a row where it is not โ€” this is partial pivoting, and it is what keeps the arithmetic stable. Divide the pivot row so the leading entry is exactly 1. Then subtract the appropriate multiple of that row from every other row, above and below, so the rest of the column becomes zero.

Move one row down and one column right, and repeat. The process ends when you run out of rows or columns.

The result is unique. Whatever order you do the operations in, a given matrix has exactly one reduced row echelon form โ€” which is why it is useful as a canonical form and why it can be used to test whether two matrices are row equivalent.

FormulaGauss-Jordan: for each pivot, scale the row to 1 then clear the entire column

Worked example: solving a system

Take the system x + 2y โˆ’ z = โˆ’4, 2x + 3y โˆ’ z = โˆ’11, โˆ’2x โˆ’ 3z = 22. As an augmented matrix that is the default loaded above.

The first pivot is already 1 in position one. Subtract 2 ร— R1 from R2 and add 2 ร— R1 to R3 to clear the first column. That leaves R2 as 0 โˆ’1 1 โˆ’3 and R3 as 0 4 โˆ’5 14.

Multiply R2 by โˆ’1 to make its pivot 1, then use it to clear the second column above and below. Continue to the third column and the matrix reduces to the identity on the left with the solution on the right: x = โˆ’8, y = 1, z = โˆ’2.

Substitute those back into the original equations and each one checks out. That substitution step is worth doing every time โ€” reduced row echelon form is easy to get slightly wrong by hand, and the check takes seconds.

Reading the result

What you seeWhat it means
Identity matrix on the left of an augmented systemExactly one solution, read off the last column
A row of zeros with a non-zero constantNo solution โ€” the system is inconsistent
Fewer pivots than variablesInfinitely many solutions, with one free variable per non-pivot column
Rank equals the number of rowsThe rows are linearly independent
Rank equals the number of columnsThe columns are linearly independent

The rank is the single most informative number here. For a square matrix, full rank means invertible; anything less means singular. For a system of equations, comparing the rank of the coefficient matrix with the rank of the augmented matrix tells you immediately whether a solution exists at all.

Where it is actually used

Beyond solving systems by hand, reduced row echelon form does real work. Placing a matrix alongside the identity and reducing the whole thing computes the inverse in one pass. Reducing a set of vectors written as rows gives a basis for the space they span, with the non-zero rows forming that basis.

It also determines linear independence directly. Write the vectors as rows, reduce, and count the non-zero rows โ€” that count is the dimension of the span. If it is less than the number of vectors you started with, they were dependent.

In numerical work the picture is different. Gauss-Jordan is not how software solves large systems, because it is more expensive than LU decomposition and less stable without careful pivoting. Its value is pedagogical and structural: it produces a canonical form you can reason about, which matters more in a linear algebra course than raw speed does.

Results here are rounded to six decimal places for display and values below 1e-10 are treated as exactly zero. That threshold matters โ€” floating-point arithmetic on badly conditioned matrices can leave a residue like 2.3e-16 where the true answer is zero, and treating it as non-zero would produce a nonsensical extra pivot.

Assumptions and limitations

  • Entries must be real numbers โ€” complex entries are not supported
  • Values below 1e-10 in magnitude are treated as zero to avoid spurious pivots from floating-point residue
  • Results are displayed to six decimal places; exact fractional output is not produced
  • Badly conditioned matrices can lose precision even with partial pivoting
  • The calculator reduces the matrix as entered โ€” it does not interpret it as a system or state the solution in words
  • Very large matrices will be slow to display, though the arithmetic itself is fast

Questions people ask about this in Singapore

What is the difference between REF and RREF?

Row echelon form clears the entries below each pivot, giving an upper triangular shape, and its pivots do not have to be 1. Reduced row echelon form goes further: every pivot is exactly 1 and the entries above the pivots are cleared as well.

Row echelon form is not unique โ€” different valid sequences of operations give different results. Reduced row echelon form is unique for any given matrix.

How do I use RREF to solve a system of equations?

Write the system as an augmented matrix with the constants as the final column, then reduce it. If the left-hand side becomes the identity, the last column is the solution. A row of zeros with a non-zero constant means no solution, and fewer pivots than variables means infinitely many.

What does the rank of a matrix tell me?

The number of linearly independent rows, which equals the number of pivots in the reduced form. For a square matrix, full rank means it is invertible. For a system, comparing the rank of the coefficient matrix with that of the augmented matrix tells you whether a solution exists.

What are free variables in RREF?

Variables whose columns contain no pivot. Each free column corresponds to a variable you can set to any value, with the pivot variables then determined by it. One free variable gives a line of solutions, two gives a plane, and so on.

Is the reduced row echelon form unique?

Yes. Whatever order you perform valid row operations in, a given matrix has exactly one reduced row echelon form. That uniqueness is what makes it a canonical form and lets you use it to test whether two matrices are row equivalent.

Can I use RREF to find a matrix inverse?

Yes. Place the matrix alongside the identity to form an augmented block, then reduce the whole thing. If the original reduces to the identity, whatever the identity block has become is the inverse. If it does not, the matrix is singular and has no inverse.

The same calculator for other markets

The maths is identical everywhere. These versions use local units, currency and worked examples.

Method, source and review date

How it is worked out
Gauss-Jordan elimination with partial pivoting
Formula used
Gauss-Jordan elimination: swap, scale to a unit pivot, then eliminate above and below
Basis
Gauss-Jordan elimination
Last reviewed
Confidence
High

Spotted a figure that has moved, or a formula you can show is wrong? Tell us โ€” send a correction. Fixes to rates and formulas are treated as urgent.

Disclaimer

Grade and score calculations follow the published rules as we understand them, but institutions apply their own variations and change them between intakes. Confirm anything that affects an application with the school, university or examination body itself.