Quadratic formula
Solves any quadratic equation from its three coefficients, including the cases with one root or complex roots.
Calculator
The live calculator needs JavaScript. The worked example below shows the same steps it would.
See it move
- Vertex (1, −8); axis of symmetry x = 1
- D = 64 > 0: two real roots, x = −1 and x = 3
What the symbols mean
- the solutions (roots) of the equation: the x-values where equals 0
- the coefficient of ; it must not be 0, or the equation is not quadratic
- the coefficient of (use 0 if there is no term)
- the constant term (use 0 if there is none)
- "plus or minus": take + for one root and − for the other
When to use it
Use it for any equation that can be rearranged into the form , especially when it does not factorise neatly. First move every term to one side and make the other side 0; then read off a, b and c with their signs. If the equation factorises easily (like ), factorising is quicker, but the formula always works.
Worked example
Solve 2x² − 4x − 6 = 0. Here a = 2, b = −4 and c = −6.
Use the quadratic formula with , , .
Work out the discriminant, the part under the square root.
D is positive, so there are two different real roots.
Take the + sign:
Take the − sign:
Answer x = 3 or x = −1
Why it works
It comes from completing the square on : divide by a, move c/a across, add to both sides so the left side becomes , then take the square root of both sides. The ± appears because both the positive and the negative square root square to the same number.
Common mistakes
- Dropping the sign of b: with b = −4, the top starts , and , not −16.
- Dividing only the square root by 2a. The whole numerator, , is over .
- Using the formula before the equation equals 0. must first become , so c = −10.
- Stopping at "no solution" when the discriminant is negative: there are no real roots, but there are two complex ones.