Skip to content

RREF Calculator – Reduced Row Echelon Form

Updated:

Enter a matrix of up to 8 rows and the calculator reduces it to reduced row echelon form (RREF) using Gauss–Jordan elimination, showing rank, pivot columns, every intermediate step and, for an augmented system, the solution.

Reduce a Matrix to Reduced Row Echelon Form

Input Fields
Matrix entries
Fractions (3/4), decimals (1.5) and negatives are allowed. Empty cells count as 0.
If enabled, the result will update automatically when you change any value.

RREF Formula

Formula
\[ \text{RREF: } \left[\begin{array}{ccc|c} a_{11} & \cdots & a_{1n} & b_{1} \\ \vdots & \ddots & \vdots & \vdots \\ a_{m1} & \cdots & a_{mn} & b_{m} \end{array}\right] \;\longrightarrow\; \left[\begin{array}{ccc|c} 1 & 0 & \cdots & c_{1} \\ 0 & 1 & \cdots & c_{2} \\ \vdots & \vdots & \ddots & \vdots \end{array}\right] \] \[ R_i \leftrightarrow R_j \,, \qquad R_i \to k\,R_i \;(k \neq 0) \,, \qquad R_i \to R_i + k\,R_j \]

Where:

  • \(a_{ij}\) — entry of the matrix in row \(i\), column \(j\)
  • \(b_i\) — right-hand side (only present if the matrix is augmented)
  • \(R_i\) — the \(i\)-th row of the matrix
  • \(k\) — any non-zero scalar multiplier

There is no closed-form expression for the reduced row echelon form: it is reached by applying the three elementary row operations listed above, in the systematic order known as Gauss–Jordan elimination — forward elimination first, then clearing the entries above each pivot. The row operations preserve the solution set of the system, so any matrix has exactly one RREF.

RREF – Calculation Example

Example: reduce the augmented matrix of the system \(x_1+x_2+x_3=6\), \(2x_1-x_2+x_3=3\), \(x_1+2x_2-x_3=2\), which is preloaded as the default matrix \(3\times3\) with \(b=(6,3,2)\).

\[ \left[\begin{array}{ccc|c} 1 & 1 & 1 & 6 \\ 2 & -1 & 1 & 3 \\ 1 & 2 & -1 & 2 \end{array}\right] \xrightarrow[\;R_3 \to R_3 - R_1\;]{R_2 \to R_2 - 2R_1} \left[\begin{array}{ccc|c} 1 & 1 & 1 & 6 \\ 0 & -3 & -1 & -9 \\ 0 & 1 & -2 & -4 \end{array}\right] \xrightarrow{R_2 \to -\tfrac{1}{3}R_2} \left[\begin{array}{ccc|c} 1 & 1 & 1 & 6 \\ 0 & 1 & \tfrac{1}{3} & 3 \\ 0 & 0 & 1 & 3 \end{array}\right] \]

Clearing above the pivots (\(R_2 \to R_2 - \tfrac{1}{3}R_3\), \(R_1 \to R_1 - R_3\), \(R_1 \to R_1 - R_2\)) gives:

\[ \operatorname{RREF} = \left[\begin{array}{ccc|c} 1 & 0 & 0 & 1 \\ 0 & 1 & 0 & 2 \\ 0 & 0 & 1 & 3 \end{array}\right] \quad \text{REF} = \left[\begin{array}{ccc|c} 1 & 1 & 1 & 6 \\ 0 & 1 & \tfrac{1}{3} & 3 \\ 0 & 0 & 1 & 3 \end{array}\right] \]

Result: rank \(= 3\), pivot columns 1, 2, 3, and the unique solution \(x_1 = 1\), \(x_2 = 2\), \(x_3 = 3\).

How to use the RREF calculator

  1. Set Rows to the number of rows of your matrix (1–8) and Columns (left of the bar) to the number of coefficient columns (1–7).
  2. Tick Augmented matrix [A|b] if your matrix represents a linear system \(A \cdot x = b\). This adds a right-hand column \(b\) and makes the calculator report the solution of the system as well.
  3. Fill in the visible cells under Matrix entries. Each cell accepts whole numbers, decimals such as 1.5, and fractions such as 3/4; negatives and entries like 2/3 are all handled exactly. Cells you leave empty are treated as 0.
  4. Read the Reduced row echelon form (RREF), the Rank, the Pivot columns and the Row echelon form (REF) in the results area.
  5. If the augmented option is on, check Solution of A·x = b: the calculator tells you whether the system has a unique solution, infinitely many solutions (with the free variables named) or no solution at all.
  6. Expand Step-by-step elimination to see every row operation (swap, scale, eliminate) with the matrix after each step — ideal for homework checks.

What is reduced row echelon form?

The reduced row echelon form is the simplest shape a matrix can be brought to using elementary row operations. A matrix is in RREF when the leading entry (the pivot) of every non-zero row equals 1, each pivot lies strictly to the right of the pivot above it, every other entry in a pivot column is 0, and any all-zero rows sit at the bottom. Unlike the intermediate row echelon form (REF), where entries below the pivots are already zero, the RREF also clears everything above the pivots.

