Guide
Solving quadratic equations: roots, discriminant, factors and the parabola
A quadratic equation has the form ax² + bx + c = 0, and it turns up everywhere from the path of a ball to the area of a field, the profit of a product and the shape of a mirror. The solution is short but easy to get wrong by hand, in particular the signs. This solver gives the roots, the type of solution, the vertex of the parabola, a factored form when one exists and a step-by-step explanation you can compare with your own working.
How the quadratic formula works
The roots are x = (−b ± √D) / 2a, where D = b² − 4ac is the discriminant. It is the quantity under the square root, and its sign decides everything: positive gives two different real roots, zero gives one repeated root and negative gives two complex roots, a ± bi, that are conjugates of each other. Geometrically the roots are where the parabola y = ax² + bx + c crosses the x-axis, so a negative discriminant means it never does.
Using the solver
Type the three coefficients a, b and c. The page opens on a = 1, b = −5, c = 6 and shows a discriminant of 1, the roots x₁ = 2 and x₂ = 3, the vertex (2.5, −0.25), the axis of symmetry x = 2.5, the y-intercept 6, the sum and product of the roots, 5 and 6, and the factored form (x − 3)(x − 2). Sample chips load five equations, and Reset restores the default. A graph of the parabola marks the roots with dashed lines and downloads as SVG or PNG.
What the steps show
The text box lists the standard form, the discriminant with your numbers substituted, the root formula, the roots, the vertex and a completed-square form such as 1(x − 2.5)² − 0.25 = 0. A last line checks that the roots add to −b/a and multiply to c/a, which is a quick test of any answer. Copy the text into notes or a worksheet.
Edge cases and the stable formula
If b² is far larger than 4ac, the textbook formula subtracts two nearly equal numbers and loses digits. For x² + 100,000,000x + 1 = 0 the small root is −1 × 10⁻⁸, which a naive calculation can return as 0. The tool therefore computes the larger-magnitude root first and gets the other from the product of the roots, c divided by it, which keeps full precision. If a = 0 the equation is linear and the tool gives x = −c/b, and 0 = 0 or a false statement are named as such.
Worked examples
x² − 5x + 6 = 0: D = 1, roots 2 and 3. 2x² + 5x − 3 = 0: D = 49, roots −3 and 0.5, vertex (−1.25, −6.125), factored (2x − 1)(x + 3). x² + 2x + 5 = 0: D = −16, roots −1 + 2i and −1 − 2i, vertex (−1, 4) above the axis. x² − 6x + 9 = 0: D = 0, root 3, vertex (3, 0), factored (x − 3)(x − 3). For −4.9t² + 20t + 1.5 = 0, D = 429.4, the roots are −0.07367 and 4.155303, and the vertex (2.0408163, 21.908163) means a peak of 21.9 m at 2.04 s.
Reading the vertex and the graph
The vertex is at x = −b/2a with y = c − b²/4a. For a > 0 the parabola opens upwards and the vertex is its minimum; for a < 0 it opens downwards and the vertex is the maximum, which is why it answers questions about the greatest height, the largest area or the best price. The graph helps catch a typing error: if the curve does not pass through (0, c), a coefficient has been entered wrongly.
Limits
The tool solves one quadratic with real coefficients. It does not solve cubic, quartic or simultaneous equations, and it does not handle coefficients that are expressions or symbols. Roots are shown to about ten significant digits, and the factored form is only attempted for integer coefficients. For homework that requires working by hand, use it to check an answer rather than replace the method.
Related tools
- Scientific Calculator handles the arithmetic when you work through a problem yourself.
- Fraction Calculator helps when a root such as 1/2 needs simplifying.
- Projectile Motion Calculator uses the same equation to time a throw.
- Matrix Calculator moves from one equation to systems of equations.
Checked against the current version of the Quadratic Equation Solver on .

