Quadratic Equation Solver — Solve ax² + bx + c = 0 Instantly
Solve any quadratic equation ax²+bx+c=0 with step-by-step solutions. Finds real and complex roots using the quadratic formula, factoring, and discriminant.
Every quadratic equation eventually comes down to one question: where does the parabola cross the x-axis? Sometimes twice, sometimes once (just touching it), sometimes not at all. The CalcHub Quadratic Equation Solver finds those roots and explains the process — useful whether you're checking homework or working through an applied problem.
The Standard Form
A quadratic equation looks like this:
ax² + bx + c = 0where a, b, and c are real numbers and a ≠ 0. If a = 0, it's just a linear equation — nothing to solve quadratically.
How to Use the Solver
- Enter coefficients
a,b, andc. For example, 2x² − 7x + 3 = 0 means a=2, b=−7, c=3. - Click Solve.
- The roots appear along with the discriminant value and the method used.
The Quadratic Formula
The universal solution method:
x = (−b ± √(b² − 4ac)) / 2a
For 2x² − 7x + 3 = 0:
- Discriminant: (−7)² − 4(2)(3) = 49 − 24 = 25
- √25 = 5
- x₁ = (7 + 5) / 4 = 3
- x₂ = (7 − 5) / 4 = 0.5
Understanding the Discriminant
The discriminant (b² − 4ac) tells you what kind of roots to expect before you compute anything:
| Discriminant | Root Type | Geometric Meaning |
|---|---|---|
| > 0 | Two distinct real roots | Parabola crosses x-axis twice |
| = 0 | One repeated real root | Parabola just touches x-axis |
| < 0 | Two complex roots | Parabola never touches x-axis |
Examples
| Equation | a | b | c | Roots |
|---|---|---|---|---|
| x² − 5x + 6 = 0 | 1 | −5 | 6 | x = 3, x = 2 |
| x² + 4x + 4 = 0 | 1 | 4 | 4 | x = −2 (double root) |
| x² + x + 1 = 0 | 1 | 1 | 1 | x = −0.5 ± 0.866i |
| 3x² − 2x − 8 = 0 | 3 | −2 | −8 | x = 2, x = −4/3 |
Factoring vs. Formula
For "clean" equations, factoring is faster — x² − 5x + 6 = 0 factors as (x−3)(x−2) = 0, giving roots 3 and 2 at a glance. But factoring only works nicely when the roots are rational. The quadratic formula always works, which is why it's the fallback for messy coefficients like 3x² − 2x − 8.
The solver shows both approaches when factoring is possible, so you can see the connection between them.
Vertex Form and Applications
Once you have the roots, the vertex of the parabola sits exactly halfway between them at x = −b/2a. For 2x² − 7x + 3, the vertex is at x = 7/4 = 1.75. Useful for optimization problems where you need the maximum or minimum value.
What if my equation isn't in standard form?
Rearrange it first — move all terms to one side so the right side equals zero. For example, 3x² = 5x − 2 becomes 3x² − 5x + 2 = 0 before entering coefficients.
How does the solver handle complex roots?
If the discriminant is negative, the solver returns roots in the form a ± bi. For instance, x² + 4 = 0 gives roots x = 0 ± 2i, or simply x = ±2i.
Can I solve higher-degree polynomials here?
This tool is specifically for degree-2 (quadratic) equations. For cubic or quartic equations, you'd need a different solver — though many problems that look cubic can be reduced to quadratic form by factoring out an x.
Related calculators: Scientific Calculator · Graphing Calculator · Matrix Calculator