How to Solve for X: Step-by-Step Equation Solving Guide
By MathSolver Editorial Team · Published October 8, 2026 · Updated October 8, 2026
Learning how to solve for x is one of the most useful skills in mathematics. This guide walks you through the process step by step, from simple linear equations to quadratics, so you can find x with confidence every time.
What Does "Solve for X" Mean?
When a problem asks you to solve for x, it means finding the value (or values) of the unknown variable x that make the equation true. For example, in the equation 2x + 3 = 11, solving for x means finding the number that, when doubled and added to 3, gives 11. The answer is x = 4, because 2(4) + 3 = 11.
The core idea is the balance principle: whatever you do to one side, you must do to the other. Your goal is always the same: isolate x on one side of the equals sign. Once x stands alone, you have your solution.
How to Solve Linear Equations for X
Linear equations have x only to the first power. They follow a reliable method: simplify both sides, move x terms to one side, move constants to the other, then divide to isolate x.
Worked Example: Solve 3x – 7 = 14
Step 1: Add 7 to both sides: 3x = 21
Step 2: Divide both sides by 3: x = 7
Step 3: Check: 3(7) – 7 = 14. Correct.
Try more linear equations with our free equation solver, which shows every step of the working so you can compare it with your own.
What About X on Both Sides?
Sometimes x appears on both sides. The approach is the same: collect all x terms on one side first.
Worked Example: Solve 5x + 2 = 3x + 10
Step 1: Subtract 3x from both sides: 2x + 2 = 10
Step 2: Subtract 2 from both sides: 2x = 8
Step 3: Divide by 2: x = 4
Step 4: Check: 5(4) + 2 = 22 and 3(4) + 10 = 22. Correct.
How to Solve Quadratic Equations for X
Quadratic equations have x squared and can have two solutions. Standard form: ax² + bx + c = 0. The two main methods are factoring and the quadratic formula.
Method 1: Factoring
Factoring splits the quadratic into two simpler expressions multiplied together.
Worked Example: Solve x² – 5x + 6 = 0
Step 1: Find two numbers that multiply to 6 and add to -5: -2 and -3.
Step 2: Write the factored form: (x – 2)(x – 3) = 0
Step 3: Set each factor to zero: x = 2 or x = 3
Step 4: Check: (2)² – 5(2) + 6 = 0 and (3)² – 5(3) + 6 = 0. Both correct. If factoring feels tricky, our factoring calculator walks through the factoring steps with you.
Method 2: The Quadratic Formula
When factoring is not obvious, the quadratic formula always works:
x = (-b ± √(b² – 4ac)) / 2a
Worked Example: Solve 2x² + 4x – 6 = 0
Step 1: Identify a = 2, b = 4, c = -6
Step 2: Discriminant: (4)² – 4(2)(-6) = 64
Step 3: Substitute: x = (-4 ± √64) / 4 = (-4 ± 8) / 4
Step 4: Both solutions: x = 1 or x = -3 For a calculator that shows every substitution step, use our quadratic formula calculator.
Choosing the Right Method
Use factoring when you can spot the factors quickly. Use the quadratic formula for everything else, since it never fails.
Solving Equations with Fractions
The fix for fractions is simple: multiply every term by the common denominator to clear them first.
Worked Example: Solve (x/3) + (x/4) = 7
Step 1: Multiply every term by 12 (the common denominator): 4x + 3x = 84
Step 2: Combine: 7x = 84
Step 3: Solve: x = 12
Step 4: Check: 12/3 + 12/4 = 7. Correct.
Remember to multiply *every* term, including the constant on the right. Forgetting it is the most common error here.
Common Mistakes When Solving for X
Watch out for these common errors:
- Different operations on each side. Adding 5 to the left but subtracting 5 from the right breaks the balance. Always do the same thing to both sides.
- Dividing by zero. Never divide both sides by x itself or by an expression that could equal zero, because that can erase valid solutions or create false ones.
- Dropping the ± in square roots. When you take the square root of both sides, remember that x² = 9 gives x = 3 or x = -3. Missing the negative solution is a classic exam error.
- Sign errors when moving terms. When you move a term across the equals sign, its sign flips. Moving +5x to the other side makes it -5x. Rushing this step causes most arithmetic mistakes.
- Forgetting to check. Always substitute your answer back into the original equation. Checking takes ten seconds and catches most mistakes before they cost you marks.
The best way to build good habits is practice with instant feedback. Our equation solver lets you enter any equation and see each step explained, so you can spot exactly where your working differs.
Frequently Asked Questions
What is the first step to solve for x?
Simplify both sides first: combine like terms and clear fractions or parentheses. Then move all x terms to one side and constants to the other, keeping the equation balanced. Finally, divide to isolate x.
How do you solve for x when it is squared?
Try factoring first: write as (x + p)(x + q) = 0 and set each factor to zero. If factoring is hard, use the quadratic formula x = (-b ± √(b² – 4ac)) / 2a. Quadratics can have two solutions.
Can you solve for x if it appears on both sides?
Yes. Move all x terms to one side first. In 5x + 2 = 3x + 10, subtract 3x from both sides to get 2x + 2 = 10, then solve as normal.
Why do some equations have two answers for x?
Quadratics can have two solutions because two numbers can satisfy the same squared relationship. For example, x² = 9 is true for both x = 3 and x = -3. Linear equations always have exactly one solution.
Conclusion
Solving for x comes down to one principle: keep the equation balanced while you isolate the variable. Master linear equations first, then move to quadratics with factoring or the quadratic formula. Clear fractions early, watch your signs, and always check by substituting back.
When you want to check your work, the free equation solver at mathsolver.site/ shows every step. Happy solving!