Solve for x Calculator with Steps
Enter any equation in one unknown and see it solved line by line. Each step applies one operation to both sides, so you can follow exactly how the equation is reduced to x = a value.
Worked example
Solve 5(x − 2) = 3x + 8
- Expand the bracket. 5x − 10 = 3x + 8
- Collect the x terms. Subtract 3x from both sides: 2x − 10 = 8
- Collect the constants. Add 10 to both sides: 2x = 18
- Isolate x. Divide both sides by 2: x = 9
Answer: x = 9
Check: 5(9 − 2) = 35 and 3(9) + 8 = 35.
This example is written out in full. Enter your own problem above and the solver sets out the working the same way.
Where it's used
Linear equations are behind break-even calculations, unit pricing, converting between scales, and rearranging any formula to find the quantity you don't know, from loan payments to dosage by body weight.
How to do it by hand
Clear brackets and fractions
Expand any brackets, then multiply both sides by the common denominator so no fractions remain.
Collect like terms
Move every x term to one side and every constant to the other by adding or subtracting the same thing on both sides.
Isolate x
Divide both sides by the coefficient of x.
Check
Substitute the value back into the original equation and confirm both sides are equal.
Common mistakes
- Changing a sign on only one side when moving a term across the equals sign.
- Multiplying only the first term in a bracket instead of every term.
- Dividing by a negative coefficient and forgetting the sign of the result.
Questions about solve for x
What if x cancels out?
If you are left with a true statement such as 4 = 4, every value of x works. If you get a false statement such as 0 = 5, there is no solution.
Can it solve equations with x on both sides?
Yes. The steps collect the x terms on one side first, then isolate x.
How do I solve an equation with x in the denominator?
Multiply both sides by the denominator to clear it, solve as usual, then check that the answer does not make any denominator zero.
Can it rearrange a formula for a different letter?
Yes. Ask, for example, “solve A = P(1 + rt) for r”. The steps treat the other letters as constants.
What about decimal or fractional coefficients?
They work the same way. Multiplying both sides by a common denominator or a power of ten first often makes the arithmetic easier, and the solver will show that step.
Instant calculators for solve for x
No AI and no limits: answers as you type.