ADVERTISEMENT
Responsive Leaderboard Banner (728 × 90 or Auto)

Quadratic Equation Solver

Solve ax² + bx + c = 0 for exact radical and complex roots (x₁, x₂), discriminant (Δ = b² − 4ac), parabola vertex (h, k), vertex form, and an interactive SVG coordinate graph.

Enter Coefficients in Standard Form (a ≠ 0) Accepts integers, negatives, decimals, or fractions (e.g. -5, 2.5, 1/2) • Current: x² − 5x + 6 = 0
ADVERTISEMENT
Responsive In-Content Banner (728 × 90 or 336 × 280)

How to Solve Quadratic Equations (Formula, Discriminant & Completing the Square)

A quadratic equation is a second-degree polynomial equation written in standard form as ax² + bx + c = 0, where x is the unknown variable and a, b, and c are real constants with a ≠ 0. Geometrically, the function f(x) = ax² + bx + c traces a symmetric parabola that opens upward when a > 0 (with a minimum vertex) or downward when a < 0 (with a maximum vertex).

The Quadratic Formula

Universal exact solution for any ax² + bx + c = 0

x = −b ± √b² − 4ac 2a

The expression inside the square root, Δ = b² − 4ac, is called the discriminant. Evaluating Δ first immediately reveals whether the parabola intersects the x-axis twice, kisses it at a single repeated root, or sits entirely above/below it with two complex conjugate roots.

Completing the Square & Vertex Form

Deriving vertex (h, k) and axis of symmetry

y = a(x − h)² + k  |  h = −b 2a

Factoring a from the first two terms and adding/subtracting (b / 2a)² transforms standard form into Vertex Form, where h = −b / (2a) gives the axis of symmetry x = h and k = f(h) = c − b² / (4a) gives the extremum height.

Completing the Square: Step-by-Step Derivation

Step 1
Isolate Constant & Divide by a: Move c to the right side of ax² + bx + c = 0 and divide every term by a ≠ 0 to obtain x² + (b/a)x = −c/a.
Step 2
Complete the Binomial Square: Add (b / 2a)² = b² / (4a²) to both sides so the left side factors into a perfect square: (x + b / 2a)² = (b² − 4ac) / (4a²).
Step 3
Take Square Roots: Taking ±√ of both sides yields x + b / (2a) = ±√(b² − 4ac) / (2a) (introducing imaginary unit i = √−1 whenever b² − 4ac < 0).
Step 4
Isolate x & Simplify Radicals: Subtract b / (2a) to produce the quadratic formula, then factor out any largest square from |Δ| and cancel common divisors across −b, the radical coefficient, and 2a.

Discriminant Cases (Δ > 0, Δ = 0, Δ < 0) & Graph Behavior

Before simplifying radicals or plotting points, evaluating the discriminant Δ = b² − 4ac classifies the algebraic roots and geometric x-axis behavior into three mutually exclusive regimes:

Discriminant Case Root Count & Nature Parabola Graph & X-Intercepts Factored Form & Worked Preset
Δ > 0
Positive
Two distinct real roots (x₁ ≠ x₂; rational if Δ is a perfect square, irrational radical otherwise) Crosses the x-axis at two distinct points (x₁, 0) and (x₂, 0) equidistant around x = h. Factors cleanly over ℝ: a(x − x₁)(x − x₂).
Preset: x² − 5x + 6 = 0 (Δ = 1 → x = 3, 2).
Δ = 0
Zero
One repeated real root (double root of multiplicity 2: x = −b / 2a) Tangent to the x-axis at a single point: the vertex sits directly on the x-axis at (h, 0). Perfect square trinomial: a(x − r)² = 0.
Preset: x² − 6x + 9 = 0 (Δ = 0 → x = 3).
Δ < 0
Negative
Two complex conjugate roots (p ± qi where i = √−1) Never touches or crosses the x-axis; opens entirely above (a > 0) or below (a < 0) the horizontal axis. Irreducible over ℝ; complex conjugate factors over ℂ.
Preset: x² + 2x + 5 = 0 (Δ = −16 → −1 ± 2i).

Frequently Asked Questions

The Quadratic Formula x = (−b ± √(b² − 4ac)) / (2a) gives exact roots for any quadratic equation ax² + bx + c = 0. Coefficient a cannot be zero because if a = 0, the quadratic term vanishes (reducing the equation to a straight line bx + c = 0) and dividing by 2a = 0 is mathematically undefined.

When Δ > 0, the equation has two distinct real roots. When Δ = 0, it has one repeated real root where the vertex kisses the x-axis. When Δ < 0, taking the square root of a negative number yields two complex conjugate roots (p ± qi) and the parabola never intersects the real x-axis.

When coefficients are integers or terminating decimals, CobaltCalc scales the quadratic into integer form, extracts the largest perfect square factor from |Δ|, and divides −b, the outside radical coefficient, and 2a by their Greatest Common Divisor (GCD), displaying simplified radicals alongside decimal approximations.

Every parabola is symmetric about the vertical line x = h = −b / (2a). Plugging h back into the quadratic yields the extreme vertical value k = ah² + bh + c = c − b² / (4a), giving both the vertex (h, k) and exact vertex form y = a(x − h)² + k.

No—never. All quadratic computations, radical simplifications, step-by-step derivations, and SVG parabola plots execute 100% locally in your browser with zero network uploads.

Explore Our Free Calculator Series

Fast, privacy-first math & statistical utilities running 100% in your browser.

ADVERTISEMENT
Responsive Bottom Banner (728 × 90 or Auto)