Equations with variables on both sides

When x is on both sides, like 5x + 4 = 2x + 19, first move the x terms to one side. Then solve as usual.

The idea: gather the x terms

In 5x + 4 = 2x + 19, there are x terms on both sides. Subtract 2x from both sides so all the x terms are on the left: 3x + 4 = 19.

Now it is a two-step equation. Subtract 4 and divide by 3: x = 5. Moving the smaller x term keeps the coefficient positive, which avoids sign slips.

See it: pictures to draw with your child

Copy these onto paper or a whiteboard. A quick sketch makes the idea concrete before any written method.

xxxxxx
4x + 1 = 2x + 9: take 2 bags off both sides, then 1 block. 2x = 8, so x = 4.
5x + 4 = 2x + 193x + 4 = 193x = 15x = 5
Subtract 2x, subtract 4, divide by 3.
2x + 1 = 2x + 51 = 5no solution
When the x terms cancel and the numbers differ, there is no solution.

One solution, none or infinitely many

Usually there is one solution, like x = 5. But sometimes the x terms cancel completely.

If they cancel and leave something false, like 4 = 9, there is no solution. If they cancel and leave something true, like 4 = 4, every number works: infinitely many solutions.

For example, 2x + 1 = 2x + 5 has no solution, but 3(x + 1) = 3x + 3 is true for every x.

Try both sides

Try 2x + 1 = 2x + 5 and 3(x + 1) = 3x + 3 to see the special cases.

Seeing it on a balance

With small numbers, x on both sides is easy to picture. In 4x + 1 = 2x + 9, there are 4 bags on the left and 2 on the right. Take 2 bags off both sides: 2x + 1 = 9.

Then take 1 block off both sides and share the rest: x = 4. Try it on the balance scale.

Key words

Tip: move the smaller x term

In 5x + 2 = 3x + 10, you could subtract 5x or 3x from both sides. Subtracting 3x leaves 2x on the left, which stays positive.

Moving the smaller x term avoids negative coefficients. Fewer negatives means fewer sign slips.

Both choices give the same answer, so this is about comfort, not rules. Let children try both ways once to see it for themselves.

Real-life comparisons

Equations with x on both sides answer “when are two things equal?” Two phone plans, two gym memberships, or two savers with different starts.

Sam has $30 and saves $5 a week. Lee has $50 and saves $3 a week. 30 + 5w = 50 + 3w gives 2w = 20, so after 10 weeks they have the same.

Ask your child who is ahead before and after week 10. That question makes the answer mean something.

Special cases: no solution and every number

Sometimes the x terms cancel completely. In 2x + 5 = 2x + 9, subtracting 2x leaves 5 = 9, which is false, so there is no solution.

In 3(x + 2) = 3x + 6, subtracting 3x leaves 6 = 6, which is always true. Every number is a solution.

These cases are part of grade 8 (8.EE.C.7a). The equation solver reports them clearly.

Quiz: variables on both sides

Move the x terms to one side, then solve.

Where this fits: equations step by step

  1. What is an equation
  2. Variables
  3. Algebraic expressions
  4. Evaluating expressions
  5. Writing expressions
  6. Inverse operations
  7. One-step equations
  8. Combining like terms
  9. Distributive property with variables
  10. Two-step equations
  11. Equations with fractions and decimals
  12. Solving inequalities
  13. Multi-step equations
  14. Variables on both sides (this page)
  15. Systems of equations
  16. Equation word problems

What to say to your child

A short script for teaching it the first time. Pause after each line and let your child do the next step.

  1. “Where are the x terms in 5x + 4 = 2x + 19?” (On both sides.)
  2. “Which is smaller, 5x or 2x?” (2x.)
  3. “Subtract 2x from both sides.” (3x + 4 = 19.)
  4. “Now solve.” (x = 5.)
  5. “Check: 5 × 5 + 4 and 2 × 5 + 19?” (Both 29.)

More worked examples

Example 1: move x

7x − 3 = 4x + 9. Subtract 4x: 3x − 3 = 9. Add 3: 3x = 12, so x = 4.

Example 2: x bigger on the right

x + 10 = 3x + 2. Subtract x: 10 = 2x + 2. So 2x = 8 and x = 4.

Example 3: no solution

3x + 2 = 3x − 1. Subtract 3x: 2 = −1, which is false. No solution.

Example 4: infinitely many

2(x + 4) = 2x + 8. Multiply out: 2x + 8 = 2x + 8. Every x works.

Practice questions (answers below)

Ask these out loud or write them down. Check each answer, and ask “how did you get that?” for one or two.

  1. 6x + 1 = 4x + 9
  2. 5x − 2 = 3x + 8
  3. x + 7 = 3x − 1
  4. 8x = 5x + 12
  5. 4x − 6 = x + 9
  6. 2x + 3 = 2x + 7
  7. 3(x − 1) = 3x − 3
  8. 9 − x = x + 1
  9. 2x − 5 = 5x + 7
  10. Stretch: 3(2x − 1) = 2(x + 4) + 1
Show the answers
  1. 4
  2. 5
  3. 4
  4. 4
  5. 5
  6. No solution
  7. Infinitely many
  8. 4
  9. −4
  10. 3

Common mistakes

Adding the x termsTurns 5x + 4 = 2x + 19 into 7x + 4 = 19.Fix: subtract 2x from both sides, giving 3x.
Moving a term without changing its signMoves +2x across and keeps it as +2x.Fix: do the same to both sides: subtracting 2x removes it from the right.
Calling 0 = 0 “x = 0”Thinks 0 = 0 means the answer is 0.Fix: 0 = 0 is always true, so there are infinitely many solutions.

How to teach it at home

Two-sided balance

Act out 3x + 2 = x + 8 with cups and coins on both sides of a hanger.

Phone plans

Plan A costs $20 plus $5 a month. Plan B costs $9 a month. When do they cost the same? Solve 5m + 20 = 9m: m = 5 months.

Special cases

Make up equations with no solution and with infinitely many, then swap and spot them.

By grade

Worksheets and practice

Last reviewed

Questions parents ask

How do you solve equations with variables on both sides?

Subtract the smaller x term from both sides, then solve the two-step equation that is left.

What does no solution mean?

No number makes the equation true. The x terms cancel and leave something false, like 1 = 5.

What does infinitely many solutions mean?

Every number works. The x terms cancel and leave something true, like 8 = 8.

Which x term should you move?

Usually the smaller one, so the x term left over is positive.

What grade learns variables on both sides?

Grade 8 under Common Core 8.EE.C.7. In India, class 8.