Skip to content
Advertisement
Hosinger Special Offer

Quadratic Solver

Quadratic Solver from Gizcalc helps you estimate results quickly within the Math & Statistics category.

  • Instant results
  • Charts & tables
  • Save & compare
  • Private – runs in your browser
Roots —

Sample inputs are pre-filled so you can see a result quickly. Results are estimates only and may not be accurate because prices, interest rates, taxes, fees, fuel costs, tariffs, market returns, medical costs, and local rules can change. Please verify current values before making financial, tax, legal, medical, or business decisions.

Formula used

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

  • a, b, c = the coefficients of x², x and the constant term
  • D = the discriminant, b² − 4ac

About the Quadratic Solver

What is the Quadratic Solver?

A quadratic equation has the form ax² + bx + c = 0 with a ≠ 0. Its graph is a parabola, and its solutions (roots) are the x-values where the parabola crosses the x-axis. Quadratics describe projectile motion, area problems, profit maximisation and many physics formulas.

Enter the three coefficients and the solver applies the quadratic formula. The discriminant b² − 4ac tells you what kind of roots to expect: positive gives two real roots, zero gives one repeated root and negative gives a pair of complex conjugate roots. The vertex is the turning point of the parabola.

How to use the Quadratic Solver

  1. a (coefficient of x²) — cannot be 0 (otherwise the equation is linear). (sample: 1)
  2. b (coefficient of x) — enter 0 if there is no x term. (sample: -5)
  3. c (constant) — enter 0 if there is no constant term. (sample: 6)
  4. Press Solve Equation (results also refresh as you type). The result card shows the Roots, along with Discriminant (b² − 4ac), Nature of roots, Vertex (h, k) and Sum of roots (−b/a).

Formula used

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

  • a, b, c = the coefficients of x², x and the constant term
  • D = the discriminant, b² − 4ac

Vertex: h = −b ÷ 2a and k = ah² + bh + c. By Vieta's formulas the two roots always add up to −b/a and multiply to c/a.

Worked example

These are the sample values already filled in the calculator above, and the result it returns for them:

InputSample value
a (coefficient of x²)1
b (coefficient of x)-5
c (constant)6
ResultValue
Rootsx₁ = 3, x₂ = 2
Discriminant (b² − 4ac)1
Nature of rootsTwo distinct real roots
Vertex (h, k)(2.5, -0.25)
Sum of roots (−b/a)5
Product of roots (c/a)6

Tips for using the Quadratic Solver

  • Move every term to one side first: x² = 5x − 6 becomes x² − 5x + 6 = 0, so a = 1, b = −5 and c = 6.
  • If a is negative the parabola opens downward and the vertex is a maximum — useful for maximum height or maximum profit problems.
  • Check a root by substituting it back: for x = 2, 2² − 5 × 2 + 6 = 0.

Frequently asked questions

For ax² + bx + c = 0, x = (−b ± √(b² − 4ac)) ÷ 2a. The ± gives the two roots.

D = b² − 4ac. If D > 0 there are two different real roots, if D = 0 there is one repeated real root, and if D < 0 there are two complex roots and the parabola never touches the x-axis.

When the discriminant is negative, the square root in the formula is imaginary. For x² + 2x + 5 = 0, D = −16 and the roots are x = −1 ± 2i.

The x-coordinate is h = −b ÷ 2a; substitute it into the equation to get k. For x² − 5x + 6, h = 2.5 and k = −0.25.

Yes, when the roots are rational. x² − 5x + 6 = (x − 2)(x − 3), so x = 2 or x = 3. The formula works for every quadratic, including ones that do not factor neatly.