If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Understanding the quadratic formula

Gain more insight into the quadratic formula and how it is used in quadratic equations.
The quadratic formula helps you solve quadratic equations, and is probably one of the top five formulas in math.  We’re not big fans of you memorizing formulas, but this one is useful (and we think you should learn how to derive it as well as use it, but that’s for the second video!).
If you have a general quadratic equation like this:
a, x, squared, plus, b, x, plus, c, equals, 0
Then the formula will help you find the roots of a quadratic equation, i.e. the values of x where this equation is solved.

The quadratic formula

x, equals, start fraction, minus, b, plus minus, square root of, b, squared, minus, 4, a, c, end square root, divided by, 2, a, end fraction
It may look a little scary, but you’ll get used to it quickly!
Practice using the formula now.

Worked example

First we need to identify the values for a, b, and c (the coefficients). First step, make sure the equation is in the format from above, a, x, squared, plus, b, x, plus, c, equals, 0:
x, squared, plus, 4, x, minus, 21, equals, 0
  • a is the coefficient in front of x, squared, so here a, equals, 1 (note that a can’t equal 0 -- the x, squared is what makes it a quadratic).
  • b is the coefficient in front of the x, so here b, equals, 4.
  • c is the constant, or the term without any x next to it, so here c, equals, minus, 21.
Then we plug a, b, and c into the formula:
x, equals, start fraction, minus, 4, plus minus, square root of, 16, minus, 4, dot, 1, dot, left parenthesis, minus, 21, right parenthesis, end square root, divided by, 2, end fraction
solving this looks like:
x=4±1002=4±102=2±5\begin{aligned} x&=\dfrac{-4\pm\sqrt{100}}{2} \\\\ &=\dfrac{-4\pm 10}{2} \\\\ &=-2\pm 5 \end{aligned}
Therefore x, equals, 3 or x, equals, minus, 7.

What does the solution tell us?

The two solutions are the x-intercepts of the equation, i.e. where the curve crosses the x-axis. The equation x, squared, plus, 3, x, minus, 4, equals, 0 looks like:
Graphing quadratic equations
where the solutions to the quadratic formula, and the intercepts are x, equals, minus, 4 and x, equals, 1.
Now you can also solve a quadratic equation through factoring, completing the square, or graphing, so why do we need the formula?
Because sometimes quadratic equations are a lot harder to solve than that first example.

Second worked example

Let’s try this for an equation that is hard to factor:
3, x, squared, plus, 6, x, equals, minus, 10
Let’s first get it into the form where all terms are on the left-hand side:
start underbrace, left parenthesis, 3, right parenthesis, end underbrace, start subscript, a, end subscript, x, squared, plus, start underbrace, left parenthesis, 6, right parenthesis, end underbrace, start subscript, b, end subscript, x, plus, start underbrace, left parenthesis, 10, right parenthesis, end underbrace, start subscript, c, end subscript, equals, 0
The formula gives us:
x=6±62431023=6±361206=6±846\begin{aligned} x&=\dfrac{-6\pm\sqrt{6^2-4\cdot 3\cdot 10}}{2\cdot 3} \\\\ &=\dfrac{-6\pm\sqrt{36-120}}{6} \\\\ &=\dfrac{-6\pm\sqrt{-84}}{6} \end{aligned}
We know you can’t take the square root of a negative number without using imaginary numbers, so that tells us there’s no real solutions to this equation.  This means that at no point will y, equals, 0, the function won’t intercept the x-axis.  We can also see this when graphed on a calculator:
Quadratic equation shown on a calculator
Now you’ve got the basics of the quadratic formula!
There are many more worked examples in the videos to follow.

Tips when using the quadratic formula

  • Be careful that the equation is arranged in the right form: a, x, squared, plus, b, x, plus, c, equals, 0 or it won’t work!
  • Make sure you take the square root of the whole left parenthesis, b, squared, minus, 4, a, c, right parenthesis, and that 2, a is the denominator of everything above it
  • Watch your negatives: b, squared can’t be negative, so if b starts as negative, make sure it changes to a positive since the square of a negative or a positive is a positive
  • Keep the plus, slash, minus and always be on the look out for TWO solutions
  • If you use a calculator, the answer might be rounded to a certain number of decimal places. If asked for the exact answer (as usually happens) and the square roots can’t be easily simplified, keep the square roots in the answer, e.g. start fraction, 2, minus, square root of, 10, end square root, divided by, 2, end fraction and start fraction, 2, plus, square root of, 10, end square root, divided by, 2, end fraction

Next step:

Khan Academy video wrapper
Using the quadratic formulaSee video transcript
  • Prove the quadratic formula:
Khan Academy video wrapper
Proof of the quadratic formulaSee video transcript

Want to join the conversation?