Substitution Method Calculator — Solve Systems of Equations Step by Step
Isolate, substitute, solve, back-substitute

Substitution Method Calculator

Solve a system of linear equations by substitution — and see every line of the working, in exact fractions.

Write each equation in standard form first

Move every variable to the left and the constant to the right, so each row reads ax + by = c. Enter the coefficients only — whole numbers, decimals, or fractions such as 3/4 all work.

System setup

The solution never changes; only the route through the working does.

System entered: 2 equations in 2 unknowns

Each substitution removes one unknown from the remaining equations.

Entry tip: a missing variable is a coefficient of 0, not a blank. Write x = 4 as 1x + 0y = 4 so the row still has a value in every box.

Coefficients
Eq 1 x+ y +z =
Eq 2 x+ y +z =
Eq 3 x+ y +z =

System as written

x + y = 10
x − y = 2

How the substitution method works

A substitution method calculator solves a system of equations by isolating one variable and substituting its expression into the other equation. Solve the resulting equation for one variable, then substitute that value back into an original equation to find the second variable and the system's solution.

Every substitution removes one unknown, so a three-variable system reduces to a two-variable one before it reduces to a single equation. Nothing is lost along the way. Replacing a variable by an expression it already equals produces an equivalent system, which is why the final values satisfy the equations you started with — and why checking them is a genuine test rather than a formality.

1. Isolate

Solve one equation for one variable, ideally one with coefficient 1 or −1.

2. Substitute

Put that expression into the other equations to drop one unknown.

3. Back-substitute

Solve the reduced system, then feed the values back up the chain.

The four steps in symbols

Step 1 — isolate

a₁x + b₁y = c₁ → x = (c₁ − b₁y) ÷ a₁

Any equation with a non-zero coefficient on the chosen variable will do; the tidiest one keeps the fractions small.

Step 2 — substitute

a₂·(c₁ − b₁y)/a₁ + b₂y = c₂

The second equation now contains only y, because every x has been replaced by its equivalent expression.

Step 3 — solve

y = (a₁c₂ − a₂c₁) ÷ (a₁b₂ − a₂b₁)

Simplifying the one-variable equation gives this closed form, whose denominator is the determinant of the system.

Step 4 — back-substitute

x = (c₁ − b₁y) ÷ a₁

Return the value of y to the Step 1 expression to recover x, then check both originals.

Determinant rule: when a₁b₂ − a₂b₁ = 0 the denominator vanishes and there is no unique solution. The system then has either no solution or infinitely many, depending on whether the constants are consistent with that same ratio.

Method reference: OpenStax sets out the substitution procedure and its special cases in Systems of Linear Equations: Two Variables, including the contradiction and identity outcomes this calculator reports.

Method selection guide

Which method should you use?

Solve my system

Every method below returns the same solution set. They differ only in how much arithmetic they cost for a given system, so the coefficients in front of you should decide which one to reach for.

Comparison of methods for solving systems of linear equations
MethodBest whenMain costSelection note
SubstitutionA variable already has coefficient 1 or −1Fractions if you isolate the wrong variableAlso the natural choice when one equation is already solved for a variable.
EliminationAll coefficients are larger than 1Finding the right multipliersAdding scaled equations avoids the fractions substitution can create.
GraphingYou want the picture, not the precisionReading exact values off a plotGood for seeing why a system has no solution; poor for fractional answers.
Matrices — Cramer's rule or row reductionThree or more variables, or repeated systemsSetup and determinant arithmeticScales far better than hand substitution once the system grows.

If you are unsure: scan the system for a coefficient of 1. If you find one, substitute. If you do not, eliminate — and if a class or assignment names the method, use the one named, since the working is usually what is being marked.

Worked examples

Substitution examples with answers

Each row is one of the presets above. Load it in the calculator to see the full working rather than just the result.

Worked substitution examples with the isolated variable and final solution
SystemIsolate firstSubstituted equationSolution
x + y = 10 · x − y = 2x = 10 − y(10 − y) − y = 2x = 6, y = 4
2x + 3y = 7 · 4x − y = 5y = 4x − 52x + 3(4x − 5) = 7x = 11/7, y = 9/7
2x + 4y = 6 · x + 2y = 5x = 5 − 2y2(5 − 2y) + 4y = 6No solution
x + y + z = 6 · 2x − y + z = 3 · x + 2y − z = 2x = 6 − y − zTwo equations in y and zx = 1, y = 2, z = 3

Cleaner working

How to pick the variable to isolate

The choice does not change the answer, but it decides how much fraction arithmetic you do by hand. Three quick tests settle it before you write anything down.

1. Look for a lone variable

A coefficient of 1 or −1 isolates with no division at all, so nothing turns into a fraction.

2. Prefer the smaller number

If nothing is 1, dividing by 2 beats dividing by 7 — the denominators you create follow you through every later step.

3. Watch the other equation

If the coefficient you would substitute into is a multiple of the one you divided by, the fractions cancel immediately.

Standard form matters: the calculator reads coefficients, not equations, so terms must be collected first. 3x = 12 − 2y becomes 3x + 2y = 12, and 5 − y = 2x becomes −2x − y = −5. Skipping that rearrangement is the most common source of a wrong answer.

Worked-practice reference: OpenStax works through isolation and substitution step by step, with checks, in Solving Systems of Equations by Substitution.

Special cases

