R RowReduce

Matrix Calculator with Steps

every row operation, shown & explained — no black boxes!

Unlimited Free Usage No signup · No paywall · No watermark

type numbers or fractions like 3/4, -2, 0.5 …

Matrix Calculator with Steps: Master Gauss-Jordan Elimination

A matrix calculator with steps does far more than spit out a final answer. When you are learning linear algebra — whether for a university exam, a machine-learning course, or an engineering interview — the answer alone teaches you nothing. What matters is the journey: which row did you swap, what multiple did you subtract, and why. RowReduce is built around that idea. Every computation is performed with exact fractions (so 1/3 stays 1/3 instead of becoming 0.3333333), and every single elementary row operation is displayed in plain notation like R2 → R2 − 2·R1, so you can follow, check, and truly understand the Gauss-Jordan elimination process from the first pivot to the final reduced matrix.

What Is Gauss-Jordan Elimination?

Gauss-Jordan elimination is a systematic algorithm for transforming any matrix into its reduced row echelon form (RREF) using only three allowed moves, called elementary row operations: (1) swap two rows, (2) multiply a row by a non-zero scalar, and (3) add a multiple of one row to another row. The procedure works in three phases. First, you move left to right across the columns, pick the first non-zero entry in each column as a pivot (swapping rows if the pivot position is zero), and use it to eliminate every entry below it. This produces row echelon form. Second, you scale each pivot row so that every pivot becomes exactly 1. Third, you work from right to left, using each pivot to eliminate the entries above it. When no non-zero entries remain above or below any pivot, you have reached the reduced row echelon form — and every matrix has exactly one RREF, which makes it a perfect fingerprint for the matrix.

Row Echelon Form vs Reduced Row Echelon Form

Students often confuse these two, so let us be precise. A matrix is in row echelon form (REF) when all zero rows sit at the bottom and each leading non-zero entry (pivot) of a row sits strictly to the right of the pivot in the row above it. A row echelon form calculator stops here. The reduced row echelon form (RREF) adds two stricter requirements: every pivot must equal 1, and every pivot must be the only non-zero entry in its column. RREF is unique; REF is not (different sequences of operations can produce different-looking echelon forms). That uniqueness is why textbooks, exams, and computer algebra systems standardize on RREF: two matrices are row-equivalent if and only if they share the same RREF. If you are solving a system of linear equations, the RREF of the augmented matrix literally reads the solution off — the variables equal the constants in the last column, with free variables clearly visible as non-pivot columns.

A Worked Example, Step by Step

Consider the matrix [[2, 1, −1], [−3, −1, 2], [−2, 1, 2]]. Step 1: the pivot in column 1 is the 2 in row 1. To clear the −3 below it, apply R2 → R2 + (3/2)·R1, giving [0, 1/2, 1/2]. To clear the −2, apply R3 → R3 + R1, giving [0, 2, 1]. Step 2: move to column 2; the pivot is 1/2 in row 2. Clear the 2 below it with R3 → R3 − 4·R2, giving [0, 0, −1]. Step 3: scale the pivots to 1: R2 → 2·R2 gives [0, 1, 1], and R3 → −1·R3 gives [0, 0, 1]. Step 4: eliminate upward — R2 → R2 − R3 gives [0, 1, 0]; then R1 → R1 + R3 and R1 → R1 − R2 clear the top row to [1, 0, 0]. The RREF is the identity matrix, which tells us the original matrix is invertible with full rank 3. Notice how every coefficient stayed an exact fraction throughout — this is exactly what RowReduce reproduces automatically, including the swap and scaling steps that most online solvers silently skip or merge together.

Why Exact Fractions Beat Decimals

Most calculators convert everything to floating-point decimals, and that quietly corrupts the mathematics. One third becomes 0.3333333333, and after several elimination steps the rounding error compounds until a pivot that should be exactly zero shows up as 0.0000001 — or worse, a determinant that should be exactly zero comes out as a tiny non-zero number, flipping a singularity verdict. RowReduce stores every entry as an exact fraction (a numerator over a denominator, always reduced by their greatest common divisor), so arithmetic is mathematically perfect at every step. Pivots that are truly zero are detected as exactly zero, determinants of singular matrices come out as exactly 0, and inverse matrices display clean fractions like −1/4 instead of −0.2500000002. For exam preparation this matters enormously: your hand-worked solutions use fractions, so a calculator that speaks fractions lets you compare step for step without translation errors.

Determinant, Inverse, and Rank — What They Tell You

RowReduce computes three deep properties alongside the RREF. The determinant is a single number that captures how the matrix scales volume: a determinant of zero means the matrix squashes space flat and is therefore singular — it has no inverse and the corresponding linear system either has no solution or infinitely many. A non-zero determinant guarantees a unique solution. Our determinant is computed by the same exact-fraction elimination, tracking row swaps (each swap flips the sign), so the result is exact. The inverse A⁻¹ is found by running Gauss-Jordan on the augmented matrix [A | I]; if the left half reduces to the identity, the right half is the inverse — and you can watch every step of that transformation. The rank is simply the number of pivots (non-zero rows in the RREF): it tells you the dimension of the column space, the number of linearly independent rows, and — for a system of equations — how many genuinely independent constraints you have. A 3×3 matrix with rank 2, like [[1,2,3],[4,5,6],[7,8,9]], is singular, and its RREF will visibly end in a zero row.

