On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Algebra Fundamentals · Grade 6-8

Substitution

Substitution replaces a variable (or sub-expression) with something equal to it everywhere it appears — if y=2x, you can write 2x wherever y shows up.

If y=g(x), then f(y)=f(g(x))

Quick Answer

Substitution replaces a variable (or sub-expression) with something equal to it everywhere it appears — if y=2x, you can write 2x wherever y shows up. Use it when one fact tells you what a variable equals and another statement still contains that variable: two equations about the same two unknowns, or a formula you want in terms of a different quantity. Swapping in the equal expression, wrapped in parentheses, removes a variable, so a two-unknown problem becomes a one-unknown problem you can solve.

Why This Matters

Real problems usually come with more than one unknown: the prices of two items, the lengths of two sides. Substitution trades one unknown for an expression in the other, so two equations become one equation you already know how to solve. Without it you can only guess pairs of values; with careless parentheses, you solve the wrong equation and get an answer that fails the original.

Intuitive Explanation

A sandwich costs $3 more than a drink, and together they cost $11. Call the drink d and the sandwich s: you know s=d+3 and s+d=11. Since s and d+3 are the same amount, you may write d+3 wherever s appears. The second equation becomes (d+3)+d=11, which has only one unknown: 2d=8, so d=4, and the sandwich costs $7.

The rule is that equals may replace equals, and two habits keep it safe. Replace every copy of the variable, not just the first one you see. And wrap the replacement in parentheses, because it must act as one unit: if y=x+3, then 2y becomes 2(x+3)=2x+6, not 2x+3.

Evaluation looks the same but is a special case: there you replace a letter with a number, as when 2x at x=3 gives 6, and the result is a value. In substitution the replacement is often another expression, and the result is a new equation or expression that still contains variables. Elimination is the other common method for systems: instead of replacing a variable, you add or subtract whole equations so that one variable cancels. Substitution is quickest when one equation already reads 'y=…' or 'x=…'.

Think of it like this. Substitution resembles sending on a substitute player: the replacement takes the exact position the starter left, and the rules of the game don't change. The algebra version is stricter, since the substitute must be exactly equal to what it replaces, and it goes on as one whole unit, which is why it goes in parentheses.

Core idea. Substitution replaces every occurrence of a variable with an equal value or expression.


When to Use

Substitute when one equation already isolates a variable, like y=2x or x=5−y, and another equation contains that same variable. It is the natural method for a system in which one equation is solved for a variable, and for rewriting a formula in terms of another quantity. If both equations look like ax+by=c with matching or opposite coefficients, elimination is often faster. If the replacement is a plain number and nothing is left to solve, you are evaluating.

Tip. Ask: Am I replacing a variable with an EQUAL expression everywhere it appears?

How to Recognize It

Before you swap anything in, check that one statement tells you exactly what a letter equals and that the letter still appears somewhere else.

  1. Does one equation already have a letter on its own, such as y=3x−2 or x=10−y?

    If yes, that equation hands you a ready replacement. If neither equation has a lone letter and the coefficients line up, as in 2x+3y=12 and 2x−y=4, elimination is usually quicker.

  2. Is the thing replacing the letter an expression with letters in it, rather than a single number?

    If it has letters, the result is a new expression or equation with one letter fewer. If it is a plain number and only arithmetic remains, you are evaluating.

  3. Is the letter being replaced multiplied by something, raised to a power or subtracted?

    If yes, the brackets matter most: replacing y with x−4 in 5−y gives 5−(x−4)=9−x. Leaving out the brackets gives 5−x−4=1−x, which is wrong.

  4. Does the letter appear more than once in the expression you are rewriting?

    If yes, replace every copy in the same step: with x=2t, the expression x2+3x becomes 4t2+6t. Leaving one copy behind mixes two letters that no longer match.

Substitution compared with Evaluation, Elimination, and Simplifying

Substitution, evaluation, elimination and simplifying all change how an expression or system looks without changing what it means. Ask whether you are swapping in an equal expression, plugging in a number, combining whole equations, or tidying one expression.

Substitution

Meaning
Use this when a stated equality lets you replace a variable with an equal expression to reduce or combine a problem.
Key test
Am I replacing a variable with an EQUAL expression everywhere it appears?
Formula
If y=g(x), then f(y)=f(g(x))
Example
Given y=2x and x+y=9, find x and y.

Evaluation

Meaning
Substitutes specific NUMBERS for variables to compute a value.
Key test
Use when the replacement is a number and you want the result.
Formula
2x+1 at x=3 is 7
Example
Compute one value

Elimination

Meaning
Solves a system by adding/subtracting equations to cancel a variable.
Key test
Use when lining up coefficients is easier than isolating a variable.
Example
Add equations to cancel y

Simplifying

Meaning
Combines like terms within one expression, no swap-in.
Key test
Use when tidying, not replacing variables.
Example
2x+x=3x

Formula & Notation

If y=g(x), then f(y)=f(g(x))
If y=g(x), then for any expression f(y), the substitution y↦g(x) yields f(g(x)). Formally, this is function composition: (f∘g)(x)=f(g(x)).

How to read it: Substitution is written 'let y=…' or 'substitute y=… into.' Parentheses around the substituted expression are essential.

Worked Examples

Example 1 — Substitute into a system

Easy

Given y=2x and x+y=9, find x and y.
Show the steps and the answer
  1. Replace y with 2x in the second equation: x+(2x)=9.

    The first equation says y and 2x are the same amount, so the swap keeps the second equation true and leaves one unknown.

  2. Combine like terms: 3x=9, so x=3.

    x+2x is three copies of x; dividing both sides by 3 isolates it.

  3. Find y from the first equation: y=2(3)=6.

    The equation that already gives y directly is the shortest route.

  4. Check both equations: 6=2⋅3 and 3+6=9.

    A solution to a system must satisfy every equation, not just the one used last.

