Skip to main content
CalcChef

RREF Calculator

Reduce a matrix of up to 6 × 6 to reduced row echelon form by Gauss-Jordan elimination, with rank, pivot columns and row steps, as decimals or exact fractions. How it works

Use the RREF Calculator

Rows
3
Cols
4
Rank
3
Pivots 1, 2, 3

Reduced Row Echelon Form

Rank 3 (pivots in columns 1, 2, 3)

Entries are rounded to 4 decimal places (smaller entries show more digits). Whole numbers of thirds show over 3 (1/3, 2/3, 4/3 and so on); other fractions show as decimals. Choose Exact fractions for any fraction.

1
0
0
2
0
1
0
3
0
0
1
-1

Worked example: 2x + y − z = 8, −3x − y + 2z = −11 and −2x + y + 2z = −3, with the constants in the last column. The result reads x = 2, y = 3, z = −1. Change any entry to try your own matrix.

Read as a system of equations

With the last column as the constants and 3 unknowns (x1, x2, x3): exactly one solution.

  • x1 = 2
  • x2 = 3
  • x3 = −1

Rank 3 of 3 unknowns. For 3 unknowns you can also use the system of equations solver.

Row operations

9 row operations on exact fractions: R1 ↔ R2 swaps rows, R1 ← R1 ÷ k scales a row, R2 ← R2 − k·R1 subtracts a multiple of another.

  1. Start

    21−18−3−12−11−212−3
  2. Step 1: R1 ← R1 ÷ 2

    11/2−1/24−3−12−11−212−3
  3. Step 2: R2 ← R2 + 3·R1

    11/2−1/2401/21/21−212−3
  4. Step 3: R3 ← R3 + 2·R1

    11/2−1/2401/21/210215
  5. Step 4: R2 ← R2 ÷ (1/2)

    11/2−1/2401120215
  6. Step 5: R1 ← R1 − (1/2)·R2

    10−1301120215
  7. Step 6: R3 ← R3 − 2·R2

    10−13011200−11
  8. Step 7: R3 ← R3 ÷ (−1)

    10−130112001−1
  9. Step 8: R1 ← R1 + R3

    10020112001−1
  10. Step 9: R2 ← R2 − R3

    10020103001−1

About the RREF Calculator

A matrix of up to 6 rows and 6 columns reduces to reduced row echelon form (RREF) by Gauss-Jordan elimination, and the calculator shows the result with the rank and the pivot columns. The worked example 2x + y − z = 8, −3x − y + 2z = −11, −2x + y + 2z = −3 reduces to the 3 × 3 identity with 2, 3 and −1 in the last column: x = 2, y = 3, z = −1, rank 3. Choose Exact fractions to see every entry in lowest terms instead of rounded decimals.

Matrices and what the calculator returns

Matrix (rows separated by /)Reduced formRankPivot columnsWhat it says
2 1 -1 8 / -3 -1 2 -11 / -2 1 2 -31 0 0 2 / 0 1 0 3 / 0 0 1 -131, 2, 3x = 2, y = 3, z = -1
1 2 5 / 3 4 61 0 -4 / 0 1 4.521, 2x = -4, y = 4.5
1 1 1 4 / 1 -1 3 21 0 2 3 / 0 1 -1 121, 2Infinitely many solutions: x = 3 - 2z, y = 1 + z
1 1 2 / 1 1 31 1 0 / 0 0 121, 3No solution: a pivot in the last column
1 2 3 / 4 5 6 / 7 8 91 0 -1 / 0 1 2 / 0 0 021, 2The third row is 2 × row 2 - row 1
2 1 1 0 / 5 3 0 11 0 3 -1 / 0 1 -5 221, 2The right half is the inverse of the left half

Each row of a matrix is typed into the grid; the first four rows read as augmented systems with the constants in the last column. Entries are shown as the calculator shows them.

How a typed entry is read

