Quadratic Formula

Compare Calculations

Downloads

Includes your inputs and results for this calculation, plus any additional calculations you've compared.

Solving ax² + bx + c = 0 for Every Value of x

The quadratic formula solves any equation of the form ax² + bx + c = 0 for x, using only the equation’s three coefficients. Enter a, b, and c, and this calculator finds every value of x that makes the equation true — including the case where the answer involves complex numbers rather than real ones.

A quadratic equation always has exactly two solutions when counted correctly: two distinct real numbers, one real number counted twice (a “repeated root”), or a pair of complex numbers. Which case applies depends entirely on the sign of the discriminant (the part under the square root) — this calculator tells you which one you’ve got, not just the raw numbers.

The Formula

For ax2+bx+c=0\vA{a}x^2 + \vB{b}x + \vC{c} = 0 (with a0\vA{a} \neq 0):

x=b±b24ac2ax = \frac{-\vB{b} \pm \sqrt{\vB{b}^2 - 4\vA{a}\vC{c}}}{2\vA{a}}

The term under the square root, b24ac\vB{b}^2 - 4\vA{a}\vC{c}, is called the discriminant:

DiscriminantWhat it means
PositiveTwo distinct real roots
Exactly zeroOne repeated real root
NegativeTwo complex-conjugate roots (no real solution)

Worked Example

For x23x+2=0x^2 - 3x + 2 = 0 (a=1\vA{a}=1, b=3\vB{b}=-3, c=2\vC{c}=2):

  1. Discriminant: (3)24(1)(2)=98=1(-3)^2 - 4(1)(2) = 9 - 8 = 1, which is positive, so there are two distinct real roots.
  2. x=3±12=3±12x = \frac{3 \pm \sqrt{1}}{2} = \frac{3 \pm 1}{2}.
  3. x=42=2x = \frac{4}{2} = 2 or x=22=1x = \frac{2}{2} = 1.

Checking: (1)23(1)+2=13+2=0(1)^2 - 3(1) + 2 = 1 - 3 + 2 = 0 and (2)23(2)+2=46+2=0(2)^2 - 3(2) + 2 = 4 - 6 + 2 = 0 — both solutions check out.

Key Factors to Consider

  • A quadratic equation’s solutions are exactly where its graph (a parabola) crosses the x-axis. Two distinct real roots mean the parabola crosses the x-axis at two points; a repeated root means it just touches the axis at one point (its vertex); complex roots mean the parabola never touches the x-axis at all, staying entirely above or below it.
  • The discriminant alone tells you the NATURE of the solutions before doing any further calculation. Checking whether b24acb^2 - 4ac is positive, zero, or negative is a quick way to know in advance whether an equation has two real solutions, one repeated solution, or a complex- conjugate pair, without needing to complete the rest of the formula first.
  • A quadratic equation’s a coefficient can never be zero, or it stops being quadratic. If a = 0, the x2x^2 term disappears entirely and the equation becomes linear (at most one solution, found by simple algebra) instead of quadratic — this is why the quadratic formula itself is only valid, and only needed, when a is nonzero.
  • Complex roots always come in conjugate pairs for a quadratic with real coefficients. When the discriminant is negative, the two solutions always take the form p+qip + qi and pqip - qi (identical real parts, opposite-signed imaginary parts) — this pairing is a direct consequence of the ± in the formula applied to a negative number under the square root.

Common Mistakes

  • Forgetting the ± and reporting only one root. The quadratic formula’s ± sign means there are two separate calculations to do (one with +, one with -) — stopping after the first one misses half the answer whenever the discriminant isn’t exactly zero.
  • Treating a negative discriminant as “no solution” instead of a complex solution. A negative discriminant means the equation has no REAL solution, but it still has two valid complex solutions — the equation isn’t unsolvable, just not solvable within the real numbers.
  • Entering a = 0 and expecting a quadratic answer. Without a nonzero a, the equation is linear, not quadratic, and the formula’s division by 2a is undefined — a linear equation needs simple algebra instead.

Useful to Know

  • Need just a square root or nth root rather than a full equation solve? Square Root / Nth Root Calculator calculates square roots and nth roots directly.
  • Working with exponents on their own? Exponent Calculator calculates powers and roots.
  • Need a broader calculator for trig, logs, or other functions beyond this equation? Scientific Calculator handles a full range of scientific calculations.

Source: Wikipedia: Quadratic Formula.

Frequently Asked Questions

What is the quadratic formula?

For an equation in the form ax² + bx + c = 0, the quadratic formula gives x = (-b ± √(b² - 4ac)) ÷ (2a). It solves for every value of x that makes the equation true, using only the equation's three coefficients.

What does the discriminant tell me?

The discriminant is the part under the square root, b² - 4ac. A positive discriminant means two distinct real roots, zero means exactly one repeated real root, and a negative discriminant means the two roots are complex (involving the imaginary unit i) rather than real numbers.

What if "a" is zero?

If a = 0, the equation isn't actually quadratic anymore — it's linear (bx + c = 0), which the quadratic formula can't solve since it would divide by zero. This calculator flags that case and tells you to use a linear equation instead.

Confirm Your Age

To create an account, please tell us your birth month and year.