Answer: x=3, y=6

Takeaway: When one equation says what y equals, put that expression into the other equation to get a single unknown.

Example 2 — Just compute a number

Standard

Evaluate 2x at x=3.
Show the steps and the answer
  1. Replace x with the number 3: 2(3).

    Substituting a number is evaluation: the expression stays the same and only the input is filled in.

  2. Compute: 2×3=6.

    With no letters left, the expression is plain arithmetic and gives one value.

  3. Compare with the system above: there, 2x went in for y, and a new equation, 3x=9, still had to be solved.

    Substituting an expression creates a new equation; substituting a number finishes with a value.

Answer: 6

Takeaway: Putting a number in place of a letter is evaluation and ends with a number; putting an expression in usually leaves an equation to solve.

Example 3 — Find the mistake: dropping the parentheses

Application

Given y=x+3 and 2y+x=18, Mia writes: "2x+3+x=18, so 3x=15 and x=5." Find the mistake and correct it.
Show the steps and the answer
  1. Test Mia's answer: x=5 gives y=8, and 2(8)+5=21, not 18.

    Her pair fails the second equation, so something went wrong in the swap.

  2. Find the error: she replaced y with x+3 without parentheses, so only the x got doubled.

    2y means 2 times all of y, so it must become 2(x+3).

  3. Redo it: 2(x+3)+x=18 gives 2x+6+x=18, so 3x=12 and x=4.

    Distributing the 2 over both terms gives +6, not +3.

  4. Find y and check: y=4+3=7, and 2(7)+4=18.

    Both equations are satisfied.

Answer: x=4, y=7

Takeaway: Wrap every substituted expression in parentheses before you distribute or combine anything.

Where You'll See It

  • Finding when two phone plans cost the same

    Plan A costs C=30+5g dollars and Plan B C=10+10g for g gigabytes. Substituting the first expression for C in the second equation gives 30+5g=10+10g, so g=4: at 4 GB both cost $50, and above that Plan A is cheaper.

  • Rewriting a formula for what you can measure

    It is easier to measure a pipe's diameter than its radius. Substituting r=d2 into A=πr2 gives A=πd24, so a 10 cm opening has area 100π4≈78.5 cm².

  • Counting ticket sales

    A school sold 200 tickets, adults at $8 and students at $5, for $1,240. Using a=200−s, substitution gives 8(200−s)+5s=1240, so 1600−3s=1240 and s=120: 120 student tickets and 80 adult tickets.

Common Mistakes

  1. The slip: Dropping parentheses around the substituted expression

    Instead: wrap it so grouping survives.

  2. The slip: Replacing only some occurrences of the variable

    Instead: substitute every occurrence consistently.

  3. The slip: Substituting a value when the variable is still unknown

    Instead: solve for it first, then substitute.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. If y=x+4, rewrite 3y−2 in terms of x and simplify.

    Hint: Replace y with the whole expression (x+4).

  2. Solve the system y=3x and x+y=20.

    Hint: Put 3x in place of y in the second equation.

  3. Solve the system y=x−2 and 2x+3y=19.

    Hint: Replace y with (x−2) and keep the brackets.

  4. A rectangle's area is A=lw, and its length is l=w+3. Write A in terms of w only, then find A when w=5.

    Hint: Swap l for (w+3) in the area formula.

  5. System 1: y=4x−1 and 2x+y=11. System 2: 3x+2y=12 and 5x−2y=4. Which is quicker by substitution, and which by elimination? Solve System 1.

    Hint: Look for a variable already alone, or terms that cancel when you add.

  6. With y=x+2, a student rewrites 5−y as 5−x+2 and gets 7−x. Correct the work.

    Hint: The minus sign applies to all of y.

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Why does substitution work at all?

Because equal things can always stand in for each other. If y=2x+1y = 2x + 1 is true, then yy and 2x+12x + 1 are two names for the same number, so any true statement about yy stays true when you write 2x+12x + 1 in its place. It is like calling a friend by a nickname: the person, and everything true about them, stays the same.

Which letter should I substitute for?

Pick the letter that is easiest to get on its own, ideally one with coefficient 1 or −1-1, to avoid fractions. In 4x+y=94x + y = 9 and 3x−2y=43x - 2y = 4, take y=9−4xy = 9 - 4x from the first equation; then 3x−2(9−4x)=43x - 2(9 - 4x) = 4 gives 11x=2211x = 22, so x=2x = 2 and y=1y = 1. Isolating xx instead also works, but brings in fractions.

Can I substitute for a whole chunk instead of one letter?

Yes, and it can save a lot of work. In (x+3)2−5(x+3)+6=0(x + 3)^2 - 5(x + 3) + 6 = 0, let u=x+3u = x + 3. The equation becomes u2−5u+6=0u^2 - 5u + 6 = 0, so u=2u = 2 or u=3u = 3, which means x=−1x = -1 or x=0x = 0. The trick works whenever the same chunk appears several times; just remember to turn uu back into xx at the end.

Learning Path

← Before

EquationsEqual
Substitution

You are here

You need Equations (statements that two sides are equal) and Equal (equal amounts can stand in for each other) first. Substitution adds a way to use one equation inside another, cutting the number of unknowns. It leads straight to Systems of Equations, where substituting turns two equations in two unknowns into one equation you can solve.

See Also