Pre-Algebra • Expressions, Equations & Inequalities

Equations with Variables on Both Sides — I can solve equations with variables on both sides at my level and explain why the solution works.

Learn how to gather variables on one side, solve step by step, and prove your answer is correct.

Middle School Math emblem with sigma notation, geometric shapes, and a ruler.
Inside this lesson 10 sections 5 questions 7 figures

SECTION 1

Where Did These Equations Come From?

People have been solving equations for thousands of years. Long before calculators existed, ancient mathematicians needed to figure out unknown numbers. They often ran into problems where the unknown value showed up on both sides of a balance. Let's see how this idea developed over time.

~1800 BCE • Babylonian Clay Tablets

Ancient Babylonians carved math problems onto clay tablets. Some of their problems were like puzzles with unknowns on both sides, even though they didn't use letters like x yet.

~250 CE • Diophantus Uses Symbols

A Greek mathematician named Diophantus started using short symbols instead of full words. This made it much faster to write and solve equations.

~820 CE • Al-Khwarizmi Writes the First Algebra Book

A scholar named al-Khwarizmi described how to move terms from one side of an equation to the other. The word "algebra" actually comes from his book title!

1600s • Letters Replace Words

Mathematicians in Europe began using letters like x and y to stand for unknowns. This is the style we still use today.

So here's the big question this lesson answers: when the same variable appears on both sides of the equals sign, how do you figure out what it equals? That's exactly what you'll learn here.

SECTION 2

Core Principles & Definitions

Before we dive into solving, let's lock down the key ideas. An equation is a math sentence that says two expressions are equal. When we see something like 3x + 5 = 2x + 12, the variable x appears on the left side AND the right side. Our goal is to get x all by itself.

1

Balance Rule

An equation is like a balanced scale. Whatever you do to one side, you must do to the other side to keep it balanced.
2

Collect the Variable

Move all variable terms (terms with x) to one side by adding or subtracting.
3

Isolate the Variable

Move all number-only terms (constants) to the other side. Then divide or multiply to get the variable alone.
4

Check Your Answer

Plug your answer back into the original equation. If both sides equal the same number, your solution is correct!
✦

KEY TAKEAWAY

Think of an equation like a seesaw at a playground. Both sides must weigh the same to stay level. If you add a rock to one side, you need to add the same rock to the other side. That's exactly how solving equations works: do the same thing to both sides every single time.

SECTION 3

Seeing the Balance

The diagram below shows how we solve 3x + 2 = x + 8 step by step. Picture a balance scale: whatever sits on the left must equal whatever sits on the right.

Solving 3x + 2 = x + 8 — Balance Scale ViewSTEP 0: Original3x + 2=x + 8STEP 1: Subtract x from both sides3x − x + 2=x − x + 82x + 2=8STEP 2: Subtract 2 from both sides2x + 2 − 2=8 − 22x=6STEP 3: Divide both sides by 22x ÷ 2=6 ÷ 2x = 3
Each colored step shows one operation done to both sides of the equation. The variable terms move left, the constants move right, and we finish by dividing.

Notice the pattern: first we moved the variable terms to one side. Then we moved the constants (plain numbers) to the other side. Finally we divided to get the variable alone. This three-move pattern works for most equations with variables on both sides.

SECTION 4

The Step-by-Step Method

Here is the general strategy you can follow every time you see variables on both sides. We will use the equation ax + b = cx + d where a, b, c, and d are numbers.

STEP 1 — COLLECT VARIABLES

ax+b−cx=cx+d−cx→(a−c)x+b=dax + b − cx = cx + d − cx → (a − c)x + b = d

Subtract cx from both sides so the variable x only appears on the left.

STEP 2 — MOVE CONSTANTS

(a−c)x+b−b=d−b→(a−c)x=d−b(a − c)x + b − b = d − b → (a − c)x = d − b

Subtract b from both sides so only the variable term is left on the left.

