Learn
A marching band crosses the field in echelon: the front row leads, every row behind steps a little shorter, and nobody falls out of line. The gaussian elimination method puts your equations into exactly that formation - and once they stand like that, the answers simply step out of the rows, one at a time.
The name is not decoration. Echelon is the marching formation where each row is shorter than the one in front - and algebra borrowed the word for matrices arranged the same way. The gaussian elimination method takes your equations and shaves variables off them, row by row, until they stand in exactly that shape. Watch the gaussian elimination method do it:
The top row still carries all three variables, the middle row only two, the bottom row just one. That staircase is the destination of the gaussian elimination method, and reading it is the payoff for everything the gaussian elimination method does before. From the last row you read immediately. Carry it up a row and the middle row hands over . Carry both up again and the top row hands over .

Echelon formation: the front row leads and every row behind is shorter - the staircase the gaussian elimination method builds before back-substitution reads off the answer.
So before any technique at all, the gaussian elimination method makes one promise. Line the equations up like the band, and the answers step out of the formation on their own. Everything this page adds is just the careful machinery the gaussian elimination method uses to keep that promise.
The gaussian elimination method is a way to solve a system of linear equations. It turns the numbers into an augmented matrix, then cleans that matrix up with row operations. It carries Carl Friedrich Gauss's name, though the idea is far older - versions of it appear in ancient Chinese mathematics. Why prefer the gaussian elimination method to elimination by hand? One equation after another, the gaussian elimination method works on numbers, not letters. Variables stay parked in their columns; you push numbers only. That is also why every computer on earth solves big systems with some version of the gaussian elimination method inside it.
Four steps, always in this order:
Ground the loop of the gaussian elimination method in a tiny system: and . In words, each equation is a number-fact about the same mystery pair. The gaussian elimination method packs both facts into one matrix:
Subtracting the second row from the first turns the top row into , so , and then . Matrix in, staircase, values out. That little loop is the gaussian elimination method at toy scale, and the rest of this page makes it careful enough for three-variable systems.
Line the equations up so every -term shares a column, every -term shares a column, and so on. Copy each row of coefficients, draw a bar where the equal signs were, and copy the constants after it. The gaussian elimination method then works on numbers alone. The system and becomes
.
Two habits keep the gaussian elimination method safe from here, and both are about copying honestly. First, write every equation in standard form before copying. A missing variable contributes a - so inside a three-variable system contributes the entries , and the gaussian elimination method reads that zero as an honest absent variable.
Second, respect the bar. The left block holds the equations' left sides and the right block their right sides, and the gaussian elimination method must never let a number cross that fence. Every later move rearranges whole rows - the gaussian elimination method reshuffles equations, never fragments one.
Only three moves are legal, and the gaussian elimination method uses nothing else - every step you will ever see is one of them:
The third move deserves a warning label. When you compute , you use but you never change it - the next matrix must show row 1 untouched. Students who edit both rows have quietly written two different equations, and no row operation the gaussian elimination method allows can undo that. Say the notation out loud as you work. It names the row that was used and the row that was worked on. That is exactly the pair the gaussian elimination method needs you to keep straight.
The gaussian elimination method aims at this silhouette:
A leading starts each row, each leading sits below and to the right of the one above, and everything underneath the staircase is . Entries above the staircase may be anything at all - that is normal at this stage of the gaussian elimination method. Reach this staircase and the gaussian elimination method is one back-substitution away from done. To steer toward the shape, the gaussian elimination method works column by column. Get a leading in row 1, then sweep zeros down the first column.
Get a leading in row 2 and sweep the second column. Continue like that down the matrix. If a column starts with , the gaussian elimination method promotes another row into the lead with a swap. Once the staircase stands, the gaussian elimination method finishes with back-substitution - the reward step. The bottom row is a one-variable equation, so read , carry it up for , carry both up for , and the gaussian elimination method is done.
Solve: and .
Answer: , , so . The gaussian elimination method gets there in four labeled moves.
Steps. The gaussian elimination method starts by packing the system into an augmented matrix. The top row's leading entry is , but row 2 starts with - so swap rows, a free move, instead of dividing:
Next, clear the below the leading by replacing row 2 with - row 1 is used and untouched:
Scale row 2 by and the gaussian elimination method has built its staircase:
Now back-substitute, the step where the gaussian elimination method collects: the bottom row says . Carry it upstairs: gives . Check both originals: and . Notice the budget: the gaussian elimination method spent one swap, one replacement, and one scaling - all three legal row operations inside a three-line problem. Ordinary elimination would have demanded matched multipliers; the gaussian elimination method simply tidies the matrix, one labeled move at a time.
Solve: , then , then .
Answer: .
Steps. Write the augmented matrix first - the gaussian elimination method always opens with one - and label every move as the gaussian elimination method works column by column:
(a) Swap. Row 2 already starts with , so the gaussian elimination method trades rows 1 and 2 first. It prefers a free swap to a fraction-heavy division.
(b) Replace, twice. Here the gaussian elimination method clears the whole first column in two moves. Row 2: gives . Row 3: gives . Row 1 was used twice and changed neither time - the gaussian elimination method keeps that promise every single move.
(c) Replace. The gaussian elimination method now works the second column, and one replacement does it: gives the bottom row .
(d) Scale. Multiply row 3 by . The row becomes , and the matrix reaches row-echelon form - the staircase this whole process was marching toward:
(e) Back-substitute. With the staircase standing, the gaussian elimination method collects: bottom row, . Middle row: , so . Top row: , so . Check in the equation the gaussian elimination method never touched first: . A swap, three replacements, one scaling - and every move was one of the three legal types, which is why a gaussian elimination solution can be audited line by line.
What if the staircase never completes? The gaussian elimination method still finishes - it just reports honestly. Suppose the gaussian elimination method sweeps a column and produces the row . In equation language that says , which is impossible: the system has no solution, and the gaussian elimination method has proven it rather than guessed. Now suppose the bottom row comes out as all zeros, like . That row says - true, but it carries no information, because two of the original equations were saying the same thing. The system has infinitely many solutions, and the rows the gaussian elimination method left standing describe them with a free variable. Both verdicts are ordinary outcomes: run the gaussian elimination method exactly as always, and read the verdict off the bottom of the staircase. The gaussian elimination method needs no special procedure: it simply reports what the staircase says.
Stop at row-echelon form and back-substitute: that is the gaussian elimination method in its plain form. Keep going. Clear the entries above each leading as well, until the left block is the identity matrix. You have then reached reduced row-echelon form, where the answer sits in the last column with no back-substitution at all. The gaussian elimination method stops at the staircase; the fuller sweep is Gauss-Jordan elimination, named for Wilhelm Jordan and not for the river.
Many students prefer a gauss jordan elimination calculator route because the extra moves are mechanical. The gaussian elimination method stops one stage earlier and thinks instead. Both finishes land on the same answer, and no teacher should dock points for the tidier one. The gaussian elimination method is simply the shorter member of the same family.
The row operations are identical in the gaussian elimination method and Gauss-Jordan. That is why this site's gaussian elimination calculator doubles as a gauss jordan elimination calculator. It shows the matrix after every row operation, so you can stop the sweep at either depth. Comparing your scratch work against it is also the fastest way to catch the classic disaster - one wrong entry early on, silently poisoning every row computed afterwards.
A parking lot charges \3$2$2611$ vehicles in total. Write the system, run the gaussian elimination method on its augmented matrix, and find how many cars and how many motorcycles used the lot.
A jar holds coins - only nickels, dimes, and quarters - worth \0.65ndqn + d + q = 75n + 10d + 25q = 65d - q = 1$. Use the gaussian elimination method on the augmented matrix to find how many of each coin are in the jar.
1. Scaling one entry instead of the whole row. Turning into divides only the first number and destroys the equation. Every row operation the gaussian elimination method allows touches every entry of the row - bar and constants included.
2. Swapping across columns. Rows may trade places freely; columns may not. The gaussian elimination method never performs column operations. Interchange entries across the - and -columns and you have silently renamed your variables, so the gaussian elimination method now solves a different problem to the very end.
3. Editing the row you only meant to use. In , row 1 is scratch work, not a target. After the move, row 1 must appear unchanged in the new matrix. Copy the untouched rows first, then overwrite only the target row - the whole discipline of the gaussian elimination method rests on that habit.
4. Dropping a carried value during back-substitution. From the bottom up, each row receives all values found below it. In a the middle row needs before it can give up , and the top row needs both before it gives up . Write the carried numbers down - the gaussian elimination method moves fast, and memory is not a ledger. Slow arithmetic is forgivable; a lost value is not.
The gaussian elimination method solves a system of linear equations in three moves. Write the system as an augmented matrix, use row operations to reach row-echelon form, then back-substitute from the bottom row upward.
Yes. The gaussian elimination method solver on this site ([gaussian elimination calculator](/calculators/gaussian-elimination-calculator)) runs the row operations on your augmented matrix. It shows the matrix after each step, so you can check your scratch work against a clean copy at every stage.
A gauss jordan elimination calculator keeps working after row-echelon form. It clears the entries above each leading $1$ too, reaching reduced row-echelon form - the answers then sit in the last column with no back-substitution. Plain gaussian elimination stops earlier and back-substitutes instead. Both routes reach the same solution, whichever depth of the gaussian elimination method you choose.
It is named for Carl Friedrich Gauss, though the underlying idea is much older and appears in ancient Chinese mathematics. The *echelon* half of the name describes the staircase shape the matrix reaches - like a marching formation with each row shorter than the one in front. Textbooks usually say gaussian elimination method for the full row-operation procedure, and echelon form for its destination.
The gaussian elimination method never fails to run, and its row-echelon form tells you honestly what kind of answer exists. A row like $(0, 0 \,|\, 5)$ means no solution. A row of all zeros means infinitely many, because two equations were saying the same thing. Either way the gaussian elimination method hands you a verdict instead of a fake answer.