Skip to content
Omnikalc

Quadratic formula calculator: solve ax² + bx + c = 0

Get the discriminant, the real or complex roots, the vertex of the parabola and the sum and product of the roots.

Updated on
Your inputs

Value out of range

Value out of range

Value out of range

Results

Discriminant Δ = b² − 4ac

49.0000

Two real roots

Root x₁ (or real part)

-2.0000

Root x₂ (or real part)

5.0000

Imaginary part (complex roots)
0.0000
Vertex x = −b ÷ 2a
1.5000
Vertex y (minimum or maximum)
-12.2500
Sum of the roots (−b ÷ a)
3.0000
Product of the roots (c ÷ a)
-10.0000

Discriminant and roots for other values of c

Discriminant Δ = b² − 4acRoot x₁ (or real part)Root x₂ (or real part)
c = -10 current49.0000-2.00005.0000
c = -4 current25.0000-1.00004.0000
c = 0 current9.00000.00003.0000
c = 2 current1.00001.00002.0000
c = 2.25 current0.00001.50001.5000
c = 5 current-11.00001.50001.5000

Solving ax² + bx + c = 0

Quadratic equations describe the path of a thrown ball, the area of a rectangle with a fixed perimeter, break-even points in business and countless algebra problems. Every one of them can be solved with the same formula. This calculator gives the discriminant, the two roots, real or complex, the vertex of the parabola and the sum and product of the roots, so you can check the answer.

The quadratic formula

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

The expression under the square root, Δ = b² − 4ac, is the discriminant:

  • Δ > 0: two distinct real roots; the parabola crosses the x-axis twice.
  • Δ = 0: one double root; the parabola touches the axis at its vertex.
  • Δ < 0: no real roots; the two complex roots are −b ÷ 2a ± i × √(−Δ) ÷ 2a.

Worked example: x² − 3x − 10 = 0

  1. Here a = 1, b = −3 and c = −10.
  2. Discriminant: (−3)² − 4 × 1 × (−10) = 9 + 40 = 49.
  3. √49 = 7, so x = (3 − 7) ÷ 2 = −2 and x = (3 + 7) ÷ 2 = 5.
  4. Vertex: x = 3 ÷ 2 = 1.5, y = −10 − 9 ÷ 4 = −12.25, the lowest point of the parabola.
  5. Check: −2 + 5 = 3 = −b ÷ a, and −2 × 5 = −10 = c ÷ a.

The equation factors as (x − 5)(x + 2) = 0, which confirms the roots.

How the constant c changes the roots

For x² − 3x + c = 0:

c Discriminant Root x₁ Root x₂
−10 49 −2 5
−4 25 −1 4
0 9 0 3
2 1 1 2
2.25 0 1.5 1.5
5 −11 1.5 ± 1.6583i complex

Raising c moves the parabola up. At c = 2.25 it just touches the axis, and above that it no longer crosses it.

Other ways to solve

  • Factoring works when the roots are simple numbers: look for two numbers that multiply to c ÷ a and add to −b ÷ a.
  • Completing the square rewrites ax² + bx + c as a(x − h)² + k, the vertex form, where (h, k) is the vertex.
  • Graphing shows the roots as the points where the curve crosses the x-axis.

The formula always works, even when factoring is impractical.

A real-world example

A ball thrown upward at 48 feet per second from a height of 4 feet follows h = −16t² + 48t + 4. It hits the ground when h = 0: a = −16, b = 48, c = 4. The discriminant is 2,304 + 256 = 2,560, and the positive root is t = (−48 − √2,560) ÷ (−32) = 3.08 seconds. The vertex, at t = 1.5 s, gives the maximum height: 40 feet.

Precision and special cases

If a = 0, the equation is linear, bx + c = 0, with the single solution x = −c ÷ b. When b² is much larger than 4ac, computing both roots with the formula can lose precision; using the product of the roots, x₂ = c ÷ (a × x₁), gives a more accurate second root.

Frequently asked questions

What is the quadratic formula?

For ax² + bx + c = 0, x = (−b ± √(b² − 4ac)) ÷ 2a. For x² − 3x − 10 = 0, b² − 4ac = 9 + 40 = 49, so x = (3 ± 7) ÷ 2, giving x = 5 and x = −2.

What does the discriminant tell me?

The discriminant b² − 4ac decides the number of real roots. Positive: two real roots. Zero: one double root, where the parabola touches the x-axis. Negative: no real roots, only two complex ones.

What is the vertex of a parabola?

The highest or lowest point of the graph, at x = −b ÷ 2a. For x² − 3x − 10, the vertex is at x = 1.5, y = −12.25. With a positive a the parabola opens upward and the vertex is a minimum.

How do I check my roots?

The two roots of ax² + bx + c always add up to −b ÷ a and multiply to c ÷ a. For x² − 3x − 10, 5 + (−2) = 3 and 5 × (−2) = −10, which confirms the answer.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.