Row Echelon Form Calculator

Enter the nine entries of a 3x3 matrix to compute its row echelon form.

How it is calculated

Enter a 3×3 matrix row by row (a11 to a33). The tool does forward Gaussian elimination column by column. In each column it looks at the entries on and below the current row and swaps the one with the largest absolute value into the pivot position (partial pivoting). It then subtracts factor × pivot row from the rows below, where factor = entry ÷ pivot, to make those entries zero. A column with no usable pivot (all entries below 10⁻¹²) is skipped. The rank is the number of pivots found. The determinant is the product of the diagonal of the final matrix times −1 for each row swap. Pivots are not scaled to 1, so this is a row echelon form, not the reduced one. Entries are shown to four decimals.

Worked example

Matrix rows: (2, 1, −1), (−3, −1, 2), (−2, 1, 2). Column 1: the largest absolute value is −3, so rows 1 and 2 swap. Eliminating below the pivot −3 and then the second column (pivot 1.6667) leaves the staircase [−3, −1, 2; 0, 1.6667, 0.6667; 0, 0, 0.2]. Three pivots were found, so the rank is 3. The determinant is −1.0000, which can be checked by cofactor expansion along the first row.

Try this example →

Common mistakes

  • Expecting leading ones. The tool leaves pivots as they are, so a leading −3 does not get divided to 1; dividing each row by its pivot, then clearing above, is a separate step towards reduced form.
  • Expecting the original row order. Partial pivoting swaps rows, so the first row of the result may be a different row from the one you typed first.
  • Reading the matrix as an augmented system and treating the last column like constants. The tool treats all nine entries as a plain 3×3 matrix and gives no solution values.
  • Trusting rank from rounded decimals. A pivot smaller than 10⁻¹² is treated as zero, so typing 0.3333 for ⅓ can give a full rank where the exact fractions would give less.
  • Comparing the determinant directly with a hand answer that skipped the sign. Each row swap flips the sign, and the tool includes this.

About this calculator

Row echelon form (REF) is what you get after applying Gaussian elimination to a matrix: using row operations to zero out everything below each pivot, creating a staircase pattern of leading entries. It's the standard first step in solving systems of linear equations by hand or by computer.

This calculator reduces a 3×3 matrix using forward elimination with partial pivoting (swapping rows to put the largest available value on the pivot for numerical stability), and reports the matrix's rank (number of non-zero pivot rows) and determinant along the way — core operations in linear algebra courses and in engineering fields that solve systems of equations, from circuit analysis to structural mechanics.

Was this helpful?

You can pick up to 3 reactions.

Comments (1)

  • Editorial team

    The matrix with rows 1 2 3, 4 5 6 and 7 8 9 is a good test of the rank output. The tool reports rank 2 and a determinant of 0.0000, and its first row becomes 7, 8, 9 because partial pivoting picks the largest entry in the column. Rank 2 means the three rows are dependent, so a system with this coefficient matrix has no unique solution. What matrix are you reducing, a homework one or a system?

Popular calculators

All Calculators