Quadratic Formula Calculator

Solve quadratic equations using the quadratic formula. Calculate roots, discriminant, vertex, and axis of symmetry with step-by-step solutions.

For learning and homework help — verify critical calculations independently.

Reviewed by CalculatorDrive Math Editorial Board · Last updated

Calculator

Cannot be zero

Enter the coefficients a, b, and c of the quadratic equation ax² + bx + c = 0 to solve for x.

The short answer

The quadratic formula solves any equation of the form ax² + bx + c = 0: x = (−b ± √(b²−4ac)) ÷ (2a). The ± means there are two solutions, found by adding and then subtracting the square root term. The discriminant, b²−4ac, previews which kind of solutions to expect before you even finish the calculation.

Key takeaways

  • The discriminant (b²−4ac) previews the answer type: positive means two real roots, zero means one repeated real root, negative means two complex roots.
  • The vertex, at x = −b/(2a), is the parabola's minimum point if a > 0 or its maximum point if a < 0.
  • Factoring is faster than the formula when a quadratic factors neatly over integers, but the formula always works, even when factoring doesn't.
  • A negative discriminant doesn't mean "no solution" — it means no real solution; the two complex solutions still exist and follow the same formula.

The quadratic formula and the discriminant

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

Discriminant Solution type Example
b²−4ac > 0Two real solutionsx²−5x+6=0
b²−4ac = 0One repeated real solutionx²−4x+4=0
b²−4ac < 0Two complex solutionsx²+x+1=0

Worked example: solving x² − 5x + 6 = 0

a=1, b=−5, c=6

Discriminant = (−5)² − 4(1)(6) = 25 − 24 = 1

x = (5 ± 1) / 2 → x = 3 or x = 2

This matches factoring the same equation directly: x² − 5x + 6 = (x − 2)(x − 3), which is zero exactly when x = 2 or x = 3 — the quadratic formula and factoring agree, as they always will.

Vertex and axis of symmetry

x = −b/(2a) = −(−5)/(2×1) = 2.5

y = (2.5)² − 5(2.5) + 6 = 6.25 − 12.5 + 6 = −0.25

Vertex = (2.5, −0.25)

Since a = 1 is positive, this parabola opens upward, so the vertex (2.5, −0.25) is the lowest point on the curve — and it sits exactly halfway between the two roots, 2 and 3, on the axis of symmetry x = 2.5.

Common mistakes to avoid

  • Forgetting the ± and reporting only one root — every quadratic with a positive discriminant has two distinct solutions.
  • Sign errors when b is negative — a negative b makes −b positive, a frequent source of arithmetic mistakes.
  • Treating a negative discriminant as "no solution" instead of "no real solution" — the two complex solutions still exist mathematically.
  • Stopping at x = −b/(2a) for the vertex and forgetting to plug it back into the original equation to get the y-coordinate too.

Frequently Asked Questions

What is a quadratic equation?

A quadratic has the form ax² + bx + c = 0 where a ≠ 0. Its graph is a parabola that may cross the x-axis at zero, one, or two points.

What is the quadratic formula?

x = (−b ± √(b² − 4ac)) / (2a). The expression b² − 4ac is the discriminant and tells you how many real solutions exist.

What does the discriminant tell you?

If positive, two real solutions. If zero, one repeated real solution. If negative, no real solutions (but two complex solutions exist).

When is factoring easier than the formula?

When the quadratic factors neatly over integers — x² − 5x + 6 = (x−2)(x−3) — factoring is faster. The formula always works.

How do I use this quadratic formula calculator?

Enter coefficients a, b, and c, then click Calculate to see roots, discriminant value, and step-by-step substitution.

What do the vertex and axis of symmetry represent?

The vertex is the parabola's turning point — its minimum if a > 0 (opens upward) or maximum if a < 0 (opens downward) — located at x = −b/(2a). The axis of symmetry is the vertical line x = −b/(2a) that splits the parabola into two mirror-image halves; the vertex always sits exactly on that line.

More math calculators