Allday Education

Equations with Variables on Both Sides

A multi-step equation is a two-step equation with some extra setup in front. You might have to distribute, combine like terms, or deal with a variable that shows up on both sides — like 5x+8=2x+235x + 8 = 2x + 23. None of those moves are new; the trick is knowing what order to do them in.

Here's the good news: every multi-step equation eventually turns into a two-step equation. Your whole job is to clean up the mess until it looks like 3x=153x = 15, and then you already know how to finish. This article gives you the cleanup routine.

The game plan

Step 1: simplify each side by itself. If there are parentheses, distribute. If there are like terms on the same side — like 3x+5+2x3x + 5 + 2x — combine them. Don't move anything across the equals sign yet; just tidy up each side.

Step 2: get the variable on one side only. If the variable appears on both sides, add or subtract a variable term from both sides so it disappears from one of them. In 5x+8=2x+235x + 8 = 2x + 23, subtracting 2x2x from both sides leaves 3x+8=233x + 8 = 23.

Step 3: finish like a two-step equation. Move the constant, then divide by the coefficient. That's it — every multi-step equation is those three phases, and phases 1 and 2 are sometimes not even needed.

Which side should the variable go on?

It genuinely doesn't matter — you'll get the same answer either way. But there's a trick that saves you from negative-coefficient headaches: move the smaller variable term. In 4n+7=6n94n + 7 = 6n - 9, subtract 4n4n (the smaller one) instead of 6n6n. You get 7=2n97 = 2n - 9, and the coefficient on nn stays positive.

Don't be thrown off when the variable ends up on the right side. 16=2n16 = 2n means exactly the same thing as 2n=162n = 16. Solve it the same way and write your answer as n=8n = 8.

Special cases: no solution and infinitely many

Sometimes the variable cancels completely. If you're left with a false statement like 6=16 = -1, the equation has no solution — no value of the variable can ever make it true. If you're left with a true statement like 6=66 = 6, every number works, and the equation has infinitely many solutions.

This isn't a mistake on your part. Equations like 2x+6=2x12x + 6 = 2x - 1 are built this way. When both variable terms vanish, look at what's left and let the statement tell you the answer.

Worked examples

Example 1: combine like terms first

Solve 3x+5+2x=253x + 5 + 2x = 25.

Start with the equation3x+5+2x=253x + 5 + 2x = 25
Combine the like terms 3x3x and 2x2x5x+5=255x + 5 = 25
Subtract 55 from both sides5x=205x = 20
Divide both sides by 55x=4x = 4
Check: 3(4)+5+2(4)=12+5+8=253(4) + 5 + 2(4) = 12 + 5 + 8 = 25

Answer: x=4x = 4

Example 2: variables on both sides

Solve 7x4=2x+267x - 4 = 2x + 26.

Start with the equation7x4=2x+267x - 4 = 2x + 26
Subtract 2x2x from both sides5x4=265x - 4 = 26
Add 44 to both sides5x=305x = 30
Divide both sides by 55x=6x = 6
Check: 7(6)4=387(6) - 4 = 38 and 2(6)+26=382(6) + 26 = 38

Answer: x=6x = 6

Example 3: distribute, then gather the variable

Solve 2(x+4)=3x12(x + 4) = 3x - 1.

Start with the equation2(x+4)=3x12(x + 4) = 3x - 1
Distribute the 222x+8=3x12x + 8 = 3x - 1
Subtract 2x2x from both sides (the smaller term)8=x18 = x - 1
Add 11 to both sides9=x9 = x
Check: 2(9+4)=262(9 + 4) = 26 and 3(9)1=263(9) - 1 = 26

Answer: x=9x = 9

Example 4: the variable cancels

Solve 2x+6=2x12x + 6 = 2x - 1.

Start with the equation2x+6=2x12x + 6 = 2x - 1
Subtract 2x2x from both sides6=16 = -1
That statement is false no matter what xx is

Answer: No solution

Try one yourself

Common questions

Do I always have to distribute first?

If there are parentheses, yes — distribute before anything else, because you can't combine or move terms that are still locked inside parentheses. If there are no parentheses, skip straight to combining like terms or gathering the variable.

What if I move the bigger variable term by mistake?

You'll still get the right answer — you'll just be working with a negative coefficient, like 2n=16-2n = -16. Divide carefully and the signs work out. Moving the smaller term is a convenience, not a rule.

How do I know if the answer is 'no solution' or 'infinitely many'?

Both happen when the variable terms cancel completely. Look at the statement left behind: a false one like 6=16 = -1 means no solution; a true one like 6=66 = 6 means every number is a solution.

Want the video version?

Allday Everyday Math has video lessons, practice, and an AI tutor for every topic, Pre-Algebra through Algebra 2.

Try it for $1