Key Points
- Equations with variables on both sides are linear equations with the unknown on each side of the equals sign, such as .
- Subtracting the smaller variable term from both sides keeps the equation balanced and leaves an ordinary two-step equation.
- The solution is the one input where two expressions give the same output, so and both equal 29 when .
- An equation whose variable terms cancel has no solution when the leftover reads and infinitely many when it reads .
- Multiplying every term on both sides by the least common denominator clears fractions, and multiplying by 100 clears two-place decimals.
A 1,200-year-old word for balancing
Around 1,200 years ago, a scholar in Baghdad gave this exact move a name.
Muhammad ibn Musa al-Khwarizmi titled his book on equations with two words. The MacTutor History of Mathematics archive explains that one of them, al-muqabala, meant "balancing," the cancelling of matching terms that sit on both sides of an equation. That title gave English the word algebra.
Three bags of marbles plus 4 loose marbles balance one bag plus 10 loose ones, and every bag holds the same number. Lift one bag off each pan and the scale stays level, which leaves two bags against 6 extra marbles, so each bag holds 3.
Physicists use the same move to find when one runner catches another, and economists use it to find where two price plans cost the same.

What are equations with variables on both sides?
Equations with variables on both sides are linear equations where the unknown, usually , appears on each side of the equals sign. You solve them by gathering every term on one side. A variable term is a number multiplied by the variable, such as , and that number is its coefficient. A plain number such as 5 is a constant, and terms with the same variable, like and in , are like terms that combine once they share a side.
In 8th grade, Common Core standard 8.EE.C.7 asks your child to solve linear equations in one variable, including ones with fraction or decimal coefficients and ones that need the distributive property. It builds on the two-step equation word problems of 7th grade, where appeared once, as in . Algebra also made up 28 percent of the grade 8 questions on the 2024 National Assessment of Educational Progress (NAEP), more than any other content area, according to the NCES breakdown of NAEP questions.
How do you solve equations with variables on both sides?
Solve them by doing the same thing to both sides until stands alone, starting with the smaller term. That one move turns the problem into a two-step equation, and these are one family of multi-step equations.
- Simplify each side. Use the distributive property to clear parentheses, then combine like terms on the same side.
- Collect the variable terms. Subtract (or add) one term on both sides so that appears on one side only.
- Collect the constants. Undo the plain number on the side with its inverse operation, on both sides.
- Divide both sides by the coefficient of .
- Check the answer in the original equation.
Here are those steps on , one move per line, so every change to the equation is easy to follow.
Subtract from both sides, which undoes adding .
Subtract 5 from both sides.
Divide both sides by 4.
Check.

Either side works, and the answer comes out the same. OpenStax calls choosing the side with the larger coefficient a helpful approach that usually makes the arithmetic easier, since the term stays positive (subtracting instead leaves , still ). A common first instinct is to always move to the left, and Example 2 shows what that habit costs. A 2015 practice guide from the Institute of Education Sciences (IES) recommends that students learn to choose between strategies like these on purpose.
Some classes teach a shortcut called transposing: move a term across the equals sign and change its sign. That is the balance move written faster. Every version of the method meets one limit. When both sides carry the same coefficient, subtracting removes completely, and the leftover line decides the answer.
Why does collecting the x terms work?
Collecting works because each side names the same number, so taking equal amounts from both sides keeps them equal. That rule is the subtraction property of equality, and the balance model pictures it as two pans that stay level when one bag leaves each.
Each side is also a rule that turns an input into an output, and the solution is the one input where the two rules agree.
| Gap (right minus left) | |||
|---|---|---|---|
| 0 | 5 | 21 | 16 |
| 1 | 11 | 23 | 12 |
| 2 | 17 | 25 | 8 |
| 3 | 23 | 27 | 4 |
| 4 | 29 | 29 | 0 |
| 5 | 35 | 31 |
The left side grows by 6 for each step in and the right side grows by 2, so the gap shrinks by every step. A gap of 16 closing 4 at a time closes after steps. That is the arithmetic of in disguise.

