Roots, discriminant, vertex and a drawn graph for ax² + bx + c = 0.
By MathematicsCalculator Team · Reviewed by MathematicsCalculator Team · Last updated:
Formula
x = (−b ± √(b² − 4ac)) ÷ 2a
Worked examples
x² − 5x + 6 = 0
Discriminant: D = b² − 4ac = 25 − 24 = 1
D > 0, so there are two real roots. √D = 1
x = (−b ± √D) ÷ 2a → x₁ = 3, x₂ = 2
Vertex: (2.5, -0.25), axis of symmetry x = 2.5. The parabola opens upwards.
Answer: x = 3 or x = 2 — Two real roots · Vertex (2.5, -0.25)
2x² + 4x − 6 = 0
Discriminant: D = b² − 4ac = 16 − -48 = 64
D > 0, so there are two real roots. √D = 8
x = (−b ± √D) ÷ 2a → x₁ = 1, x₂ = -3
Vertex: (-1, -8), axis of symmetry x = -1. The parabola opens upwards.
Answer: x = 1 or x = -3 — Two real roots · Vertex (-1, -8)
x² + 2x + 5 = 0 (complex roots)
Discriminant: D = b² − 4ac = 4 − 20 = -16
D < 0, so the roots are complex: x = -1 ± 2i
Vertex: (-1, 4), axis of symmetry x = -1. The parabola opens upwards.
Answer: -1 ± 2i — No real roots — complex pair · Vertex (-1, 4)
About this calculator
The quadratic formula solves every equation of the form ax² + bx + c = 0, and the discriminant (b² − 4ac) tells you the story before you finish: positive means two real roots where the parabola crosses the axis, zero means one touching root, negative means the roots are complex and the curve never crosses. This solver reports all of it — roots, discriminant, vertex — and draws the parabola with the vertex marked, because a quadratic is a picture as much as a calculation. Straight lines are the simpler picture — the slope calculator finds a line's slope, equation, distance and midpoint from two points.
How to use it
Read a, b and c off your equation, keeping the signs.
Enter them and calculate.
Read the roots, then check the graph — the roots are where the curve crosses the horizontal axis.
Frequently asked questions
What if a = 0?
Then there is no x² term and the equation is linear, not quadratic — bx + c = 0 solves directly as x = −c/b.
How do I check the roots?
Substitute each root back into the original equation — it must give 0. The roots also add to −b/a and multiply to c/a (Vieta's relations), a quick cross-check.