Quadratic Formula: How to Use It, the Discriminant, Surds, Derivation and 15 Worked Examples
The quadratic formula explained for GCSE and A level: finding a, b and c, the discriminant, surd and decimal answers, when to factorise or complete the square, the derivation, calculator tips and 15 worked examples.
The quadratic formula, x = (−b ± √(b² − 4ac)) / 2a, solves any quadratic equation written as ax² + bx + c = 0, where a is not zero. Substitute a, b and c, work out the discriminant b² − 4ac, take its square root, then divide by 2a. It finds both roots, even when factorising fails.
This guide from FLN Tutors (Freelancer Network) maths tutors is written for GCSE Higher and A level students. It shows how to read off a, b and c correctly, what the discriminant tells you before you finish, how to give answers as surds or decimals, and how to decide between factorising, completing the square and the formula.
There are 15 worked examples, from whole-number roots to hidden quadratics and problems in context. Every root was checked by substituting it back into the original equation.
What is the quadratic formula?
A quadratic equation is any equation that can be rearranged into the form ax² + bx + c = 0, where a, b and c are numbers and a is not zero. The quadratic formula gives the values of x that make the equation true. These values are called the roots or solutions, and on a graph they are the points where the curve y = ax² + bx + c crosses the x axis.
| Key fact | Detail |
|---|---|
| Standard form | ax² + bx + c = 0, with a ≠ 0 |
| The formula | x = (−b ± √(b² − 4ac)) / 2a |
| What divides by 2a | The whole top line, not just the square root |
| Discriminant | b² − 4ac |
| Discriminant positive | Two different real roots |
| Discriminant zero | One repeated real root |
| Discriminant negative | No real roots |
| Discriminant a perfect square | Rational roots, so the quadratic factorises |
| Exact answers | Leave the square root as a surd and simplify |
| Rounded answers | Use the full calculator value, then round at the end |
| Where it comes from | Completing the square on ax² + bx + c = 0 |
The ± sign means you do the calculation twice: once adding the square root and once subtracting it. That is why a quadratic usually has two answers.
In England, solving quadratics by factorising appears in the AQA GCSE Mathematics (8300) content statement A18, which also covers completing the square and the quadratic formula. You can read the wording in the AQA GCSE Maths algebra content. The AQA Higher tier formulae sheet for exams in 2027 prints the quadratic formula, but the Foundation sheet does not, so check the current sheet for your own board and year.
How do you use the quadratic formula step by step?
Use the same five steps every time, each on its own line.
- Rearrange the equation so one side is zero, in the order ax² + bx + c = 0.
- Write down a, b and c, including their signs.
- Work out the discriminant b² − 4ac on its own line.
- Substitute into x = (−b ± √(b² − 4ac)) / 2a and write the two versions, one with + and one with −.
- Simplify exactly, or use a calculator and round to the accuracy the question asks for.
Read the question for clues. "Give your answers to 2 decimal places" suggests irrational roots and the formula. "Give your answers in the form p ± √q" asks for exact surds. "Solve by factorising" means the formula will not earn the method marks.
How do you find a, b and c?
The value of a is the number in front of x², b is the number in front of x, and c is the number on its own. The equation must equal zero first, and you must keep the sign that sits in front of each term.
| Equation | Rearranged | a | b | c |
|---|---|---|---|---|
| x² + 5x + 6 = 0 | already zero | 1 | 5 | 6 |
| 2x² − 7x + 3 = 0 | already zero | 2 | −7 | 3 |
| x² − 4x − 7 = 0 | already zero | 1 | −4 | −7 |
| 3x² = 5x + 2 | 3x² − 5x − 2 = 0 | 3 | −5 | −2 |
| 9 − x² = 2x | −x² − 2x + 9 = 0 | −1 | −2 | 9 |
| 2x² − 9 = 0 | no x term | 2 | 0 | −9 |
Three habits prevent most coefficient errors.
- If x² has no number in front, a is 1. The same applies to x on its own, which means b is 1.
- A missing term means its coefficient is zero. It does not mean you can ignore it in the formula.
- Order matters less than signs. In 9 − x² = 2x, rearranging gives −x² − 2x + 9 = 0, so a is −1. Many students prefer to multiply every term by −1 first, giving x² + 2x − 9 = 0, which has the same roots and a positive a.
Fractions can be cleared first: multiplying every term by the same non-zero number does not change the roots, as Example 10 shows.
What does the discriminant tell you?
The discriminant is the expression under the square root, b² − 4ac. Working it out first tells you how many real roots there are before you do any more work.
| Value of b² − 4ac | Number of real roots | What the graph does |
|---|---|---|
| Positive | Two distinct real roots | Crosses the x axis twice |
| Zero | One repeated real root | Touches the x axis at its turning point |
| Negative | No real roots | Never meets the x axis |
A negative number has no real square root, so in GCSE and A level Maths a negative discriminant means no real solutions, which is a full answer. When the discriminant is zero, adding and subtracting zero gives the same value, so the two roots coincide.
A positive discriminant that is also a perfect square, such as 1, 25 or 169, tells you something extra. When a, b and c are whole numbers, the roots will be whole numbers or fractions, so the quadratic will factorise. If the discriminant is positive but not a perfect square, the roots are irrational and you need the formula or completing the square.
At A level, questions often run the other way: you are told how many roots there are and must find an unknown constant. Two distinct real roots means b² − 4ac is greater than zero, equal roots means it equals zero, no real roots means it is less than zero, and real roots means it is greater than or equal to zero. Example 13 shows one in full.
How do you give answers as surds or decimals?
Exact answers keep the square root. To simplify a surd, look for the largest square number that divides the number under the root. For example, √44 = √4 × √11 = 2√11, and √72 = √36 × √2 = 6√2.
After simplifying the surd, check whether every term on the top shares a factor with the bottom. In (4 ± 2√11) / 2, every term divides by 2, giving 2 ± √11. In (−2 ± 2√13) / 6, every term divides by 2, giving (−1 ± √13) / 3. Do not divide just one term: (4 ± 2√11) / 2 is not 4 ± √11.
Decimal answers come from the calculator. Find the discriminant, take the square root and keep the full value on the display or in memory. Only round once you have each final root. Rounding √11 to 3.3 and then adding 2 gives 5.3, but the correct value of 2 + √11 is 5.316..., which is 5.32 to 2 decimal places. Early rounding is one of the most common ways to lose an accuracy mark.
With no instruction and irrational roots, an exact surd is the safer choice. Answers in context, such as a time or a length, are better as a sensible decimal with units.
When should you factorise, complete the square or use the formula?
All three methods give the same roots when they work, so choose the one that is quickest and safest for the equation in front of you.
| Method | Best when | Watch out for |
|---|---|---|
| Factorising | Small whole-number coefficients and a discriminant that is a perfect square | Wasting time hunting for factors that do not exist |
| Completing the square | a is 1 and b is even, or the question also asks for the turning point | Fractions appear when b is odd or a is not 1 |
| Quadratic formula | Answers to decimal places, awkward coefficients, or when nothing else is obvious | Sign errors with negative b or c |
In exams, use any method the question names. Otherwise spend a few seconds looking for factors, and if none appear, use the formula. Working out b² − 4ac first is a fast test: a perfect square means factorising was possible.
Completing the square also gives the turning point: x² + 6x + 2 = (x + 3)² − 7 has its turning point at (−3, −7). Example 15 compares the two methods.
How is the quadratic formula derived?
The formula comes from completing the square on the general equation. Knowing the proof shows why the formula works and why the discriminant matters.
Start with ax² + bx + c = 0, where a is not zero.
- Divide every term by a: x² + (b/a)x + c/a = 0.
- Move the constant across: x² + (b/a)x = −c/a.
- Add the square of half the x coefficient, which is (b/2a)², to both sides: x² + (b/a)x + (b/2a)² = (b/2a)² − c/a.
- The left side is now a perfect square: (x + b/2a)² = b²/4a² − c/a.
- Write the right side over a common denominator of 4a²: (x + b/2a)² = (b² − 4ac) / 4a².
- Take the square root of both sides, remembering ±: x + b/2a = ± √(b² − 4ac) / 2a.
- Subtract b/2a from both sides: x = (−b ± √(b² − 4ac)) / 2a.
Step 5 explains the discriminant. The left side is a square, so it can never be negative. If b² − 4ac is negative, the right side is negative, and no real value of x can make the two sides equal.
How do you use a calculator for the quadratic formula?
A calculator speeds up the arithmetic, but most of the marks are for the method, so show each stage in writing.
- Work out b² − 4ac on its own first and write the result down. This gives a method mark and tells you how many roots to expect.
- Put negative numbers in brackets. Typing −3² on many calculators gives −9, because the square is applied before the minus sign. Typing (−3)² gives 9, which is what the formula needs.
- Use the fraction button or brackets for the division, so that the whole top line is divided by 2a.
- Store the square root of the discriminant in memory, or use the answer key, so you do not round it early.
- Many scientific calculators have an equation or polynomial mode that solves quadratics directly. Use it to check your roots, not to replace your written working, because an answer with no method may not get full marks.
Finally, substitute each root back into the original equation as a check.
What are some worked examples of the quadratic formula?
Each example lists a, b and c, finds the discriminant, then gives the roots. Rounded answers use the full calculator value.
Example 1: whole-number roots
Solve x² + 5x + 6 = 0.
a = 1, b = 5, c = 6. The discriminant is 5² − 4 × 1 × 6 = 25 − 24 = 1. So x = (−5 ± √1) / 2 = (−5 ± 1) / 2. The two roots are x = −4 ÷ 2 = −2 and x = −6 ÷ 2 = −3. The discriminant 1 is a perfect square, so this equation also factorises as (x + 2)(x + 3) = 0.
Example 2: a is not 1
Solve 2x² − 7x + 3 = 0.
a = 2, b = −7, c = 3. The discriminant is (−7)² − 4 × 2 × 3 = 49 − 24 = 25. So x = (7 ± 5) / 4, because −b is −(−7) = 7. The roots are x = 12 ÷ 4 = 3 and x = 2 ÷ 4 = 0.5. Check: 2 × 3² − 7 × 3 + 3 = 18 − 21 + 3 = 0.
Example 3: negative b and c, exact answer
Solve x² − 4x − 7 = 0, giving your answers in the form p ± √q.
a = 1, b = −4, c = −7. The discriminant is (−4)² − 4 × 1 × (−7) = 16 + 28 = 44. So x = (4 ± √44) / 2 = (4 ± 2√11) / 2 = 2 ± √11. As decimals, x = 5.32 or x = −1.32 to 2 decimal places.
Example 4: answers to 2 decimal places
Solve 3x² + 2x − 4 = 0, giving your answers to 2 decimal places.
a = 3, b = 2, c = −4. The discriminant is 2² − 4 × 3 × (−4) = 4 + 48 = 52. So x = (−2 ± √52) / 6. With √52 = 7.2111..., x = 5.2111... ÷ 6 = 0.87 and x = −9.2111... ÷ 6 = −1.54. In exact form, √52 = 2√13, so x = (−1 ± √13) / 3.
Example 5: rearranging first
Solve x(x + 3) = 5, giving your answers to 2 decimal places.
Expand and rearrange: x² + 3x = 5, so x² + 3x − 5 = 0. Now a = 1, b = 3, c = −5. The discriminant is 3² − 4 × 1 × (−5) = 9 + 20 = 29. So x = (−3 ± √29) / 2, giving x = 1.19 or x = −4.19. Using c = 5 from the original equation is a common mistake.
Example 6: a negative value of a
Solve −x² + 6x − 2 = 0, giving exact answers.
a = −1, b = 6, c = −2. The discriminant is 6² − 4 × (−1) × (−2) = 36 − 8 = 28. So x = (−6 ± √28) / (−2) = (−6 ± 2√7) / (−2) = 3 ∓ √7, which gives the same pair of values as 3 ± √7. Multiplying the equation by −1 first gives x² − 6x + 2 = 0 and the same answer with less sign work. As decimals, x = 0.35 or x = 5.65.
Example 7: a discriminant of zero
Solve 4x² − 12x + 9 = 0.
a = 4, b = −12, c = 9. The discriminant is (−12)² − 4 × 4 × 9 = 144 − 144 = 0. So x = (12 ± 0) / 8 = 1.5. There is one repeated root, and the graph of y = 4x² − 12x + 9 touches the x axis at (1.5, 0). The equation is a perfect square: (2x − 3)² = 0.
Example 8: a negative discriminant
Solve x² + 2x + 5 = 0.
a = 1, b = 2, c = 5. The discriminant is 2² − 4 × 1 × 5 = 4 − 20 = −16. A negative number has no real square root, so the equation has no real solutions. Completing the square confirms it: x² + 2x + 5 = (x + 1)² + 4, which is never less than 4.
Example 9: no x term
Solve 2x² − 9 = 0, giving exact answers.
a = 2, b = 0, c = −9. The discriminant is 0² − 4 × 2 × (−9) = 72. So x = ± √72 / 4 = ± 6√2 / 4 = ± 3√2 / 2, which is about ± 2.12. Rearranging to x² = 4.5 and square rooting is faster.
Example 10: clearing a fraction
Solve x²/2 − x − 3 = 0, giving exact answers.
Multiply every term by 2: x² − 2x − 6 = 0. Now a = 1, b = −2, c = −6. The discriminant is 4 + 24 = 28. So x = (2 ± √28) / 2 = (2 ± 2√7) / 2 = 1 ± √7. As decimals, x = 3.65 or x = −1.65.
Example 11: an area problem
A rectangle is 3 cm longer than it is wide, and its area is 40 cm². Find its dimensions.
Let the width be w cm. Then w(w + 3) = 40, so w² + 3w − 40 = 0. Here a = 1, b = 3, c = −40, and the discriminant is 9 + 160 = 169. So w = (−3 ± 13) / 2, giving w = 5 or w = −8. A length cannot be negative, so the width is 5 cm and the length is 8 cm. Check: 5 × 8 = 40 cm².
Example 12: a projectile in context
A ball is thrown upwards from a height of 1.5 m. A simple model gives its height after t seconds as h = 1.5 + 12t − 4.9t². When does it hit the ground?
The ground is h = 0, so −4.9t² + 12t + 1.5 = 0. Here a = −4.9, b = 12, c = 1.5. The discriminant is 144 − 4 × (−4.9) × 1.5 = 144 + 29.4 = 173.4, and its square root is 13.168... So t = (−12 ± 13.168...) / (−9.8), giving t = −0.12 or t = 2.57. Time after the throw cannot be negative, so the ball lands after about 2.57 seconds.
Example 13: finding an unknown with the discriminant
Find the values of k for which x² + kx + 9 = 0 has equal roots.
Equal roots means the discriminant is zero: k² − 4 × 1 × 9 = 0, so k² = 36 and k = 6 or k = −6. With k = 6 the equation becomes (x + 3)² = 0, and with k = −6 it becomes (x − 3)² = 0.
Example 14: a hidden quadratic
Solve x⁴ − 5x² + 4 = 0.
Let u = x². The equation becomes u² − 5u + 4 = 0, with a = 1, b = −5, c = 4. The discriminant is 25 − 16 = 9, so u = (5 ± 3) / 2, giving u = 4 or u = 1. Then x² = 4 or x² = 1, so x = 2, −2, 1 or −1.
Example 15: formula against completing the square
Solve x² + 6x + 2 = 0 by both methods.
Completing the square: x² + 6x + 2 = (x + 3)² − 9 + 2 = (x + 3)² − 7. So (x + 3)² = 7, x + 3 = ± √7 and x = −3 ± √7. Formula: a = 1, b = 6, c = 2, and the discriminant is 36 − 8 = 28. So x = (−6 ± √28) / 2 = (−6 ± 2√7) / 2 = −3 ± √7. Both methods agree, giving x = −0.35 or x = −5.65 to 2 decimal places.
How are quadratic word problems set up?
Most quadratic questions in context follow the same pattern. Read the question, choose a letter for the unknown, write an equation from the facts, rearrange it so one side is zero, solve, and then decide which roots make sense.
The last step is the one students most often forget. Lengths, areas and prices cannot be negative, a negative time is usually outside the model, and counts must be whole numbers. Say which root you reject and why, and give units.
Typical contexts include:
- areas of rectangles and triangles where one side is written in terms of another;
- Pythagoras' theorem with sides such as x, x + 2 and a known hypotenuse;
- objects thrown or dropped, where height depends on time;
- consecutive numbers whose product is given;
Kinematics questions in physics and A level mechanics use the same idea. The SUVAT equations guide shows how the displacement equation becomes a quadratic in time.
What mistakes do students make with the quadratic formula?
- Not rearranging to zero first. In x² + 3x = 5, c is −5, not 5.
- Losing the sign of b. If b is −4, then −b is +4.
- Squaring a negative on the calculator without brackets, which turns 9 into −9.
- Forgetting that −4ac becomes addition when a or c is negative, as in Example 3.
- Dividing only the square root by 2a instead of the whole top line.
- Rounding the square root before the final step.
- Taking only the + version and giving one root.
- Simplifying (4 ± 2√11) / 2 as 4 ± √11 instead of 2 ± √11.
- Keeping a negative length or time in a context question without comment.
Brackets around every substituted value prevent most of these.
The order of operations inside the formula follows the BODMAS rule.
Where does the quadratic formula appear later in maths?
- Sequences. Finding which term of a quadratic sequence equals a given value means solving a quadratic; see the nth term guide.
- Trigonometry. The cosine rule can give a quadratic when the unknown side is next to the known angle, linked to the ambiguous case of the sine rule.
- Simultaneous equations. A line meeting a curve ends in a quadratic, and the discriminant shows whether they cross, touch or miss.
- Calculus. Stationary points of a cubic come from setting its quadratic derivative equal to zero, and the same algebra supports later techniques such as integration by parts.
Can a tutor help with quadratic equations?
Small sign errors in quadratics cost students marks every year. A tutor can watch you work, spot which step goes wrong, and set targeted practice until the method is automatic. That is how a live online tutoring session works, one to one over video.
For exam board content and past paper practice, see the GCSE AQA Maths Higher course and the A level Maths course. Support across algebra, calculus and statistics is on the mathematics subject page.
Frequently asked questions
What does the quadratic formula find?
It solves quadratic equations, meaning equations that can be written as ax² + bx + c = 0 with a not zero. It gives the x values where the graph crosses the x axis. It is most useful when the equation does not factorise, when answers are needed to a number of decimal places, or when the coefficients are large or awkward.
Does the quadratic formula always work?
Yes, for any quadratic equation once it is written in the form ax² + bx + c = 0. It always gives the correct roots, including surds, a repeated root or, when the discriminant is negative, the information that there are no real roots. It does not work if a is zero, because the equation is then linear.
What happens if b² − 4ac is negative?
A negative discriminant means the equation has no real roots, because no real number squares to give a negative. The graph of the quadratic lies entirely above or entirely below the x axis. At GCSE and A level Maths, "no real solutions" is the full answer. In Further Maths you would go on to find two complex roots.
Can a be negative in the quadratic formula?
Yes. Substitute the negative value exactly as it is, using brackets, so a = −1 makes the bottom of the formula −2. Many students find it easier to multiply the whole equation by −1 first, which makes a positive and leaves the roots unchanged. Both approaches give the same answers if the signs are handled carefully.
What if there is no b term or no c term?
A missing term has a coefficient of zero, so set b = 0 or c = 0 and use the formula as normal. However, faster methods exist. With no b term, rearrange and square root, remembering the ± sign. With no c term, factorise out x, which always gives x = 0 as one of the two roots.
Why is there a plus or minus sign in the formula?
Every positive number has two square roots, one positive and one negative. When the formula is derived by completing the square, taking the square root of both sides introduces ±. Using + gives one root and using − gives the other. If the discriminant is zero, both versions produce the same value, so there is one repeated root.
How do you remember the quadratic formula?
Say it aloud as a sentence: x equals minus b, plus or minus the square root of b squared minus four a c, all over two a. Writing it out at the top of every practice question for a week usually fixes it. Some students set it to a familiar tune, which works well as long as the words are exact.
Is the quadratic formula on the GCSE formula sheet?
For AQA GCSE Maths exams in 2027, the Higher tier formulae sheet includes the quadratic formula and the Foundation sheet does not. Rules on formulae sheets have changed in recent years, so check the current sheet published by your own exam board. Learning the formula anyway saves time and prepares you for A level.
How do you know if a quadratic will factorise?
Work out the discriminant. If the coefficients are whole numbers and b² − 4ac is a perfect square, such as 0, 1, 4, 9 or 25, the roots are rational and the quadratic factorises. If it is not a perfect square, the roots are irrational, so use the formula or completing the square instead of searching for factors.
How do you write quadratic formula answers in surd form?
Simplify the square root by taking out the largest square factor, so √28 becomes 2√7. Then divide every term on the top by any common factor shared with the bottom. For example, (−6 ± 2√7) / 2 simplifies to −3 ± √7. Leave the answer in that form unless the question asks for decimals.
Can a quadratic equation have only one solution?
Yes, when the discriminant is exactly zero. The ± part adds and subtracts zero, so both versions give x = −b / 2a. This is called a repeated root, and the graph touches the x axis at its turning point without crossing it. The quadratic is then a perfect square, such as (2x − 3)².
How do you check answers from the quadratic formula?
Substitute each root back into the original equation and confirm that both sides are equal. A quicker check uses the facts that the two roots add up to −b/a and multiply to c/a. For 2x² − 7x + 3 = 0, the roots 3 and 0.5 add to 3.5 and multiply to 1.5, which matches.
Want a subject expert to help with this?
Book a tutor →Money-Back Guarantee
Full refund if we miss the agreed deadline, can't find a suitable expert, or major errors can't be fixed by revision.
How the money-back guarantee works →100% Confidential
Your identity, order details and institution are never shared with any third party.
How we keep your order confidential →Deadline-Backed Delivery
Every order has an agreed deadline. If we don't deliver by it, you can claim a full refund.
Read the refund policy →Get started today
Ready to get expert help?
Tell us what you need and get matched with a tutor who teaches your subject. Delivered on time, every time.
