Quadratic Formula Calculator
Solve any quadratic equation ax² + bx + c = 0 with the quadratic formula. Get exact roots as simplified radicals or complex numbers, plus the discriminant.
The quadratic formula
A quadratic equation has the form , where , , and are numbers and . Its solutions — the values of that make it true — are given by the quadratic formula:
The sign is what produces the two roots: one using , one using . Everything hinges on the quantity under the square root.
The discriminant decides everything
The expression under the radical, , is called the discriminant. Its sign alone tells you how many roots there are and what kind — before you finish solving:
| Discriminant | Roots | Example |
|---|---|---|
| Two distinct real roots | ||
| One repeated (double) real root | ||
| Two complex conjugate roots |
Worked example — two real roots
Solve , so , , .
- Discriminant: . Since , there are two distinct real roots.
- Substitute: .
- Simplify the radical: , so .
- Roots: and .
The two roots are exact as radicals; the decimals are rounded approximations.
Worked example — complex roots
Solve , so , , .
- Discriminant: . Since , the roots are complex.
- Substitute: .
- Handle the negative root: , since . So .
- Reduce: dividing through by 2, .
The two roots are complex conjugates — the same real part with opposite imaginary parts.
Simplifying the radical
The reason the answers show radicals like rather than long decimals is that a simplified radical is exact. To simplify : factor out the largest perfect square, , then pull out , leaving . The same step turns into . See the Simplify Radicals calculator for that step on its own.
The connection to completing the square
The quadratic formula is not magic — it is what you get by completing the square on the general equation . Rewriting the left side as and solving for reproduces the formula exactly. If you want to see that intermediate vertex form, use the Completing the Square calculator; it is the same math, shown a different way.
Where quadratics show up
Quadratic equations model projectile motion (height over time), area and optimization problems, parabolic shapes in physics and engineering, and break-even points in finance. Any time a relationship squares one quantity, a quadratic — and this formula — is close behind.
Frequently asked questions
- What is the quadratic formula?
- The quadratic formula solves any equation of the form (with ). The roots are . The produces the two solutions, and the expression under the root is the discriminant.
- What is the discriminant and why does it matter?
- The discriminant is — the part under the square root. Its sign tells you the nature of the roots without solving: gives two distinct real roots, gives one repeated (double) root, and gives two complex conjugate roots.
- Why does this calculator show a radical like 4 + √11 instead of a decimal?
- When the discriminant is not a perfect square, the roots are irrational — their decimals never end or repeat. The exact answer is a simplified radical, for example , and the decimal is only an approximation. The radical form is exact.
- What happens when a = 0?
- If the term disappears and the equation is linear (), not quadratic — the quadratic formula divides by , so it is undefined. This calculator reports that case as "not quadratic"; enter a nonzero .
- How do complex roots work?
- When the square root of a negative number is imaginary (), so the two roots are complex conjugates . For example has roots .
- Is the quadratic formula the same as completing the square?
- Yes — the quadratic formula is derived by completing the square on the general equation . Completing the square rewrites it as ; solving that for gives exactly the quadratic formula.