X-Calculator
Math Updated November 23, 2026

Quadratic Formula Calculator

Solve any quadratic equation: real or complex roots, discriminant, vertex and step-by-step working.

a (coefficient of x²)
b (coefficient of x)
c (constant term)
Advertisement
Advertisement

This quadratic formula calculator solves any equation of the form ax² + bx + c = 0. Enter the three coefficients and it returns both roots, real or complex, plus the discriminant, the vertex of the parabola, the axis of symmetry and a step-by-step solution you can copy into your work.

The quadratic formula

Every quadratic equation with a ≠ 0 has two solutions (counting a repeated root twice), given by:

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

discriminant   D = b² − 4ac
vertex         h = −b ÷ 2a,   k = c − b² ÷ 4a
sum of roots   x₁ + x₂ = −b ÷ a
product        x₁ × x₂ = c ÷ a

Before you start, rearrange the equation so everything is on one side and equals zero. For 2x² = 7x − 3, subtract 7x and add 3 to get 2x² − 7x + 3 = 0, so a = 2, b = −7 and c = 3. Keep the signs: a minus in front of a term makes its coefficient negative.

What the discriminant tells you

Discriminant Roots Graph of y = ax² + bx + c
D > 0, perfect square Two distinct rational roots Crosses the x-axis twice
D > 0, not a perfect square Two distinct irrational roots Crosses the x-axis twice
D = 0 One repeated real root Touches the x-axis at the vertex
D < 0 Two complex conjugate roots Never meets the x-axis

The rational/irrational split applies when a, b and c are whole numbers. If D is a perfect square such as 25 or 49, the equation can also be solved by factoring.

Advertisement
Advertisement

Worked examples

  • 2x² − 7x + 3 = 0: D = 49 − 24 = 25, √25 = 5. x = (7 ± 5) ÷ 4, so x₁ = 3 and x₂ = 0.5. Vertex at (1.75, −3.125).
  • x² + 2x + 5 = 0: D = 4 − 20 = −16, √−16 = 4i. x = (−2 ± 4i) ÷ 2 = −1 ± 2i. The parabola’s lowest point is (−1, 4), above the x-axis, so there is no real solution.
  • x² − 4x + 4 = 0: D = 16 − 16 = 0, so there is one double root, x = 2. The equation factors as (x − 2)².
  • x² − 2 = 0: D = 8, x = ±√8 ÷ 2 = ±1.414214 (that is, ±√2).
  • −x² + 3x + 10 = 0: D = 9 + 40 = 49. x = (−3 ± 7) ÷ (−2), giving x₁ = 5 and x₂ = −2. Because a < 0 the parabola opens downward, with a maximum of 12.25 at x = 1.5.

Checking your answer

Substitute each root back into the original equation; the left side should equal 0 (or a tiny number like 0.0000001 if the root was rounded). A faster check uses Vieta’s formulas: the roots must add up to −b ÷ a and multiply to c ÷ a. For 2x² − 7x + 3 = 0: 3 + 0.5 = 3.5 = 7 ÷ 2 and 3 × 0.5 = 1.5 = 3 ÷ 2.

Other ways to solve a quadratic

  • Factoring: fastest when the roots are small integers. x² − 3x − 10 = (x − 5)(x + 2), so x = 5 or −2.
  • Completing the square: rewrite as a(x − h)² + k = 0. This is how the quadratic formula itself is derived, and it gives the vertex form directly.
  • Square root method: when b = 0, x² = −c ÷ a, so x = ±√(−c ÷ a). Use the square root calculator for the last step.
  • Graphing: the x-intercepts of y = ax² + bx + c are the real roots. Useful for a visual estimate, not for exact values.

Where quadratics show up

  • Projectile motion: the height of a ball thrown upward at 20 m/s from 2 m is h = −4.9t² + 20t + 2. Setting h = 0 gives the landing time, about 4.18 s.
  • Area problems: a rectangle 3 m longer than it is wide with an area of 40 m² gives w² + 3w − 40 = 0, so w = 5 m.
  • Profit and pricing: revenue curves of the form −px² + qx peak at the vertex, x = q ÷ 2p.

Common mistakes

  • Dropping a negative sign. If b = −7, then −b = +7 and b² = 49, not −49.
  • Dividing only the square root by 2a. The whole numerator, −b ± √D, is divided by 2a.
  • Forgetting to set the equation to zero. The coefficients only work for ax² + bx + c = 0.

Frequently Asked Questions

What is the quadratic formula?

x = (−b ± √(b² − 4ac)) ÷ 2a. It gives both solutions of ax² + bx + c = 0 for any coefficients as long as a is not zero.

What does it mean if the discriminant is negative?

The equation has no real solutions. Its two roots are complex conjugates of the form p ± qi, and the parabola never crosses the x-axis.

Can a quadratic have only one solution?

Yes, when the discriminant is exactly 0. The single root is x = −b ÷ 2a and the parabola just touches the x-axis at its vertex.

Why can't a be zero?

With a = 0 the x² term disappears and the equation becomes linear, bx + c = 0, with the single solution x = −c ÷ b. The quadratic formula would divide by zero.

How do I find the vertex of a parabola?

The x-coordinate is h = −b ÷ 2a. Plug it back in, or use k = c − b² ÷ 4a, for the y-coordinate. For y = 2x² − 7x + 3, the vertex is (1.75, −3.125).

Advertisement
Advertisement
Related

You may also need

All Math Calculators
Advertisement