Written and reviewed byMuhammad ShahidHow we verify calculations
Solving Equations With Variables on Both Sides
When the unknown appears on both sides of the equals sign, you move every variable term to one side first. Below: the method, 7 worked examples with each step written out, and the mistakes that cost points. You can also paste any of these into the equation solver and watch it run the same steps.
What variables on both sides look like
An equation like 5x - 4 = 3x + 8 has x on the left and x on the right. You cannot divide by x to finish, and you cannot subtract 4 and be done. The unknown has to gather on one side before the arithmetic works.
The same rule covers other letters. 26 - 14d = 2(5 + d) has d on both sides with parentheses to expand first. Both follow the same four steps.
The 4-step method
Step 1: Expand parentheses
If either side has parentheses, distribute first. 2(5 + d) becomes 10 + 2d.
Step 2: Move the variable terms to one side
Add or subtract the smaller variable term from both sides. In 4x + 1 = 2x + 9, subtract 2x so the coefficient stays positive.
Step 3: Collect numbers and divide
Move the constants to the other side, combine like terms, then divide both sides by the coefficient.
Step 4: Check by substitution
Put the answer back into the original equation. Both sides must match.
Worked examples
Seven problems, ordered from plain integer equations to decimals, parentheses, and a fraction. Every step is written out, so you can read the answer without entering anything.
5x - 4 = 3x + 8
Subtract 3x from both sides: 2x - 4 = 8
Add 4 to both sides: 2x = 12
Divide both sides by 2: x = 6
x = 6
Check: 5(6) - 4 = 26 and 3(6) + 8 = 26
x + 5 = 2x - 3
Subtract x from both sides: 5 = x - 3
Add 3 to both sides: 8 = x
x = 8
Check: 8 + 5 = 13 and 2(8) - 3 = 13
4x + 1 = 2x + 9
Subtract 2x from both sides: 2x + 1 = 9
Subtract 1 from both sides: 2x = 8
Divide both sides by 2: x = 4
x = 4
Check: 4(4) + 1 = 17 and 2(4) + 9 = 17
7x + 10 = 10x - 5
Subtract 7x from both sides: 10 = 3x - 5
Add 5 to both sides: 15 = 3x
Divide both sides by 3: x = 5
x = 5
Check: 7(5) + 10 = 45 and 10(5) - 5 = 45
0.5x - 4 = 8 - x
Add x to both sides: 1.5x - 4 = 8
Add 4 to both sides: 1.5x = 12
Divide both sides by 1.5: x = 8
x = 8
Check: 0.5(8) - 4 = 0 and 8 - 8 = 0
26 - 14d = 2(5 + d)
Distribute on the right: 26 - 14d = 10 + 2d
Add 14d to both sides, then subtract 10: 16 = 16d
Divide both sides by 16: d = 1
d = 1
Check: 26 - 14(1) = 12 and 2(5 + 1) = 12
3x + 2 = x/2 + 7
Multiply every term by 2: 6x + 4 = x + 14
Subtract x from both sides: 5x + 4 = 14
Subtract 4 from both sides: 5x = 10
Divide both sides by 5: x = 2
x = 2
Check: 3(2) + 2 = 8 and 2/2 + 7 = 8
Paste any of these into the free equation solver and it expands, rearranges, and verifies the answer in one click.
Common mistakes
Subtracting from only one side
Every move hits both sides. Subtracting 3x from the left of 5x - 4 = 3x + 8 and forgetting the right side breaks the equation.
Sign errors when terms jump the equals sign
Moving -4 across the equals sign makes it +4. Write the sign change under the term as you move it.
Dividing by the variable
Dividing both sides by x throws away solutions. Move the variable terms with addition or subtraction instead.
Frequently Asked Questions
What does it mean when a variable is on both sides?
Both sides of the equals sign contain the unknown, as in 5x - 4 = 3x + 8. You cannot isolate the variable until all terms with it sit on one side. Add or subtract to move them, then combine like terms.
What is the first step in solving an equation with variables on both sides?
Move the variable terms together. Subtract the smaller variable term from both sides: in 4x + 1 = 2x + 9, subtract 2x to get 2x + 1 = 9. Starting with the smaller term keeps the coefficient positive, which avoids sign mistakes.
Can an equation with variables on both sides have no solution?
Yes. If the variable terms cancel and leave a false statement, the equation has no solution: 2x + 1 = 2x + 5 becomes 1 = 5, which is never true. If it leaves a true statement like 4 = 4, every value works, so there are infinitely many solutions.
How do I check my answer?
Substitute the answer into the original equation and simplify both sides. For x = 6 in 5x - 4 = 3x + 8: the left side gives 26 and the right side gives 26, so the answer holds. Our equation solver runs this check automatically and prints a verification line.
Does the equation solver handle parentheses with variables on both sides?
Yes. Type 26 - 14d = 2(5 + d) as it is and the solver expands the parentheses, moves the d terms together, and returns d = 1 with each step listed. It works with any single variable, including letters other than x.

Reviewed by Muhammad Shahid
Writer & Calculator ReviewerWrites and reviews calculator content across marketing, finance, health, and math at GM Calculator.
Last reviewed: November 4, 2026