Home ↓
CalculatorsVerified

Math & Geometry

Quadratic Equation Solver

Solve ax² + bx + c = 0: real or complex roots, discriminant and vertex.

Solving ax² + bx + c = 0

A quadratic equation has the form ax² + bx + c = 0 with a not equal to zero. Its solutions are given by the quadratic formula x = (−b ± √Δ) ÷ 2a, where the discriminant Δ = b² − 4ac decides the type of roots: two different real roots when Δ is positive, one repeated real root when Δ is zero, and two complex conjugate roots when Δ is negative. The calculator shows both roots, the discriminant and the vertex of the parabola y = ax² + bx + c.

The vertex is the parabola's turning point: its minimum when a is positive and its maximum when a is negative. It lies at x = −b ÷ 2a, exactly halfway between the two roots.

Where quadratics appear

Quadratic equations model projectile motion, areas, optimisation problems such as maximising profit or area, and many physics and engineering formulas. Factorising — for example x² − 3x + 2 = (x − 1)(x − 2) — is quicker when the roots are whole numbers, but the formula always works.

Formula & method

Δ = b² − 4acx = (−b ± √Δ) / 2aVertex: x = −b / 2a

Worked example

x² − 3x + 2 = 0

  1. Δ = (−3)² − 4 × 1 × 2 = 1
  2. x = (3 ± 1) ÷ 2
  3. Vertex at x = 1.5, y = −0.25

Answer: x₁ = 2 and x₂ = 1.

Frequently asked questions

What if the discriminant is negative?

There are no real roots; the calculator gives the two complex roots p ± qi.

What if a is 0?

The equation is linear, bx + c = 0, with solution x = −c ÷ b.

What are complex roots?

Solutions involving i, the square root of −1, which occur when the discriminant is negative.

How do I find where a parabola crosses the x-axis?

Those points are the real roots shown here.

Can I use decimals?

Yes. a, b and c can be any real numbers.

What does the discriminant tell me?

The number and type of solutions: positive gives two real roots, zero one, negative two complex roots.

Can I solve cubic equations here?

No. This tool solves second-degree equations only.