Quadratic Equation Solver
Solve ax² + bx + c = 0 with the discriminant, roots and vertex.
Enter the coefficients a, b and c. If a is zero the equation is linear, and a single solution is shown.
The quadratic formula
Any quadratic equation can be solved with one formula. The term under the square root — the discriminant — decides whether the solutions are two real numbers, one repeated number, or a complex pair.
x = ( −b ± √(b² − 4ac) ) ÷ 2a
Geometrically, the roots are where the parabola crosses the x-axis. Its turning point, the vertex, sits halfway between the roots on the axis of symmetry, which is why the vertex and roots are closely linked.
For x² − 5x + 6 = 0 the discriminant is 1, so there are two real roots: x = 2 and x = 3. The parabola’s vertex sits at (2.5, −0.25).
Reading the results
The discriminant is the quick tell. Positive and you will see two clean crossings of the x-axis; zero and the parabola just touches it; negative and it never reaches the axis, so the roots are complex. The vertex tells you the highest or lowest point either way.
Good to know
- Sum and product. The roots add to −b ÷ a and multiply to c ÷ a — a handy check.
- Vertex direction. Opens upward when a > 0, downward when a < 0.
- Watch the signs. A misplaced minus on b or c is the most common slip.