Quadratic Equation Solver

Solve any quadratic equation — real or complex roots, discriminant analysis, and vertex — with the steps written out.

Standard Quadratic Format
ax² + bx + c = 0
(1)x² + (5)x + (6) = 0

Must not be 0

x linear term

Constant term

Calculated Roots
x₁ = -2, x₂ = -3
1
Discriminant (Δ)
(-2.5, -0.25)
Parabola Vertex

Step-by-Step Mathematical Solution

≡ Table of Contents
  1. What This Quadratic Solver Does
  2. The Quadratic Formula
  3. Worked Examples, One Per Case
  4. Vertex, Axis of Symmetry, and Reading the Parabola
  5. Where Quadratics Show Up
  6. The Bottom Line
  7. Frequently Asked Questions

What This Quadratic Solver Does

Enter the three coefficients of a quadratic equation in standard form —

ax² + bx + c = 0  (a ≠ 0)

— and the solver returns the roots (real or complex), the discriminant with its interpretation, and the vertex of the parabola, showing each substitution step so you can follow or check homework line by line.

The Quadratic Formula

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

It solves every quadratic — derived by completing the square on the general form. The action is inside the square root, called the discriminant:

Δ = b² − 4ac
ΔRootsGraphically
Δ > 0Two distinct real rootsParabola crosses x-axis twice
Δ = 0One repeated real rootVertex touches the axis
Δ < 0Two complex conjugate rootsNo axis crossing

The solver computes Δ first, tells you which case you're in, then produces the roots accordingly — including complex ones in a ± bi form.

Worked Examples, One Per Case

Δ > 0 — x² − 5x + 6 = 0

Δ = 25 − 24 = 1  →  x = (5 ± 1)/2  →  x = 3, x = 2

Check by factoring: (x−2)(x−3) = 0 ✓

Δ = 0 — x² − 6x + 9 = 0

Δ = 36 − 36 = 0  →  x = 6/2 = 3 (double root)

The perfect square (x−3)² = 0 — the parabola kisses the axis at its vertex.

Δ < 0 — x² + 2x + 5 = 0

Δ = 4 − 20 = −16  →  x = (−2 ± 4i)/2 = −1 ± 2i

Complex conjugates — always a mirrored pair when coefficients are real.

Vertex, Axis of Symmetry, and Reading the Parabola

Vertex x = −b ÷ 2a   Vertex y = c − b²/4a
Axis of symmetry: the vertical line x = −b/2a

For y = x² − 5x + 6: vertex at (2.5, −0.25) — the minimum, since a > 0 opens upward (a < 0 would open downward with a maximum). The roots, when real, sit symmetrically around the axis — a useful sanity check on any solution.

Two more identities worth knowing (Vieta's formulas): sum of roots = −b/a, product = c/a. For x² − 5x + 6: sum 5, product 6 → roots 2 and 3 confirmed without re-solving.

Where Quadratics Show Up

  • Projectile motion: height h = −½gt² + v₀t + h₀ — "when does it land?" is a quadratic root.
  • Optimization: maximum revenue/area problems peak at the vertex.
  • Geometry: the Triangle Calculator's law-of-cosines cases reduce to quadratics.
  • Finance: break-even and rate problems (see the Finance Calculator) often quadratic in disguise.

Solving methods ranked by convenience: factoring (when integers cooperate) → formula (always works) → completing the square (best for deriving vertex form).

The Bottom Line

One formula, one discriminant, and every quadratic in existence surrenders: Δ tells you what kind of roots to expect, the formula produces them, and the vertex completes the graph's story. Use the solver above for the arithmetic — and keep the discriminant table in your head for the ten-second version of any quadratic question.

Frequently Asked Questions

x = (−b ± √(b²−4ac)) ÷ 2a — the universal solution to ax²+bx+c=0, valid for every quadratic including those with complex roots.

Δ = b²−4ac predicts the roots: positive → two real, zero → one repeated, negative → two complex conjugates. The solver reports it explicitly.

Yes — when Δ < 0 the roots are a ± bi conjugate pairs. The solver formats them exactly.

Its turning point, at x = −b/2a. Minimum when a > 0 (opens up), maximum when a < 0 (opens down).

Try factoring when a=1 and integer roots look plausible (check Vieta: sum −b/a, product c/a). Otherwise the formula always works.

For roots r₁, r₂: sum = −b/a and product = c/a — a fast way to verify solutions or build equations from known roots.

With a=0 the equation is linear (bx+c=0), solved by x = −c/b — no quadratic machinery needed. The solver flags this case.

Move every term to one side first: 2x² = 5x − 3 becomes 2x² − 5x + 3 = 0, then read off a, b, c.

No — everything runs locally in your browser.