Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

How to Use the Quadratic Formula

The quadratic formula solves every equation ax2+bx+c=0ax^2 + bx + c = 0. Put the equation in standard form, read off aa, bb and cc, compute the discriminant, and substitute. It is slower than factoring but never fails.

Recognize the task

Any quadratic equation, especially one that does not factor nicely: 2x2−4x−3=02x^2 - 4x - 3 = 0, x2+2x+5=0x^2 + 2x + 5 = 0, 3x2=2x+13x^2 = 2x + 1. Test: the highest power is 22. If it factors in under a minute, factoring is faster.
The formula is the quadratic formula, derived in the lesson by completing the square.

Steps

StepOn 2x2−4x−3=02x^2 - 4x - 3 = 0
1Write the equation in standard form. Everything on one side, in the order ax2+bx+c=0ax^2 + bx + c = 0.Addition property of equality ↗already in standard form
2Read off a, b and c with their signs. A missing term has coefficient 00.a=2a = 2, b=−4b = -4, c=−3c = -3
3Compute the discriminant. Δ=b2−4ac\Delta = b^2 - 4ac (discriminant). Positive: two real roots; zero: one; negative: none real.Δ=16+24=40\Delta = 16 + 24 = 40
4Substitute into the formula and simplify. x=−b±Δ2ax = \frac{-b \pm \sqrt{\Delta}}{2a}. Simplify the root, then cancel a common factor from the whole numerator.x=4±404=4±2104=2±102≈2.58,−0.58x = \frac{4 \pm \sqrt{40}}{4} = \frac{4 \pm 2\sqrt{10}}{4} = \frac{2 \pm \sqrt{10}}{2} \approx 2.58, -0.58

Worked examples

Example 1 · two rational roots

perfect-square discriminant
x2+6x+5=0x^2 + 6x + 5 = 0: Δ=36−20=16\Delta = 36 - 20 = 16
x=−6±42=−1x = \frac{-6 \pm 4}{2} = -1 or −5-5

Example 2 · not in standard form

rearrange first
3x2=2x+1  ⇒  3x2−2x−1=03x^2 = 2x + 1 \;\Rightarrow\; 3x^2 - 2x - 1 = 0
a=3a = 3, b=−2b = -2, c=−1c = -1
Δ=4+12=16\Delta = 4 + 12 = 16, x=2±46=1x = \frac{2 \pm 4}{6} = 1 or −13-\tfrac{1}{3}

Example 3 · negative discriminant

no real roots
x2+2x+5=0x^2 + 2x + 5 = 0: Δ=4−20=−16<0\Delta = 4 - 20 = -16 < 0
no real solutions; complex roots x=−1±2ix = -1 \pm 2i
The quadratic equation calculator shows each step for your own equation.

See it happen

Drag the marble. Solutions are x where the curve hits level n. The sign chart shows where f(x) − n is positive vs negative.
← → nudge · shift+drag snap · [ ] step · space play · r reset
x² − 4=0
y0204060n = 0x-8-7-6-5-4-3-2-1012345678-22
f(x)level nsolution/trail
f(0) = -4, n = 0 → not a solution (off by 4)
speed0.6×
solutions-2, 2
Templates & parameters
f(x) = ax² + bx + c ; solve f(x) = n
a (x²)
+1
-3013
b (x)
0
-505
c
−4
-8-408
level n
0
-10010
Sign chart of f(x) − n
x < -2-2-2 – 22x > 2
f(x) − n+0−0+
Explanation
at x = 0
f(0)= -4−
n= 00
f(x) \u2212 n= -4−
f(x) \u2212 n = -4 \u2260 0 \u2192 not a solution
Here f is below level n = 0 by 4. Solutions are at -2, 2; click any to jump.
The two roots sit symmetrically around the axis of the parabola, at x=−b2ax = -\frac{b}{2a}. The formula reads exactly that way: start at the axis, −b2a-\frac{b}{2a}, and step Δ2a\frac{\sqrt{\Delta}}{2a} to each side.

Common mistakes

Losing the sign of b

✗ −b=−4-b = -4 when b=−4b = -4
✓ −b=4-b = 4

Squaring a negative b wrongly

✗ b2=−16b^2 = -16 for b=−4b = -4
✓ (−4)2=16(-4)^2 = 16

Dividing only part of the numerator

✗ x=−b±Δ2ax = -b \pm \frac{\sqrt{\Delta}}{2a}
✓ the whole numerator is over 2a2a

Cancelling into the root only

✗ 4±2104=4±102\frac{4 \pm 2\sqrt{10}}{4} = 4 \pm \frac{\sqrt{10}}{2}
✓ divide every term: 1±1021 \pm \frac{\sqrt{10}}{2}