One variable, isolated
Solve for x
Put the equation in, watch x come out on its own. Every rearrangement is shown and then checked by substitution.
x can sit on either side. Write powers with ^, like x^2 - 5x + 6 = 0.
What solving for x means
An equation is a balance. Whatever sits on the left of the equals sign is worth exactly the same as whatever sits on the right. Solving for x means rearranging that balance, using moves that keep it balanced, until x stands alone on one side and a plain number stands on the other.
There are only a few legal moves: add the same amount to both sides, subtract the same amount from both sides, multiply both sides by the same non-zero number, divide both sides by the same non-zero number. Everything else in algebra is a combination of those four.
How this solver works through it
Type the equation and press the button. The working comes back in three stages.
- Collect the terms. x terms go to one side, numbers to the other. The line shows the equation as it looks after the move, with no x terms left on the right.
- Divide out the coefficient. If x is carrying a 5 in front of it, dividing both sides by 5 is the move that leaves x alone.
- Substitute back. The value is put into both original sides and the two results are compared. If they agree, the answer stands.
The third stage is the safety net. It costs nothing to include, and it catches the case where the equation was typed wrong.
Worked example: x on both sides
Start with 5x + 2 = 2x + 11.
Subtract 2x from both sides: 3x + 2 = 11. Subtract 2 from both sides: 3x = 9. Divide both sides by 3: x = 3.
Check: the left side gives 5(3) + 2 = 17, the right side gives 2(3) + 11 = 17. Same number, so x = 3 is right.
The solver writes each of those lines for you, then does the check itself.
Worked example: a negative answer
Start with 4x - 9 = 3. Add 9 to both sides: 4x = 12. Divide by 4: x = 3.
Now start with 2x + 7 = 1. Subtract 7 from both sides: 2x = -6. Divide by 2: x = -3. The minus sign is not a special case, it is just the number you land on. Check: 2(-3) + 7 = 1 on the left, 1 on the right.
When x shows up squared
A quadratic does not have one answer; it usually has two. The same page handles it: the working switches to the quadratic formula and reports the discriminant, so you can see why there are two roots, one repeated root, or none in the real numbers.
If you already know your equation is quadratic, the quadratic equation solver spells that case out in more detail, including both roots and the check on each one.
Common mistakes this catches
- Dividing only one side by the coefficient. The working shows both sides divided.
- Sign errors when moving a term across the equals sign. The rewritten equation is printed, so the slip is visible on the line rather than three steps later.
- Rounding early. The solver works in full precision and rounds only what it prints, so the roots do not drift.
Questions students ask
What does solving for x actually mean?
It means ending up with x by itself on one side and a number on the other. Every legal move you make - adding the same amount, dividing both sides by the same number - keeps the equation true while bringing x closer to being alone.
Can x appear on both sides?
Yes, and that is the normal case this solver is built for. Terms like 5x + 2 = 2x + 11 are handled by moving the x terms to one side, which is the first line of the working you get back.
What if the result is a fraction?
It is written as a decimal, and a value that is not exact is marked with the approximately sign. So 1/3 comes back as approximately 0.333333 rather than being rounded silently to 0.33.
What does it mean when there is no solution?
The x terms cancelled out and left a false statement, like 4 = 0. No value of x can make that true, so the honest answer is that there is no solution - not a made-up number.
Does it show negative coefficients correctly?
Yes. A term like -3x is treated as a coefficient of minus three, and the working writes it that way instead of losing the sign.