STEP 3 — ISOLATE THE VARIABLE

x=(d−b)÷(a−c)x = (d − b) ÷ (a − c)

Divide both sides by the coefficient of x (the number in front of x). Now x is alone!

💡

Remember the Check!

After you find your answer, always substitute it back into the original equation. If the left side equals the right side, you solved it correctly. This proves your answer works.

SECTION 5

Special Cases & Tricky Situations

Most of the time you will find one answer. But sometimes strange things happen. There are three possible outcomes when you solve an equation with variables on both sides.

Three Possible OutcomesONE SOLUTION3x + 2 = x + 8Subtract x:2x + 2 = 8Subtract 2:2x = 6Divide by 2:x = 3 ✓You get a singlenumber for x.MOST COMMONNO SOLUTION2x + 5 = 2x + 9Subtract 2x:5 = 9FALSE! ✗5 never equals 9.No number makesthis equation true.CONTRADICTIONALL NUMBERS2x + 6 = 2(x + 3)Distribute:2x + 6 = 2x + 6Subtract 2x:6 = 6 ✓Always true!Every number works.IDENTITY
This diagram shows the three possible outcomes. One solution is the most common result. A contradiction means no value works. An identity means every value works.

In this lesson, we will mostly see the first type — equations with one solution. But it's good to know the other two exist so you won't be confused if you ever end up with something like 5 = 9 or 6 = 6.

SECTION 6

Worked Example: Solving and Checking

Let's solve a full problem from start to finish and then prove our answer is right.

Solve: 5x − 3 = 2x + 9

  1. 1

    Step 1 — Identify Variables on Both Sides

    We see 5x on the left and 2x on the right. We need to move one of them.
  2. 2

    Step 2 — Subtract 2x from Both Sides

    Subtract 2x from both sides to collect the variable on the left: 5x − 2x − 3 = 2x − 2x + 9.
    3x − 3 = 9
  3. 3

    Step 3 — Add 3 to Both Sides

    Move the constant −3 by adding 3 to both sides: 3x − 3 + 3 = 9 + 3.
    3x = 12
  4. 4

    Step 4 — Divide Both Sides by 3

    The coefficient of x is 3, so divide both sides by 3: 3x ÷ 3 = 12 ÷ 3.
    x = 4
  5. 5

    Step 5 — Check the Answer

    Substitute x = 4 into the original equation. Left side: 5(4) − 3 = 20 − 3 = 17. Right side: 2(4) + 9 = 8 + 9 = 17. Both sides equal 17, so our answer is correct!
    17 = 17 ✓ Confirmed!
ℹ

Why Does Checking Work?

When you plug your answer back in and both sides match, you are showing that your value of x makes the equation a true statement. That's what "solving" really means — finding the number that makes both sides equal.

SECTION 7

Common Mistakes & Helpful Tips

Even strong math students make mistakes on these equations. Here are the most common errors and how to avoid them.

Common MistakeWhy It's WrongWhat to Do Instead
Forgetting to do the same operation to both sidesThe equation becomes unbalanced, like taking weight off only one side of a seesaw.Write the same operation on both sides every time. No shortcuts!
Subtracting the wrong variable termYou might end up with a negative coefficient, which can cause sign errors.Subtract the smaller variable term so the coefficient stays positive.
Mixing up signs (positive/negative)A wrong sign changes your whole answer.Rewrite subtraction as adding a negative. Double-check each sign.
Skipping the check stepYou won't catch your own errors.Always plug your answer back into the original equation.

Watch out for these pitfalls!

💡

HELPFUL TIP

When you choose which variable term to move, pick the smaller one. For example, in 5x + 1 = 2x + 7, subtract 2x (not 5x). This keeps the coefficient positive and makes the rest of the work easier. Think of it like carrying the lighter bag — same result, less effort!

SECTION 8

Connecting to What's Next