The key property of the RREF is uniqueness: every matrix, no matter which sequence of legal row operations you use, reduces to one and only one RREF. This makes it the standard tool for comparing matrices — for example, two systems of linear equations have the same solution set exactly when their augmented matrices share the same RREF.

The RREF also exposes the structure of a linear system at a glance. The rank is the number of pivots, and the pivot columns identify which variables are determined by the equations. For an augmented matrix \([A|b]\) the outcome is one of three cases: if the RREF contains a row of the form \(0 = c\) with \(c \neq 0\), the system is inconsistent (no solution); if every column of \(A\) is a pivot column, the solution is unique; otherwise there are infinitely many solutions parameterised by the free (non-pivot) variables.

RREF is far more than a homework device. The same reduced form is used to find matrix inverses (reduce \([A|I]\)), to compute bases of vector spaces, and to determine linear independence of vectors. For square matrices it also ties in with other invariants: a full-rank \(n \times n\) matrix has a non-zero determinant, which you can verify with our determinant calculator.

Assumptions, limitations and practical tips

  • Exact arithmetic. All calculations are performed with exact fractions, never floating-point decimals. A matrix that reduces cleanly will not suffer from rounding noise — perfect for textbook problems, matrices of integers and simple fractions.
  • Size limits. The matrix can have at most 8 rows, 7 coefficient columns and one augmented column (8 × 8 in total). Empty cells count as zero, so a sparse matrix needs only its non-zero entries typed in.
  • Uncheck the augmented box if you only need the RREF of a matrix \(A\) itself; the extra column would otherwise be reduced together with \(A\) and could change the pivot positions shown.
  • Interpreting free variables. When the system has infinitely many solutions, the calculator names the free variables \(s, t, u, \dots\) and expresses the pivot variables in terms of them. Any choice of the free variables yields a valid solution.
  • Related tools: the general matrix calculator covers basic matrix operations, and synthetic division is a handy companion when a polynomial problem reduces to a linear system. You can also link the reduced form to structural facts — full rank means \(A\) is invertible, a fact you can cross-check against the matrix trace and other invariants.

Frequently Asked Questions

How do I calculate the RREF of a matrix by hand?

Work column by column from the left. In each column, swap rows if needed to bring a non-zero entry to the pivot position, divide that row so the pivot becomes 1, then eliminate every other entry in that column using row replacement \(R_i \to R_i - k R_j\). Continue until all pivots are in place, then the matrix is in RREF. Always verify each pivot equals 1 and that the pivot strictly moves to the right in each lower row.

What is the difference between REF and RREF?

In row echelon form (REF), each leading entry must be non-zero (often normalized to 1) and all entries below a pivot are zero. Reduced row echelon form (RREF) goes further: every pivot must equal 1, and all entries below and above each pivot must be zero. A matrix has many valid REFs but only one unique RREF, which is why the reduced form is the preferred standard for comparing solution sets.

Can a matrix have more than one RREF?

No. Even though there are many different sequences of elementary row operations, every matrix reduces to exactly one reduced row echelon form. The result is independent of your particular sequence of swaps, scalings and row additions. Two matrices are row-equivalent precisely when their RREFs are identical, so checking the RREF is a reliable way to compare matrices.

How do I read the solution of a linear system from the RREF?

For an augmented matrix \([A|b]\), the last column of the RREF gives the constants. If every variable column is a pivot column, the solution is unique and read directly from the last column. A row of the form \(0 = c\) with \(c \neq 0\) means no solution. Any non-pivot variable column indicates a free variable, so the system has infinitely many solutions expressed in terms of those free parameters.

Why is the pivot of a row never on the left for every row?

Pivots must form a staircase: each pivot lies strictly to the right of the pivot above it. If the leading entry of a row were in the same column as the pivot above, the elimination step would already have made it zero. Zero rows, if any, must be moved to the bottom — this happens automatically during Gauss–Jordan elimination when a column has no non-zero entry below the current pivot row.

What are the most common mistakes when doing Gauss–Jordan elimination by hand?

Typical errors include adding a multiple of a row to itself, forgetting to apply an operation to every entry in the row (including the augmented column), scaling by a factor of zero (not allowed), and stopping at REF without clearing the entries above the pivots. Arithmetic slips with fractions are the most frequent cause of wrong answers, which is why the step-by-step view of this calculator is useful for checking handwritten work.

Can I use the RREF to find the inverse of a matrix?

Yes. Place the matrix \(A\) next to the identity: form the block matrix \([A | I]\). Apply row operations until the left block becomes \(I\); the right block then equals \(A^{-1}\). This only works when \(A\) is square and has full rank. If the RREF of the left block is not the identity, the matrix is singular and no inverse exists.

Leave a Reply

Your email address will not be published. Required fields are marked *