Quadratic Formula Calculator
Solve ax² + bx + c = 0
Solve ax² + bx + c = 0
The quadratic formula is a closed-form algebraic solution for any equation of the form ax² + bx + c = 0, where a, b, and c are real numbers and a ≠ 0. It gives the value(s) of x that satisfy the equation using the expression:
x = (−b ± √(b² − 4ac)) / 2a
This formula is derived by completing the square on the general quadratic equation. It is one of the most frequently used algebraic tools across mathematics, physics, engineering, economics, and data science — any field that involves parabolic relationships, optimization, or root-finding.
The inputs accept decimals, negative values, and fractions (entered as decimals). The calculator automatically updates as you type — no button press required.
The discriminant is the part under the square root: D = b² − 4ac. Its sign determines the nature of the roots before you finish calculating:
Using the coefficients a = 2, b = 5, c = −3 from the default inputs:
The roots are x = 0.5 and x = −3. You can verify by plugging either value back into the original equation — both will satisfy 2x² + 5x − 3 = 0.
The discriminant (b² − 4ac) determines the nature of the roots before you even finish solving: positive means two real solutions, zero means one repeated real solution, and negative means two complex solutions with no real x-intercepts.
A negative discriminant means the parabola never crosses the x-axis, so there's no real number solution — the roots involve the imaginary unit i (where i² = −1).
Yes — the quadratic formula works for any equation in the form ax² + bx + c = 0 as long as a is not zero (if a = 0, the equation is linear, not quadratic).
The calculator will show a message that it's not a quadratic equation. If a = 0, the equation becomes bx + c = 0, which is linear and has a single solution x = −c/b.
Yes — enter fractions as decimals. For example, 1/2 = 0.5, 2/3 ≈ 0.6667. The calculator will handle decimal inputs accurately.