Typed in a cellResultReason
1/2Read as 0.5A fraction
-3 / 4Read as -0.75A fraction; spaces around the slash are allowed
.25Read as 0.25A decimal
1e-5Read as 0.00001Exponent form
2.5E3Read as 2500Exponent form
1,5RefusedCommas and letters are not read
2xRefusedCommas and letters are not read
0x10RefusedCommas and letters are not read
1/0RefusedThe entry divides by zero
(empty)RefusedAn empty cell is not read as 0: enter 0

A refused entry is named by its row and column and no result is shown until it is fixed.

How to use this tool

  1. Set the number of rows and columns, 1 to 6 each. For a system of equations, use one column more than the number of unknowns and put the constants in the last column.
  2. Type each entry as a decimal, a fraction such as 1/2 or an exponent such as 1e-5. Type 0 for a zero.
  3. Read the reduced matrix with its rank and the pivot columns. They update as you type. Switch between Decimals and Exact fractions under the rank.
  4. Check the numbered row operations under it, and the Read as a system of equations panel, which treats the last column as the constants.

Frequently asked questions

What is reduced row echelon form?
A matrix is in RREF when each non-zero row starts with a 1 (the pivot), each pivot is the only non-zero entry in its column, each pivot is to the right of the pivot in the row above, and rows of zeros are at the bottom. 2 1 -1 8 / -3 -1 2 -11 / -2 1 2 -3 reduces to 1 0 0 2 / 0 1 0 3 / 0 0 1 -1.
How do I solve a system of linear equations with RREF?
Write the augmented matrix with the coefficients first and the constants in the last column, then reduce it. x + 2y = 5 and 3x + 4y = 6 become 1 2 5 / 3 4 6 and reduce to 1 0 -4 / 0 1 4.5, so x = -4 and y = 4.5. When the left part reduces to the identity, the last column is the solution.
How do I find the rank of a matrix?
The rank is the number of pivots in the reduced form, and the calculator prints it. 1 2 3 / 4 5 6 / 7 8 9 reduces to 1 0 -1 / 0 1 2 / 0 0 0, so its rank is 2 with pivots in columns 1 and 2: the third row is 2 × row 2 - row 1.
How can I tell whether a system has no solution or many solutions?
Look at the pivot columns. A pivot in the last column means no solution: 1 1 2 / 1 1 3 reduces to 1 1 0 / 0 0 1 with pivots in columns 1 and 3. A solvable system with fewer pivots than unknowns has infinitely many solutions: 1 1 1 4 / 1 -1 3 2 reduces to 1 0 2 3 / 0 1 -1 1, so x = 3 - 2z and y = 1 + z. The Read as a system of equations panel says this for you, naming the unknowns x1, x2 and x3: x1 = 3 − 2·x3, x2 = 1 + x3, with x3 free.
Can I use it to find the inverse of a matrix?
Yes, for a square matrix up to 3 × 3, since the matrix and the identity beside it must fit in 6 columns. Type 2 1 1 0 / 5 3 0 1 and it reduces to 1 0 3 -1 / 0 1 -5 2, so the inverse of 2 1 / 5 3 is 3 -1 / -5 2. If the left half does not become the identity, as with 1 2 1 0 / 2 4 0 1, the matrix has no inverse.
Why does a small entry not show as 0?
Entries show at most 4 decimals, but a value below 0.0001 keeps more digits so that it is not mistaken for zero: 1 0 0.00004 / 0 1 5 stays as it is. A value that is a whole number of thirds shows over 3: 1/3, 2/3, 4/3 or 5/3 (3 0 1 / 0 3 2 reduces to 1 0 1/3 / 0 1 2/3, and 3 4 reduces to 1 4/3). A value within 0.000000001 of a third, such as 0.3333333333, shows the same way. Other fractions show as decimals: 1/7 shows as 0.1429. Choose Exact fractions to see them in lowest terms: 3 1 1 / 1 2 1 (3x + y = 1, x + 2y = 1) reduces to 1 0 1/5 / 0 1 2/5 instead of 1 0 0.2 / 0 1 0.4.

Related Tools

View all tools