Solve for X: A Clear Step-by-Step Guide With Examples

Learning how to solve for x is the single most important skill you can build in algebra. It is the process of finding the unknown value that makes an equation true. This guide walks you through the method from the simplest one-step equations all the way to quadratics, so you can approach any problem with confidence.
Quick Answer: To solve for x, isolate the variable on one side of the equation. Do this by performing the same operation on both sides, working backwards through the order of operations until x stands alone. The value you end up with is your answer.
Table of Contents
What Does “Solve for X” Actually Mean?
An equation is a statement that two expressions are equal. The letter x is a placeholder for a number you do not know yet. When you solve for x, you are finding every value that makes the statement true.
Think of an equation as a balanced scale. The equals sign is the pivot point. Whatever you put on the left must weigh exactly the same as what is on the right. If you add weight to one side, you must add the same weight to the other side to keep it balanced.
This balance idea is the entire foundation. Every technique below is just a way to keep the scale balanced while you strip away everything surrounding x.
The Golden Rule: Do the Same Thing to Both Sides
If you add 5 to the left side, add 5 to the right side. If you divide the left side by 3, divide the right side by 3 too. This rule keeps the equation true at every step.
The goal is always the same: get x by itself. To do that, you undo whatever operations are attached to x, in reverse order.

The Core Method: Isolating the Variable
Most equations you encounter fall into a few categories. Each one builds on the last, so it is worth getting comfortable with the simple cases before moving on.
One-Step Equations
These have a single operation attached to x. Undo it with the opposite operation.
Example 1: x + 7 = 15
Subtract 7 from both sides. x = 8.
Example 2: 4x = 28
Divide both sides by 4. x = 7.
Example 3: x / 6 = 3
Multiply both sides by 6. x = 18.
The pattern is simple. Addition is undone by subtraction, multiplication by division, and the other way around.
Two-Step Equations
These have two operations. Undo addition or subtraction first, then undo multiplication or division.
Example: 3x + 5 = 20
Step 1: Subtract 5 from both sides. This gives you 3x = 15.
Step 2: Divide both sides by 3. This gives you x = 5.
The logic is to work backwards through the order of operations. In the original equation, you would multiply x by 3 first, then add 5. To undo it, you remove the addition first, then the multiplication.
Multi-Step Equations with Variables on Both Sides
Sometimes x appears on both sides of the equals sign. Your first job is to collect all x terms on one side.
Example: 5x + 2 = 2x + 14
Step 1: Subtract 2x from both sides. Now you have 3x + 2 = 14.
Step 2: Subtract 2 from both sides. Now you have 3x = 12.
Step 3: Divide both sides by 3. x = 4.
The key move is getting all x terms together before you start isolating. Once you do that, the problem turns into a simple two-step equation.
Equations with Parentheses
When you see parentheses, distribute first. Multiply the term outside by every term inside.
Example: 2(x + 3) = 16
Step 1: Distribute the 2. This gives you 2x + 6 = 16.
Step 2: Subtract 6 from both sides. 2x = 10.
Step 3: Divide both sides by 2. x = 5.
Distribution clears the parentheses so you can see the individual terms clearly. After that, it is the same process as before.
Solving Quadratic Equations for X
A quadratic equation has an x squared term, like x² + 5x + 6 = 0. These often have two solutions, because two different x values can make the equation true.
Method 1: Factoring
This works when the quadratic factors neatly into two binomials.
Example: x² + 5x + 6 = 0
Step 1: Find two numbers that multiply to 6 and add to 5. Those numbers are 2 and 3.
Step 2: Write the factored form: (x + 2)(x + 3) = 0.
Step 3: Set each factor equal to zero. x + 2 = 0 gives x = -2. x + 3 = 0 gives x = -3.
Both values are solutions. You can check by plugging each one back into the original equation.
Method 2: The Quadratic Formula
When factoring does not work easily, use the quadratic formula. It works for every quadratic equation, no exceptions.
For an equation in the form ax² + bx + c = 0, the solutions are:
x = (-b ± √(b² – 4ac)) / 2a
The ± symbol means you calculate once with a plus sign and once with a minus sign. That gives you the two possible solutions.
Example: 2x² + 4x – 6 = 0
Here, a = 2, b = 4, c = -6.
Plug into the formula: x = (-4 ± √(16 – 4(2)(-6))) / 4
Simplify under the square root: 16 + 48 = 64. The square root of 64 is 8.
So x = (-4 + 8) / 4 = 1, and x = (-4 – 8) / 4 = -3.
The two solutions are 1 and -3.
Choosing a Method: A Quick Comparison
| Method | Best For | Works Every Time? | Speed |
|---|---|---|---|
| Factoring | Quadratics with small, neat integer factors | No, only when factors are clean | Fastest when it works |
| Quadratic Formula | Any quadratic equation | Yes, always | Slower but reliable |
| Completing the Square | Deriving the formula, specific forms | Yes, but tedious | Moderate |
Pro Tip: Try factoring first. If you cannot find the factors within about 30 seconds, switch to the quadratic formula. It saves time and avoids frustration.
Common Mistakes and How to Avoid Them
Knowing the method is half the battle. Avoiding these errors is the other half.
Mistake 1: Forgetting to Do the Operation on Both Sides
You must perform every operation on both sides of the equation. If you subtract 4 from the left, subtract 4 from the right too. Skipping this breaks the balance and gives you a wrong answer.
Mistake 2: Mixing Up the Order of Operations
When undoing operations, work in reverse order. Undo addition and subtraction before multiplication and division. Think about what happened to x originally, then reverse it.
Mistake 3: Sign Errors in Distribution
When you distribute a negative number, every term inside the parentheses flips sign.
Example: -2(x – 5) becomes -2x + 10, not -2x – 10.
The negative sign applies to every term inside the parentheses. This is one of the most common error sources in algebra.
Mistake 4: Dividing by the Wrong Number
In 3x = 15, you divide by 3, not by x. The coefficient of x is what you divide by. If x has no visible coefficient, the coefficient is 1.
Mistake 5: Forgetting the Negative Solution in Quadratics
When you take the square root of both sides of an equation, you get two answers: the positive and the negative root. For example, if x² = 16, then x = 4 and x = -4. Both are valid solutions. Forgetting the negative root is a common error, especially on tests.
How to Check Your Answer
Checking your work is the fastest way to catch mistakes. Here is the method.
Take your solution and plug it back into the original equation. Replace every x with the value you found. Then simplify both sides.
If the left side equals the right side, your answer is correct. If not, go back and find the error.
Example: For the equation 2x + 3 = 11, you found x = 4.
Check: 2(4) + 3 = 8 + 3 = 11. The right side is 11. It matches, so x = 4 is correct.
This takes ten seconds and catches most careless errors. Make it a habit on every problem.
Key Takeaways
- Solving for x means isolating the variable on one side of the equation by performing the same operation on both sides.
- Work backwards through the order of operations: undo addition and subtraction before multiplication and division.
- Collect all x terms on one side first when variables appear on both sides of the equation.
- Quadratic equations have up to two solutions. Try factoring first, then fall back on the quadratic formula.
- Always check your answer by plugging it back into the original equation.
Frequently Asked Questions
Q: What does it mean to solve for x?
A: It means finding the value or values of the variable x that make the equation true. You isolate x on one side of the equation by performing inverse operations on both sides.
Q: What is the first step in solving an equation with variables on both sides?
A: Collect all x terms on one side of the equation. Subtract the smaller x term from both sides so you end up with x terms on only one side, then proceed with normal isolation steps.
Q: How do I know if my answer is correct?
A: Substitute your solution back into the original equation. Replace every x with the value you found and simplify. If both sides of the equation equal the same number, your answer is correct.
Q: Why do quadratic equations have two solutions?
A: A quadratic equation contains an x squared term. When you graph it, the curve crosses the x-axis at up to two points. Each crossing point represents a solution. Some quadratics have one solution, some have none, but most have two.
Q: What is the difference between solving for x and simplifying an expression?
A: Solving for x means finding the specific value of x that makes an equation true. Simplifying an expression means rewriting it in a more compact form without finding any specific value, because an expression has no equals sign.
Q: Can I solve for x in an equation with fractions?
A: Yes. Multiply every term on both sides by the least common denominator. This clears the fractions and turns the equation into one with whole numbers, which is easier to solve using the standard steps.
References & Further Reading
Further reading: Solve for X on Wikipedia
- Khan Academy: Solving Linear Equations , Free video lessons and practice problems on solving for x in linear equations.
- Purplemath: Solving Linear Equations , Clear, step-by-step explanations of the core isolating method.
- Math is Fun: Quadratic Equations , An accessible introduction to factoring, the quadratic formula, and completing the square.
- Paul’s Online Math Notes: Algebra , Detailed college-level notes on solving linear and quadratic equations, with worked examples.
This article was drafted with the help of AI, then fact-checked and edited by Muhammad Zeeshan Malik before publication.


