Skip to main content
Algebra • ax² + bx + c = 0

Quadratic Formula Calculator

Solve ax² + bx + c = 0

ax² + bx + c = 0
x = 0.5 and x = -3

What Is the Quadratic Formula?

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.

How to Use This Calculator

  1. Enter coefficient a — the quadratic coefficient (cannot be zero). If a = 0, the equation is linear, not quadratic.
  2. Enter coefficient b — the linear coefficient. Can be positive, negative, or zero.
  3. Enter coefficient c — the constant term. Can be positive, negative, or zero.
  4. Read the result — the calculator displays the root(s) in real or complex form, including the discriminant's effect on the solution type.

The inputs accept decimals, negative values, and fractions (entered as decimals). The calculator automatically updates as you type — no button press required.

What the Discriminant Tells You

The discriminant is the part under the square root: D = b² − 4ac. Its sign determines the nature of the roots before you finish calculating:

Worked Example: 2x² + 5x − 3 = 0

Using the coefficients a = 2, b = 5, c = −3 from the default inputs:

  1. Calculate the discriminant: D = 5² − 4(2)(−3) = 25 + 24 = 49
  2. Take the square root: √49 = 7
  3. Apply the formula: x = (−5 ± 7) / (2 × 2) = (−5 ± 7) / 4
  4. Solve both cases: x = (−5 + 7)/4 = 2/4 = 0.5 and x = (−5 − 7)/4 = −12/4 = −3

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.

Common Use Cases

Frequently Asked Questions

What is the discriminant and why does it matter?

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.

What does it mean if the roots are complex?

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).

Can every quadratic equation be solved with this formula?

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).

What if I enter a = 0?

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.

Can I use fractions as inputs?

Yes — enter fractions as decimals. For example, 1/2 = 0.5, 2/3 ≈ 0.6667. The calculator will handle decimal inputs accurately.

Last updated: July 26, 2026