Equation Solver
Solve linear and quadratic equations with steps shown. A linear equation like 2x + 6 = 0 has one answer (x = −3). A quadratic equation like x² − 5x + 6 = 0 can have two answers (x = 2 and x = 3), one answer, or no real answers — the solver works out the discriminant and tells you which case it is.
How to use this converter
Choose linear (ax + b = 0) or quadratic (ax² + bx + c = 0), type the coefficients, and the answer appears with the steps. For quadratics, the solver also shows the discriminant and says whether there are two, one or no real roots.
Formula
Linear: ax + b = 0 → x = −b ÷ a. Quadratic: x = (−b ± √(b² − 4ac)) ÷ 2a. The discriminant D = b² − 4ac: if D > 0 there are two real roots; if D = 0 there is one repeated root; if D < 0 there are no real roots (the answers are complex).
Quadratic equations appear everywhere: the height of a thrown ball, the best price for maximum profit, the area of a garden with a fixed fence. The solver shows the discriminant (b² − 4ac) and each step, so you can follow the working — useful for homework, not just the answer.
Solved examples
| From | Equals |
|---|---|
| 2x + 6 = 0 | x = −3 |
| 3x − 9 = 0 | x = 3 |
| x² − 5x + 6 = 0 | x = 2 or x = 3 |
| x² − 4x + 4 = 0 | x = 2 (repeated) |
| x² + 1 = 0 | No real roots (D = −4) |
| x² − 9 = 0 | x = 3 or x = −3 |
| 2x² − 8 = 0 | x = 2 or x = −2 |
Frequently asked questions
How do I solve 2x + 6 = 0?
Move 6 to the other side: 2x = −6, then divide by 2: x = −3. The solver above does it with steps.
How do I solve x² − 5x + 6 = 0?
Factor it: (x − 2)(x − 3) = 0, so x = 2 or x = 3. Or use the quadratic formula with a = 1, b = −5, c = 6: the discriminant is 25 − 24 = 1, so x = (5 ± 1) ÷ 2 = 3 or 2.
What is the discriminant?
D = b² − 4ac. It tells you how many real answers a quadratic has: D > 0 means two answers, D = 0 means one repeated answer, D < 0 means no real answers.
What if a quadratic has no real roots?
Then its answers are complex numbers (involving i, the square root of −1). The graph of the equation never crosses the x-axis. This solver says so plainly and shows the discriminant.
Can it solve cubic equations?
Not yet — this solver handles linear and quadratic equations only. Cubics need a different method.