Gaussian Elimination Calculator with Steps
Solve a 3×3 system of linear equations via Gaussian elimination — watch each row operation reduce the system down to a direct answer.
Inputs
- a₁
- b₁
- c₁
- = d₁
- a₂
- b₂
- c₂
- = d₂
- a₃
- b₃
- c₃
- = d₃
Paste this into any page — the widget stays live and updates automatically as this calculator improves. Using WordPress or Notion? See the embed guide.
Saved Scenarios
— select 2+ to compare| Metric | |
|---|---|
x
5.0000
y
3.0000
z
-2.0000
Spark says
Formula
- U
- — The upper-triangular matrix produced by forward elimination, from which back-substitution finds z, then y, then x
What is the Gaussian Elimination Calculator with Steps?
This calculator solves a system of three linear equations with three unknowns (x, y, z) using Gaussian elimination — systematically eliminating variables through row operations until the system reduces to a form that's solved directly through back-substitution.
Use this when solving a 3×3 system of linear equations for coursework or an engineering/science problem, checking a manually worked row-reduction, or understanding the mechanics of Gaussian elimination as the general-purpose method behind solving larger linear systems.
How to use it
- 1 Enter each equation's three coefficients and right-hand-side constant, one equation per row.
- 2 The calculator applies partial-pivoting Gaussian elimination automatically, reducing the system step by step.
- 3 Read the resulting x, y and z values.
Understanding Gaussian Elimination Calculator with Steps
Gaussian elimination is the general-purpose workhorse method for solving linear systems of any size, and understanding its two-phase structure — forward elimination followed by back-substitution — clarifies both how it works mechanically and why it's the method that scales to real, large-scale problems where Cramer's rule's determinant-based approach becomes impractical.
Forward elimination systematically transforms the original system into an equivalent upper-triangular form — a system where each successive equation involves one fewer variable than the one before it. The mechanism is straightforward: at each step, use the current pivot row to eliminate that column's variable from every row below it, by subtracting an appropriately scaled multiple of the pivot row from each row beneath. Working through this process column by column, top to bottom, eventually produces a system where the last equation involves only one variable, the second-to-last involves only two, and so on — a shape that's genuinely easy to solve directly, working from the bottom up.
Partial pivoting — the practice of swapping rows so that the row with the largest available coefficient in the current column becomes the pivot row, rather than mechanically using whichever row happens to be in that position already — is a genuine, deliberate refinement to the basic method, not an optional embellishment. Its purpose is numerical stability: dividing by a very small pivot value (even one that's technically nonzero) can dramatically amplify any small rounding errors already present in the calculation, producing a final answer that's numerically unreliable even though the underlying algebra was performed correctly. Choosing the largest available pivot at each step keeps these amplification effects much smaller, which is exactly why virtually every serious real-world implementation of Gaussian elimination (including this calculator) uses partial pivoting rather than the naive, no-pivoting version sometimes shown as a first introduction to the method.
Back-substitution, the second phase, works through the now-triangular system from the bottom equation upward. The last equation, involving only one variable, is solved directly by simple division. That known value then substitutes into the second-to-last equation, which now involves only one remaining unknown, solving it directly too. This process repeats, each step using the previously found values to reduce the next equation up to a single remaining unknown, until every variable has been found. This backward-substitution structure is exactly why the forward elimination phase's goal is specifically to produce an upper-triangular (not just simplified) system — that particular triangular shape is precisely what makes the subsequent back-substitution phase straightforward.
Gaussian elimination's genuine advantage over Cramer's rule for anything beyond small systems comes down to computational cost: Cramer's rule requires computing a number of determinants that grows very expensive very fast as the system size increases, while Gaussian elimination's computational cost grows much more moderately with system size, which is exactly why Gaussian elimination (or closely related row-reduction methods) is the practical, standard approach used in real-world numerical software for solving large linear systems, with Cramer's rule remaining more of a conceptually elegant, pedagogically useful method best suited to smaller systems worked by hand or used to illustrate the underlying determinant-based structure of a linear system's solution.
Worked examples
Advantages
- •Handles a genuine 3-variable, 3-equation system, beyond what simple substitution comfortably manages by hand.
- •Uses partial pivoting (swapping to the largest available pivot at each step), a real numerical-stability improvement over naive elimination.
- •Correctly detects when a system lacks a unique solution rather than silently producing a wrong answer.
- •The same underlying method scales to systems of any size, so understanding it here transfers directly to larger problems.
Limitations
- •Fixed to exactly three equations and three unknowns — a 2-variable system is better served by the Simultaneous Equation Solver on this site.
Common mistakes
- ⚠️ Expecting elimination to always proceed 'in order' without ever swapping rows — partial pivoting deliberately reorders rows when it improves numerical stability, which is a genuine, correct part of the standard method, not a deviation from it.
- ⚠️ Losing track of which row operations have already been applied when working by hand, leading to double-applying or skipping a step partway through the elimination.
- ⚠️ Assuming every 3×3 system has a unique solution — a system can be inconsistent (no solution at all) or dependent (infinitely many solutions), both of which show up as a zero pivot that can't be resolved by any row swap.
Tips
- 💡 Why does this sometimes swap rows during elimination? Partial pivoting swaps to whichever row has the largest available coefficient in the current column, which genuinely improves numerical accuracy — it's a standard, deliberate part of the method, not an error.
- 💡 Gaussian elimination's back-substitution step works backward: once z is known from the final reduced row, substitute it into the second row to find y, then substitute both into the first row to find x.
- 💡 For a 2-variable system, the Simultaneous Equation Solver on this site is a more directly-suited tool, using Cramer's rule instead.
- 💡 If the elimination process produces a row that's entirely zero (including the right-hand side), the system has infinitely many solutions rather than none — a genuinely different case from an inconsistent system.
Real-life uses
- Solving a 3×3 system of linear equations for coursework or an engineering/science problem
- Checking a manually worked row-reduction
- Understanding the mechanics of Gaussian elimination as the general method behind solving larger linear systems
- Balancing chemical equations, circuit analysis, or any application that reduces to a linear system
Frequently asked questions
Why does this sometimes swap rows during elimination?
Partial pivoting swaps to whichever row has the largest available coefficient in the current column, which genuinely improves numerical accuracy — it's a standard, deliberate part of the method, not an error.
What is back-substitution?
Once forward elimination produces a triangular system, back-substitution solves the last equation directly (one unknown), then substitutes that value into the equation above to find the next unknown, working upward until every variable is found.
Why is Gaussian elimination preferred over Cramer's rule for larger systems?
Cramer's rule requires computing determinants that grow very expensive very fast as the system size increases; Gaussian elimination's computational cost grows much more moderately, making it the practical standard for larger systems.
What does it mean if a row becomes entirely zero during elimination?
If the row (including the right-hand side) becomes entirely zero, the system has infinitely many solutions rather than none — a genuinely different case from an inconsistent (no-solution) system.
Can this solve a 2-variable system?
It's built specifically for 3 equations and 3 unknowns — for a 2-variable system, the Simultaneous Equation Solver on this site (using Cramer's rule) is the more directly-suited tool.
calixo.cloud/math/gaussian-elimination-calculator/ — free calculator, no signup required.