One Calculator Logo One Calculator
Mathematics & Statistics • Formulas shown

Quadratic Formula Calculator

Quick Answer

The quadratic formula solves ax² + bx + c = 0: x = (−b ± √(b² − 4ac)) ÷ 2a. The discriminant b² − 4ac decides the roots: positive gives two real roots, zero gives one repeated root, negative gives two complex roots. For 2x² + 4x − 6 = 0 the roots are 1 and −3.

If a is 0 the equation is linear.
Result

The roots are x₁ = -3, x₂ = 1

Discriminant64
Vertex (x, y)(-1, -8)
OpensUpward
Step-by-step calculation
  1. 2x² + 4x − 6 = 0
  2. Discriminant D = b² − 4ac = 4² − 4(2)(-6) = 64
  3. D > 0: two distinct real roots
  4. x = (−b ± √D) ÷ 2a
  5. x₁ = -3, x₂ = 1

About the Quadratic Formula Calculator

Enter the three coefficients and the calculator solves the equation, shows the discriminant and gives the vertex of the parabola. When the discriminant is negative it returns the complex-conjugate pair rather than failing.

Internally it uses the numerically stable form of the formula, which avoids the loss of precision that the textbook version suffers when b is much larger than a and c. If a is 0 the equation is linear and the calculator solves it as such.

How to Use the Quadratic Formula Calculator

  1. Enter a, b and c from your equation in standard form.
  2. Read the roots in the headline, plus the discriminant and vertex.
  3. Open the steps to see each stage of the formula.

Formula and Method

Quadratic formula

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

Gives both roots at once.

Discriminant

D = b² − 4ac

D > 0: two real roots. D = 0: one repeated root. D < 0: two complex roots.

Vertex

(−b ÷ 2a, f(−b ÷ 2a))

The turning point of the parabola.

Worked Example

Solve 2x² + 4x − 6 = 0

Input: a = 2, b = 4, c = −6

  • D = 4² − 4(2)(−6) = 16 + 48 = 64
  • √64 = 8
  • x = (−4 ± 8) ÷ 4
  • x₁ = −3, x₂ = 1

Result: Roots are x = −3 and x = 1; the vertex is (−1, −8).

Frequently Asked Questions

What does the discriminant tell me?

Its sign tells you how many real roots exist without solving: positive means two, zero means one repeated root, negative means none (two complex roots).

What if a equals zero?

Then the equation is not quadratic. It becomes bx + c = 0 with the single solution x = −c ÷ b, which the calculator provides.

What are complex roots?

When the discriminant is negative, the roots involve the imaginary unit i (where i² = −1) and appear as a conjugate pair p ± qi. The parabola never crosses the x-axis.

How do I check my answer?

Substitute each root back into ax² + bx + c. The result should be 0 (or extremely close, allowing for rounding).

Related Calculators

All Math & Statistics Calculators →

Sources and Further Reading

Accuracy and Scope

Results use standard IEEE-754 double-precision arithmetic and are rounded for display. For exam, engineering or research work, verify critical values with a second method. See our full disclaimer.