Algebra

Quadratic Formula

The go-to method for solving any quadratic equation.

The Formula
x = (-b ± b²-4ac) / 2a
Used for: Solving quadratic equations of the form ax² + bx + c = 0
aCoefficient of x²
bCoefficient of x
cConstant term

🎯 The Discriminant: b² - 4ac

The expression under the square root tells you what kind of solutions to expect:

✓✓b² - 4ac > 0

Two distinct real solutions

b² - 4ac = 0

One repeated real solution

b² - 4ac < 0

Two complex solutions

📝 Worked Examples

Two Real Solutions

Solve: x² - 5x + 6 = 0
1
Identify coefficientsa = 1, b = -5, c = 6
2
Calculate discriminantb² - 4ac = 25 - 24 = 1
3
Apply formulax = (5 ± √1) / 2
4
Find solutionsx = 3 or x = 2
Answer: x = 3 and x = 2

One Real Solution

Solve: x² - 6x + 9 = 0
1
Identifya = 1, b = -6, c = 9
2
Discriminantb² - 4ac = 36 - 36 = 0
3
Apply formulax = 6/2 = 3
Answer: x = 3 (repeated root)

Complex Solutions

Solve: x² + 2x + 5 = 0
1
Identifya = 1, b = 2, c = 5
2
Discriminantb² - 4ac = 4 - 20 = -16
3
Apply formulax = (-2 ± 4i) / 2
Answer: x = -1 + 2i and x = -1 - 2i

💡 Pro Tips

Check your signs

The formula has -b, so if b is negative, it becomes positive!

Discriminant first

Calculate b² - 4ac before the full formula to know what to expect

Simplify radicals

Always simplify √(b² - 4ac) before dividing by 2a

Practice with Our Calculator

Calculate instantly with step-by-step solutions.

Open Calculator →