Guide

Solving quadratic equations with the quadratic formula

By Viktor Lassen4 min readUpdated 3 September 2026

A quadratic equation axΒ² + bx + c = 0 is solved with one formula. Find a, b and c, put them in, and the part under the square root tells you in advance whether you get two solutions, one or none.

A quadratic equation, ax2+bx+c=0ax^2 + bx + c = 0, is solved with one formula. The whole job is to find aa, bb and cc in your equation, put them into the formula, and work out the two answers. The usual hurdle is keeping the signs right along the way.

When do I use this?

You use the formula whenever you have to solve an equation of the form ax2+bx+c=0ax^2 + bx + c = 0. Solving it is exactly the same as finding the roots of the quadratic function f(x)=ax2+bx+cf(x) = ax^2 + bx + c, that is the places where the parabola crosses the x-axis. If your equation is already written as two brackets multiplied together, the zero product rule is quicker.

The formula

When we solve quadratic equations, we use a formula that looks like this:

x=βˆ’bΒ±b2βˆ’4ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

The part under the square root, b2βˆ’4acb^2 - 4ac, is the piece that decides how many solutions there are. It has a name too, the discriminant, though at GCSE you'll mostly just hear it called the bit under the square root. The sign Β±\pm means both plus and minus. That means we can have 2 solutions: one with +b2βˆ’4ac+\sqrt{b^2 - 4ac} and one with βˆ’b2βˆ’4ac-\sqrt{b^2 - 4ac}. The parabola can cross the x-axis in 2 places, after all. It doesn't always, though, and that's where the part under the square root comes in.

What the part under the square root tells you

The value of b2βˆ’4acb^2 - 4ac tells us something about how many solutions the quadratic equation has. There is more than one possibility:

b2βˆ’4ac<0:noΒ solutionsb^2 - 4ac < 0: \text{no solutions}

b2βˆ’4ac=0:1Β solutionb^2 - 4ac = 0: \text{1 solution}

b2βˆ’4ac>0:2Β solutionsb^2 - 4ac > 0: \text{2 solutions}

How do we know this? The number b2βˆ’4acb^2 - 4ac sits under a square root. You can't find 2 numbers that give a negative number when multiplied by themselves, so you can't take the square root of a negative number. If you multiply a negative number by itself, you always get a positive number. Minus times minus gives plus. So we know there are no solutions if b2βˆ’4acb^2 - 4ac is below 00.

If b2βˆ’4ac=0b^2 - 4ac = 0, we take the square root of 00, which just gives 00, and then it makes no difference whether there's a plus or a minus in front of it. So there is only 1 solution when b2βˆ’4ac=0b^2 - 4ac = 0.

If b2βˆ’4acb^2 - 4ac is bigger than 00, a positive number, the Β±\pm sign comes into play. Then there are 2 solutions: one where we use βˆ’- and one where we use ++. This becomes clearer in the example we take now.

Worked example

Let's take a small example of a quadratic equation:

βˆ’2x2+5xβˆ’1=0-2x^2 + 5x - 1 = 0

We want to solve this equation, but before we do, notice how it's tied to the quadratic function. Solving this quadratic equation is the same as finding the roots of the function

f(x)=βˆ’2x2+5xβˆ’1f(x) = -2x^2 + 5x - 1

The graph of f(x) = -2x^2 + 5x - 1 crosses the x-axis at x = 0.219 and x = 2.281

So we have to find the x-values of these 2 crossing points with the x-axis. To find them, we use the quadratic formula:

x=βˆ’bΒ±b2βˆ’4ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

Now we have to identify aa, bb and cc. We remember that the general quadratic function has the equation

f(x)=ax2+bx+cf(x) = ax^2 + bx + c

When we look at our equation, we can see that

a=βˆ’2a = -2

b=5b = 5

c=βˆ’1c = -1

It's important to remember the signs on the numbers. All we have to do now is put our numbers into their places in the formula:

x=βˆ’5Β±52βˆ’4Γ—(βˆ’2)Γ—(βˆ’1)2Γ—(βˆ’2)x = \frac{-5 \pm \sqrt{5^2 - 4 \times (-2) \times (-1)}}{2 \times (-2)}

Now we just simplify:

x=βˆ’5Β±52βˆ’8βˆ’4x = \frac{-5 \pm \sqrt{5^2 - 8}}{-4}

x=βˆ’5Β±17βˆ’4x = \frac{-5 \pm \sqrt{17}}{-4}

Now that we've simplified, we look at the plus solution (the one with ++) and the minus solution (the one with βˆ’-):

βˆ’5+17βˆ’4andβˆ’5βˆ’17βˆ’4\frac{-5 + \sqrt{17}}{-4} \quad \text{and} \quad \frac{-5 - \sqrt{17}}{-4}

When we work these two fractions out, we get

βˆ’5+17βˆ’4β‰ˆ0.219andβˆ’5βˆ’17βˆ’4β‰ˆ2.281\frac{-5 + \sqrt{17}}{-4} \approx 0.219 \quad \text{and} \quad \frac{-5 - \sqrt{17}}{-4} \approx 2.281

So these are our 2 solutions to the equation. We can also see on the graph of the quadratic function that they match the roots.

Common mistakes

  • "I put the numbers in, but forgot their signs." Here a=βˆ’2a = -2 and c=βˆ’1c = -1, both negative. In βˆ’4ac-4ac that gives βˆ’4Γ—(βˆ’2)Γ—(βˆ’1)=βˆ’8-4 \times (-2) \times (-1) = -8, not +8+8. Write aa, bb and cc down with their signs before you touch the formula.
  • "The formula gives one answer." The Β±\pm means both plus and minus, so there is a plus solution and a minus solution. Work out both.
  • "The discriminant is negative, so I take the square root anyway." You can't take the square root of a negative number, so the equation has no solutions. The parabola never reaches the x-axis.
  • "The equation and the graph are two different problems." They're the same problem. The solutions are the x-values where the graph crosses the x-axis, which is also the easiest way to check your answer.

The idea behind all of this, the parabola and its roots, is in Quadratic functions and the parabola. If the equation is written as brackets multiplied together, use the zero product rule instead, and to see how the roots sit inside the brackets, read factorising quadratics. The discriminant turns up once more when we find the turning point of a parabola.

Frequently asked questions

Read next

Want to get good at maths?

Mathara explains every topic step by step with videos, exercises and personal feedback.

πŸ‘‰ Get started for free