How to Solve for x
Written by Awn · Published · 6 min read
Quick Answer
Here is how to solve for x. Simplify both sides, then gather every x term on one side and every plain number on the other. Undo adding or subtracting first, then multiplying or dividing. Whatever you do to one side, do to the other. Put your answer back in to check.
What Does Solving for x Mean?
Solving for x means finding the number that makes an equation true. In , the question is: what number, times 4, plus 9, gives 25? The letter could be anything. Mathematicians just use a lot.
How to Solve for x Step by Step
- Clear parentheses and fractions.
- Combine like terms on each side.
- Move all the terms to one side.
- Undo adding or subtracting.
- Undo multiplying or dividing.
- Check the answer.
Why undo the last thing first? Think of a wrapped gift. The paper went on last, so it comes off first. In , the 9 was added last.
Try your own equation in the solve for x calculator to see the undo steps.
Which Move Comes Next?
| You see | Undo it by |
|---|---|
| Subtracting 9 | |
| Adding 2 | |
| Dividing by 4 | |
| Multiplying by 3 | |
| Taking square roots, with | |
| Squaring |
How to Solve for x in Different Equations
When x Is on Both Sides
Subtract the smaller term from both sides, so you don't get a negative. For , subtract : . Then and .
When x Is in Parentheses
Distribute, or divide first if you can. For , dividing by 3 is quick: , so and .
Solve for x With Fractions
Multiply both sides by the bottom number. For , add 2 first: . Then multiply by 3: .
When x Is Squared
For , take square roots. Both 7 and work, so or . If there is an term too, use a method from how to solve quadratic equations.
When There Are Other Letters
Treat the other letters like numbers. For , subtract and divide by 3: .
Why You Do the Same to Both Sides
An equation is like a balance scale with equal weight in each pan. If you take 9 away from one pan, the scale tips. Take 9 from both and it stays level.
Every legal move follows from this. You can add, subtract, multiply or divide both sides by the same number, as long as you never divide by zero.
It also explains why "move it to the other side and change the sign" works. In , nothing really moves. You subtract 9 from both sides. On the left, disappears. On the right, appears. The shortcut is fine once you know what is behind it.
Worked Examples
Example 1: Two Steps
Solve .
- Subtract 9: .
- Divide by 4: .
Check: .
Example 2: Parentheses and x on Both Sides
Solve .
- Distribute: .
- Subtract : .
- Subtract 6: .
- Divide by 3: .
Check: and .
Example 3: A Whole Top Over a Number
Solve .
- Multiply by 3: .
- Add 1: .
- Divide by 2: .
Example 4: Fractions on Both Sides
Solve .
- Multiply every term by 6: .
- Subtract : .
- Subtract 6: .
Check: and .
Example 5: Decimals
Solve .
- Multiply every term by 10 to clear the decimals: .
- Subtract 12: .
- Divide by 5: .
Example 6: x on the Bottom
Solve .
- Multiply both sides by : .
- Divide by 4: .
Here can't be 0, because you can't divide by 0. Since 3 is not 0, it is fine.
Finding x in a Triangle or on a Line
Geometry problems often hide an equation in a picture. Use the rule for the shape to write it.
| Picture | Rule |
|---|---|
| Triangle | The three angles add to 180 degrees |
| Angles on a straight line | They add to 180 degrees |
| Two lines that cross | Opposite angles are equal |
For example, a triangle has angles of , and 60 degrees. Then . Combine: , so . The angles are 40, 80 and 60 degrees, and they add to 180.
If opposite angles are and , set them equal: . Then and .
Turning Words Into an Equation
Most word problems become easy once the equation is written.
| Words | Math |
|---|---|
| A number increased by 9 | |
| 5 less than a number | |
| Twice a number | |
| A number divided by 3 | |
| Is, equals, gives |
For example: "Three times a number, less 4, is 20. Find the number."
- Write it: .
- Add 4: .
- Divide by 3: .
Check it against the words, not just the equation. Three times 8 is 24, and 4 less than that is 20.
Be careful with "less than". "5 less than a number" is , not .
Two Ways to Write Your Steps
Some teachers like the change written under both sides, line by line. Others like one clean line per step. Both are fine if each line has exactly one equals sign and the signs line up.
Avoid chains such as . That says 16 equals 4, which is false. Write and then on the next line.
Common Mistakes
Doing a Step to One Side Only
If you subtract 9 on the left, write under both sides. Writing it out prevents this slip.
Dividing Before Clearing the Constant
In , dividing by 4 first gives . It is not wrong, but it makes the numbers harder.
Losing a Negative
From , the answer is , not 5. Multiply both sides by .
Multiplying Only Part of a Side
When you clear a fraction, multiply every term. In , multiplying by 2 gives , not .
Combining Terms Across the Equals Sign
In , you can't add and to get . They are on different sides. Subtract from both sides instead.
Practice Problems
- Solve .
- Solve .
- Solve .
- Solve .
- Solve for .
Show the answers
Check Your Answer With the Solver
Put your number into the first line of the problem, not a later one. Then compare with the calculator that isolates any letter. For equations with roots, logs or bars, go on to how to solve equations. Another good explanation is Solving Linear Equations in Paul's Online Notes.
FAQ
What Is the First Step to Find x?
Simplify each side. Clear parentheses, clear fractions and combine like terms before you move anything.
How Do You Solve for x With Two Variables?
You get in terms of the other letter. To get a number, you need a second equation.
Can x Be a Fraction or a Negative?
Yes. gives , and gives .
What If x Cancels Out?
If a true statement is left, such as , every number works. If a false one is left, such as , no number works.
Do You Always Need to Show the Steps?
For a test, usually yes. The steps also let you find a mistake without starting over.
Next step: write three equations of your own by choosing first and building up. Solving for x is easier once you have built one, and that is how to solve for x without memorizing rules.
Try the Calculator
Related Pages
- How to Solve EquationsLearn how to solve equations of any common type: linear, fraction, absolute value, root and exponential. Solving equations with clear steps and practice.
- How to Simplify ExpressionsLearn how to simplify expressions: distribute, use exponent rules, cancel and combine like terms. Simplifying algebraic expressions, step by step.