How to Use Practice Mode to Actually Learn

Watching steps is good; doing steps is better. Practice mode flips the calculator into a tutor: it generates a guaranteed-solvable random problem (or uses your own matrix), shows you the current state, and asks you to type the next row operation. Type operations naturally — R2 -> R2 - 2*R1, R1 <-> R3, or R2 -> (1/2)*R2 — and the tool validates your answer with exact fraction comparison, so R2 -> R2 - 4/2*R1 is accepted as identical to R2 -> R2 - 2*R1. If you are stuck, the hint system works in two levels: first it nudges you toward the right pivot ("use the pivot in row 1 to eliminate the entry below it in row 2"), and only then reveals the exact operation. Research on active recall consistently shows that retrieving a procedure from memory beats re-reading it, and that is precisely the loop practice mode creates: attempt, get validated, repeat until the algorithm becomes reflex. Ten minutes a day in practice mode will do more for your linear algebra exam than an hour of passively watching solved examples.

Common Mistakes Students Make

After watching thousands of row reductions, the same errors appear again and again. Mistake 1: arithmetic slips when subtracting multiples — students compute R2 − 2·R1 as [−3−4, −1−2, 2−2] = [−7, −3, 0] and then mis-add a column. Exact-fraction display makes these slips visible instantly. Mistake 2: forgetting that scaling a row scales the entire row, including the augmented constant column. Mistake 3: stopping at row echelon form and calling it "reduced" — if there are non-zero entries above your pivots, you are not done. Mistake 4: swapping rows but forgetting that each swap flips the sign of the determinant. Mistake 5: dividing by a pivot without checking it is non-zero first. RowReduce's step log is an excellent debugging mirror: work a problem by hand, then compare your sequence of operations against the tool's canonical sequence — any divergence is a precise pointer to the exact line where your reasoning went wrong.

When to Use Each Matrix Operation

Different problems call for different tools. Solving Ax = b? Reduce the augmented matrix [A | b] to RREF and read off the solution — this is faster and more stable than computing A⁻¹ and multiplying. Need A⁻¹ itself (for example, to solve many systems with the same A)? Use the inverse mode on [A | I]. Just checking solvability? The determinant answers in one number: zero means singular. Analyzing data or a transformation? The rank reveals the true dimensionality hiding inside redundant rows. And whenever a number looks suspicious — a fraction that will not simplify, a zero row that appears "too early" — re-run the computation in RREF mode and inspect the exact step where it happened. Because every intermediate matrix is shown, there is never a moment where you must trust the machine blindly.

RowReduce runs entirely in your browser: your matrices never leave your device, there are no accounts, no usage caps, and no watermarks on anything you copy. Whether you need a quick row echelon form calculator check before an exam, a full Gauss-Jordan elimination steps walkthrough for homework, or a sparring partner in practice mode, the notebook is open and the pencil is yours.

Frequently Asked Questions

What is a matrix calculator with steps?

It is a calculator that does not just give you the final reduced matrix — it shows every elementary row operation (swaps, scalings, and row additions) in order, so you can follow the Gauss-Jordan elimination exactly as you would do it by hand. RowReduce goes further by using exact fractions, so no rounding error ever creeps into the steps.

What is the difference between row echelon form and reduced row echelon form?

In row echelon form, each pivot sits to the right of the pivot above it and zero rows are at the bottom. Reduced row echelon form additionally requires every pivot to be 1 and to be the only non-zero entry in its column. RREF is unique for every matrix; plain echelon form is not.

How does Gauss-Jordan elimination work?

You pick pivots column by column from left to right, use each pivot to zero out all entries below it (forward elimination), scale every pivot row so the pivot becomes 1, then use each pivot to zero out all entries above it (backward elimination). The three allowed moves are swapping two rows, multiplying a row by a non-zero number, and adding a multiple of one row to another.

Why does RowReduce use exact fractions instead of decimals?

Floating-point decimals introduce rounding error: 1/3 becomes 0.3333333, and after several steps a pivot that should be exactly zero can appear as 0.0000001. Exact fractions keep every computation mathematically perfect, so singular matrices are detected as exactly singular and inverses display clean fractions like 3/4.

When does a matrix have no inverse?

A square matrix has no inverse exactly when its determinant is zero — that is, when it is singular. In RREF terms, this shows up as a zero row (rank less than the size of the matrix). RowReduce detects this automatically and tells you the matrix is singular instead of showing a bogus inverse.

What does the rank of a matrix tell me?

The rank is the number of pivots — the count of linearly independent rows (or columns). It tells you the dimension of the space the matrix maps onto, and for a system of equations it tells you how many independent constraints you really have. A 3×3 system with rank 2, for example, cannot have a unique solution.