A table finds this answer only because it is a whole number. The answer to is , which no whole-number row shows, so collecting is the route that always works, the one behind solving linear equations of every kind. In high school, this tie-finding locates where a line meets a curve.
Try It Yourself
Tap a move to take the same thing off both pans of the balance, and watch the equation under the scale change with each tap. Keep going until one pan holds only bags and the other holds only marbles, then share the marbles equally to find . The Hint button suggests a useful next move if you get stuck.
How do you solve equations with fractions and decimals on both sides?
Clear the fractions or decimals first, then solve as usual. For fractions, multiply every term on both sides by the least common denominator (LCD), the smallest number that every denominator divides into. For decimals, multiply every term by a power of 10, such as 10 or 100, whichever turns the longest decimal into a whole number.
The LCD of 4 and 2 is 4. Multiply every term on both sides by 4, including the 1 and the 2.
Subtract from both sides, then add 4 to both sides.
Check.
Children who are steady with whole numbers often stall at the first fraction, and the LCD step removes that wall before the algebra starts. The plain numbers are the terms that get skipped (they have no denominator to remind anyone).
Examples of equations with variables on both sides
Example 1
Solve .
Subtract from both sides.
Subtract 3 from both sides.
Divide both sides by 3.
Check.
Example 2
Solve .
The tempting move is to carry over to the left and keep its plus sign. That gives , then and .
Checking shows the trouble, since the left side becomes and the right side . Moving a term across the equals sign is really subtracting it from both sides, so its sign has to change.
The correct method starts on the side with the larger coefficient. Subtract from both sides.
Subtract 13 from both sides.
Divide both sides by 5.
Check.
Example 3
Solve .
Distribute the 4 to both terms inside the parentheses.
Subtract from both sides.
Add 12 to both sides.
Divide both sides by 3.
Check.
Example 4
Solve .
The LCD of 3 and 6 is 6. Multiply every term on both sides by 6.
Subtract from both sides, then subtract 24 from both sides.
Divide both sides by 3.
Check.
Example 5
Solve .
The longest decimal has two places, so multiply every term on both sides by 100.
Subtract from both sides, then subtract 150 from both sides.
Divide both sides by 15.
Check.
Example 6
Maya has $45 and saves $6 each week. Diego has $93 and saves $2 each week. After how many weeks will they have the same amount?
Let stand for the number of weeks.
| Words in the problem | Math it means |
|---|---|
| Maya has $45 | a starting amount of 45 |
| saves $6 each week | added to Maya's amount |
| Diego has $93 and saves $2 each week | |
| the same amount | |
| after how many weeks | solve for |
Subtract from both sides, then subtract 45 from both sides.
Divide both sides by 4.
After 12 weeks, each of them has $117.
The reason x lands on both sides
An equation gets an on each side whenever two amounts growing at different speeds are set equal, and solving it finds the moment they match. Without the method, you would be stuck guessing or filling in a table row by row.
- Two savers. Maya and Diego in Example 6 start $48 apart and close the gap by $4 a week.
- Two phone plans. A plan at $20 a month plus $0.10 per text matches one at $5 plus $0.25 per text when , which gives texts ($30 each).
- Two runners. A walker with a 300-meter head start at 80 meters per minute meets a runner at 140 meters per minute when , after 5 minutes.
Each story is the same move: set the two amounts equal, then subtract the part both sides share. Later this year, systems of equations word problems turn stories like these into pairs of equations with two unknowns.
What most guides miss about equations with variables on both sides
The last line matters as much as the steps, because when the terms cancel, the line that is left tells you how many solutions there are. The Common Core wording lists three possible endings: , , or , where and are different numbers.
| Ending | Example | What it means |
|---|---|---|
| gives | one solution, the number zero | |
| A true statement | gives | every number works |
| A false statement | gives | no number works |
This distinction is genuinely confusing, because and look almost alike. The first is a real answer, since both sides of equal 7 when is 0. A line like says nothing about at all, so every number passes.
Where do equations with variables on both sides go wrong?
Mistake 1: Removing an x term from one side only
Where it slips in: Step 2, the first collecting move. Children often cross out the matching term, and crossing out feels like a one-side action.
Don't do this: In , crossing out on the right gives and .
The correct way: Subtract from both sides to get , then and . As a check, and . Writing the subtraction under both sides every time fixes the habit.
Mistake 2: Losing the negative sign on the coefficient
Where it slips in: Collecting on the side with the smaller coefficient, which leaves a negative term. Children tend to read the 4 and the 20 as the real numbers and the minus signs as decoration.
Don't do this: In , subtracting gives , then , and dividing by 4 instead of gives .
The correct way: Divide both sides by , and a negative divided by a negative is positive, so . Collecting on the right instead gives with no negatives at all. As a check, and .

Mistake 3: Distributing a negative to the first term only
Where it slips in: Any equation with a minus sign in front of parentheses. The touches the first, and the second term inside feels too far away to need it.
Don't do this: In , writing gives and . The check fails, because while .
The correct way: Multiply both terms inside by , so . Then , so and . As a check, and .
Key Takeaways
- The answer to an equation with on both sides is the single input that makes two different expressions produce the same output.
- Once each side is simplified, one subtraction of an term from both sides leaves the two-step kind from 7th grade, unless the terms cancel.
- Fractions and decimals clear only when every term on both sides gets multiplied, including the plain numbers.
- If the terms vanish, a true leftover such as means every number works and a false one such as means none does.
- For more practice catching a dropped negative in equations with variables on both sides, explore Bhanzu's 8th grade math tutor or algebra classes.
Read More
- Two Step Equations
- Solving an Equation
- Linear Equations
- Number of Solutions to Systems of Equations
- Division Property of Equality
Research Behind This Article
- J J O'Connor and E F Robertson, MacTutor History of Mathematics, Abu Ja'far Muhammad ibn Musa Al-Khwarizmi (1999). mathshistory.st-andrews.ac.uk
- Common Core State Standards Initiative, Grade 8 Expressions and Equations (2010). thecorestandards.org
- National Center for Education Statistics, NAEP Mathematics: Distribution of Mathematics Questions, 2024 (2026). nces.ed.gov
- OpenStax, Elementary Algebra 2e, 2.3 Solve Equations with Variables and Constants on Both Sides (2020). openstax.org
- Institute of Education Sciences, What Works Clearinghouse, Teaching Strategies for Improving Algebra Knowledge in Middle and High School Students (2015). ies.ed.gov
- OpenStax, Elementary Algebra 2e, 2.5 Solve Equations with Fractions or Decimals (2020). openstax.org
Quick Quiz: Check Yourself
Three levels, new numbers every time: solve a two-sided equation, solve one with parentheses or a negative answer, then find the week when two savers have the same amount.
Was this article helpful?
Your feedback helps us write better content
Frequently Asked Questions
How do you solve equations with constants on both sides?
My child can solve but gets stuck on equations with variables on both sides. Why?
Is solving equations with two variables the same skill?
Does it matter which side I collect the variables on?
How can I help my child with solving equations with variables on both sides at home?
Can you solve variables on both sides with fractions without clearing them?