When the variables all disappear

Sometimes the substitution wipes out every variable at once. That is not a mistake — it is the system telling you what kind of system it is, and each outcome has a matching picture.

You get 0 = 4

A contradiction. The lines are parallel and never meet, so the system has no solution.

You get 0 = 0

An identity. The equations describe the same line, so every point on it solves the system — infinitely many solutions.

You get y = 9/7

One value, one intersection point. Fractions are ordinary here and should not be rounded before back-substituting.

Interesting fact

Systems were being solved this way two thousand years ago

Chapter 8 of the Chinese classic Nine Chapters on the Mathematical Art, compiled around two millennia ago, poses problems in several unknowns and solves them by laying the coefficients out in a rectangular array and reducing it column by column. The procedure is essentially the elimination that modern textbooks attribute to Gauss, written down roughly eighteen centuries before he was born. Substitution and elimination have been travelling companions ever since: the same reduction, done with expressions rather than rows.

Source: MacTutor History of Mathematics, Matrices and determinants.

Showing your work

What to write down alongside the answer

In most classes the method carries more marks than the final pair of numbers. Recording the chain also makes an arithmetic slip easy to find, because you can check each line against the one above it.

Minimum working to show

  • Both equations as given, numbered
  • Which variable you isolated, and from which equation
  • The substituted equation before you simplify it
  • The back-substitution and the final check in both originals

When an answer needs more than this

If the system came from a real model — prices, mixtures, circuits, flow rates — state the units and confirm the solution makes sense in context. A negative count or a mixture over 100% is a modelling error rather than an algebra error, and no amount of correct substitution will reveal it.

Example line: (1) x + y = 10 · (2) x − y = 2 · from (1), x = 10 − y · into (2): (10 − y) − y = 2 → y = 4 · back into (1): x = 6 · check: 6 + 4 = 10 ✓ and 6 − 4 = 2 ✓.

Common mistakes to avoid

Substituting back into the same equation. Putting the expression into the equation it came from gives 0 = 0 every time and tells you nothing.

Dropping a minus sign in the brackets. Multiplying into (10 − y) affects both terms; this is where most wrong answers begin.

Rounding too early. Carrying 1.57 instead of 11/7 through a back-substitution corrupts the second variable as well.

Forgetting to check. Both original equations must hold. Verifying only one will not catch an error made after the first substitution.

Frequently Asked Questions

What is the substitution method in algebra, and how does it solve a system of equations?

The substitution method solves a system by isolating one variable in one equation and putting that expression into the other equations. Each replacement removes one unknown, so a two-variable linear system collapses to a single equation in one unknown. Solving that equation and back-substituting the value returns the remaining variables, and the answer is reported as an ordered pair such as (6, 4).

How do you solve x + y = 10 and x − y = 2 by substitution?

Isolate x in the first equation to get the expression x = 10 − y. Substitute it into the second equation: (10 − y) − y = 2, which simplifies to 10 − 2y = 2, so the y-value is 4. Back-substitute into x = 10 − y and the x-value comes out as 6. The solution set is the single ordered pair (6, 4), and both original equations check out — a verification worth doing every time.

When should you use the substitution method instead of elimination?

Substitution is fastest when a variable already has a coefficient of 1 or −1, or when one equation is already solved for a variable, because isolating it introduces no fractions. Elimination is usually cleaner when every coefficient is larger than 1, since adding scaled equations avoids messy expressions. Neither is a formula to memorise: both methods return the same result for the same simultaneous equations when the arithmetic is done correctly, and only the number of steps changes.

What does it mean when substitution gives a false statement like 0 = 4?

A contradiction such as 0 = 4 is an equality that can never hold, and it means the system has no solution. The two linear equations describe parallel lines with no intersection, so no pair of values satisfies both at once. If instead the substitution collapses to a true statement such as 0 = 0, the equations describe the same line, every coordinate on it belongs to the solution set, and the system has infinitely many solutions.

Can the substitution method solve three equations in three variables?

Yes. Isolate one variable in the first equation and substitute it into the other two, which leaves a two-variable system. Solve that smaller system by substitution, then back-substitute both values into the isolated expression to recover the third variable. This substitution calculator shows every stage of that calculation, including the constants that survive each step.

Why does this calculator show fractions instead of decimals?

Fractions are exact, while rounded decimals accumulate error and can hide a value such as 11/7 behind 1.57. The calculator works in exact rational arithmetic from the coefficients and constants you enter and displays fractions by default, with a decimal view available when a numerical result is more useful — for reading a coordinate off a graph, for instance.

Before you submit the answer

  • Every equation is in ax + by = c form
  • Missing variables were entered as 0, not left blank
  • Signs were carried through every bracket
  • Exact fractions were used until the last line
  • Both original equations were checked, not just one
  • The answer is written as an ordered pair or triple

Other useful calculators

Disclaimer

This calculator handles systems of linear equations only. Equations containing squares, products of variables, roots, or trigonometric terms are outside its scope, and entering their coefficients will not produce a meaningful result.

Results are computed in exact rational arithmetic from the coefficients you enter, so the answer is only as correct as the standard form you supply. Rearranging an equation incorrectly before entry is the most common cause of an unexpected result.

The working shown is one valid route through the substitution method, not the only one. Where a class, textbook, or marking scheme prescribes a particular order of steps, follow that convention rather than this one.