The skills you build here set you up for bigger topics in Algebra 1 and beyond. The same "do the same thing to both sides" rule works for much harder problems.

What You Learn NowWhat It Leads To
Solving equations with variables on both sidesSolving multi-step equations with parentheses and fractions
Checking your answer by substitutingVerifying solutions in inequalities and systems of equations
Recognizing "no solution" and "all solutions"Understanding parallel lines and overlapping lines in graphing
Moving terms from side to sideRearranging formulas in science (like d = rt or F = ma)

From pre-algebra to algebra and science

In Algebra 1, you will solve equations that also have parentheses and fractions. The good news? The steps are almost the same. You just add a step at the beginning to simplify each side first. Master today's skill, and those future problems will feel much easier.

SECTION 9

Practice Problems

Try these five problems on your own. They start easy and get harder. Remember the steps: collect variables, move constants, divide, and check!

Question 1: CONCEPTUAL

In the equation 4x + 3 = 2x + 11, what is the first thing you should do to start solving? Explain your reasoning.
Show answer
You should subtract 2x from both sides. This moves the variable term from the right side to the left side. After subtracting, you get 2x + 3 = 11. We pick 2x (the smaller variable term) to keep the coefficient positive and make the problem easier. The balance rule tells us we must do the same thing to both sides so the equation stays true.

Question 2: BASIC CALCULATION

Solve for x: 6x + 1 = 4x + 9
Show answer
Subtract 4x from both sides: 2x + 1 = 9. Subtract 1 from both sides: 2x = 8. Divide both sides by 2: x = 4. Check: Left side = 6(4) + 1 = 25. Right side = 4(4) + 9 = 25. Both sides equal 25, so x = 4 is correct.

Question 3: INTERMEDIATE

Solve for x: 7x − 10 = 3x + 14
Show answer
Subtract 3x from both sides: 4x − 10 = 14. Add 10 to both sides: 4x = 24. Divide both sides by 4: x = 6. Check: Left side = 7(6) − 10 = 42 − 10 = 32. Right side = 3(6) + 14 = 18 + 14 = 32. Both sides equal 32, confirming x = 6.

Question 4: APPLIED

Two friends are saving money. Mia has $25 and saves $8 per week. Leo has $55 and saves $5 per week. After how many weeks will they have the same amount? Set up an equation with variables on both sides and solve it.
Show answer
Mia's total after w weeks: 25 + 8w. Leo's total after w weeks: 55 + 5w. Set them equal: 25 + 8w = 55 + 5w. Subtract 5w from both sides: 25 + 3w = 55. Subtract 25 from both sides: 3w = 30. Divide both sides by 3: w = 10. After 10 weeks, both will have 25 + 8(10) = $105. Check Leo: 55 + 5(10) = $105. They match!

Question 5: CRITICAL THINKING

Look at the equation 3(x + 4) = 3x + 12. First simplify the left side. Then try to solve. What happens, and what does it mean?
Show answer
Distribute on the left: 3x + 12 = 3x + 12. Subtract 3x from both sides: 12 = 12. This is always true no matter what x is! This equation is called an identity. It means every number is a solution. The two sides are really the same expression written differently. Whenever you simplify and get a true statement with no variable left (like 12 = 12), the equation has infinitely many solutions.

SUMMARY

Lesson Summary

Summary

When an equation has variables on both sides, use the balance rule to move all variable terms to one side and all constants to the other side. First, subtract the smaller variable term from both sides. Next, move the constant to the opposite side. Finally, divide by the coefficient to isolate the variable.

Always check your answer by substituting it back into the original equation. If both sides are equal, your solution is confirmed. Remember that some equations have no solution (you get a false statement like 5 = 9) and some are identities where every number works (you get a true statement like 6 = 6). These skills are the foundation for all the algebra you'll learn next.

Varsity Tutors • Pre-Algebra • Equations with Variables on Both Sides