Quadratic Formula Calculator

MATH · ALGEBRA

Solve ax² + bx + c = 0

Calculated on this device
Enter coefficient a for the x squared term. Must not be zero.
Enter coefficient b for the linear x term.
Enter the constant term c.

TWO REAL ROOTS

x₁ = 3, x₂ = 2

Discriminant Δ = b² − 4ac = 1. Because Δ > 0, the parabola crosses the x-axis twice.

Formula: x = (−b ± √(b² − 4ac)) ÷ (2a)

Vertex (h, k)(2.5, -0.25)Axis of symmetry: x = 2.5
Vieta's Sum & ProductSum: 5Product: 6

HOW IT WORKS

Quadratic formula, discriminant, and complex roots

Every quadratic equation in standard form ax² + bx + c = 0 (with a ≠ 0) has two solutions over the complex numbers given by the quadratic formula.

01

Discriminant (Δ = b² − 4ac)

If Δ > 0, there are two distinct real roots; if Δ = 0, one repeated real root; and if Δ < 0, two complex conjugate roots −b/(2a) ± i·√|Δ|/(2|a|).

02

Numerically Stable Evaluation

When Δ > 0 and b ≠ 0, we compute q = −0.5 × (b + sign(b)√Δ) and return q/a and c/q to avoid floating-point cancellation when 4ac is small.

ALGEBRA GUIDE

Reading the discriminant, vertex, and parabola geometry

Connecting roots to the graph of y = ax² + bx + c

Real roots are the x-intercepts of the parabola. The vertex (−b/2a, c − b²/4a) marks the minimum (when a > 0) or maximum (when a < 0), and sits halfway between the two roots. For powers and logarithms, visit our Exponent Calculator or Log Calculator.

Frequently asked questions

Why cannot coefficient a be 0?

If a = 0, the x² term disappears and the equation becomes linear (bx + c = 0), where dividing by 2a in the quadratic formula would divide by zero.

What does a negative discriminant mean?

When b² − 4ac < 0, the square root of a negative number produces an imaginary component, meaning the parabola does not cross the real x-axis.

What are Vieta's formulas?

For any quadratic ax² + bx + c = 0, the sum of the two roots always equals −b / a and their product always equals c / a, even when the roots are complex.

Why use Citardauq's formula for real roots?

When b² is much larger than 4ac, standard −b + √(b² − 4ac) subtracts two nearly equal numbers and loses significant digits; using c / q preserves full precision.

Your equation is solved locally in this browser and never sent to a server.