GCSE, A-Level & IB Maths
The short answer
Completing the square rewrites a quadratic as a bracket squared plus a number. For x² + bx + c you halve b, square it, and subtract it back:
So x² + 6x + 5 becomes (x + 3)² − 4. The two numbers in that form are the turning point of the curve: it has its minimum at (−3, −4).
A quadratic like x² + 6x + 5 has the x in two places, and that is the problem. You cannot rearrange to get x on its own while it appears both squared and on its own.
Completing the square fixes that. It rewrites the whole thing so x appears exactly once:
Multiply the bracket out and you get back where you started.
Check it yourself: (x + 3)² = x² + 6x + 9, and 9 − 4 = 5. Same expression, different clothes.
That single change unlocks three things you cannot get any other way:
What it gives you
The rule in words
Halve it, square it, subtract it. That is the whole method.
The name is not decoration. It describes a picture, and once you have seen the picture the algebra stops feeling arbitrary.
Think of x² as the area of a square with side x. Think of 6x as two rectangles, each 3 wide and x tall, stuck onto two sides of it.
Scroll the diagram sideways →
Look at the shape. It is nearly a big square, but there is a notch missing in the corner, exactly 3 by 3. Fill that notch in and you have a perfect square of side x + 3, with area (x + 3)².
But you added 9 that was not there before, so you have to take it straight back off:
That is where “halve it, square it, subtract it” comes from. The 3 is half of 6 because the 6x splits into two rectangles of 3. The 9 is 3² because the missing corner is a 3-by-3 square. Nothing about the method is a convention someone invented; it falls out of the picture.
Start with the easy case: the coefficient in front of x² is 1. Almost every GCSE question looks like this.
Write x² + 6x + 5 in completed square form.
Halve the 6
p = 3
Bracket, then subtract p²
(x + 3)² − 9 + 5
Collect
(x + 3)² − 4
A negative in front of x changes nothing except the sign you carry.
Write x² − 8x + 3 in completed square form.
Halve the −8
p = −4
Bracket, then subtract p²
(x − 4)² − 16 + 3
Collect
(x − 4)² − 13
Note that you subtract 16, not −16. Squaring kills the sign. This is the single most common slip in the whole topic.
Fractions are fine
If the number in front of x is odd, halving gives a fraction, and that is the correct answer rather than a sign you have gone wrong. For x² + 5x + 2, p is 5/2, and the answer is (x + 5/2)² − 17/4. Leave it as a fraction; do not round it.
If there is a number in front of x², the method still works — you just have to get that number out of the way first.
Write 2x² + 12x + 7 in completed square form.
Factor 2 out of the first two
2(x² + 6x) + 7
Complete inside the bracket
2[(x + 3)² − 9] + 7
Multiply the 2 back in
2(x + 3)² − 18 + 7
Collect
2(x + 3)² − 11
Step three is where marks go missing. The 2 multiplies everything inside the square bracket, including the −9, so it becomes −18. Writing −9 + 7 = −2 is the error, and it is very easy to make.
Write 3x² − 5x + 1 in completed square form.
Factor 3 out of the first two
3(x² − 5x/3) + 1
Halve −5/3
p = −5/6
Complete inside
3[(x − 5/6)² − 25/36] + 1
Multiply back, then collect
3(x − 5/6)² − 25/12 + 1
3(x − 5/6)² − 13/12
Ugly, but every step is the same as the easy case. If the fractions worry you, check your answer by expanding it — you should land back on 3x² − 5x + 1.
Negative a
If the coefficient is negative, factor out the negative too. For −x² + 4x + 1, take out −1 to get −(x² − 4x) + 1, complete inside to get −[(x − 2)² − 4] + 1, and finish at −(x − 2)² + 5. That curve opens downwards, so (2, 5) is a maximum, not a minimum.
This is the reason the method is worth learning. Once a quadratic is in completed square form, the turning point is sitting there in plain sight.
The sign of p flips. The sign of q does not.
Why? A square is never negative, so (x + p)² is at its smallest when it is zero, and that happens when x = −p. At that moment y = q. Every other value of x makes the square positive and pushes y above q.
Scroll the diagram sideways →
The line of symmetry comes free with it: it is the vertical line through the turning point, so x = −p. For (x + 3)² − 4 that is x = −3.
| Completed square form | Turning point | Line of symmetry | Shape |
|---|---|---|---|
| (x + 3)² − 4 | (−3, −4) | x = −3 | minimum |
| (x − 4)² − 13 | (4, −13) | x = 4 | minimum |
| 2(x + 3)² − 11 | (−3, −11) | x = −3 | minimum, narrower |
| −(x − 2)² + 5 | (2, 5) | x = 2 | maximum |
Notice that the number in front of the bracket never moves the turning point. It only stretches the curve, and if it is negative it flips it over.
Because x appears only once, you can now just undo the operations one at a time. Move the constant, square root both sides, and move the last number across.
Solve x² − 8x + 3 = 0, leaving your answer in surd form.
Completed square form
(x − 4)² − 13 = 0
Move the 13
(x − 4)² = 13
Square root — both signs
x − 4 = ±√13
x = 4 ± √13
The ± is not optional. Both 3² and (−3)² are 9, so a square root always has two answers, and dropping one loses half the marks.
This is also why completing the square beats factorising here. x² − 8x + 3 does not factorise over the integers — there is no pair of whole numbers multiplying to 3 and adding to −8. Completing the square does not care.
Some quadratics never cross the x-axis at all, and the completed square form proves it in one line.
Show that x² + 2x + 5 = 0 has no real solutions.
Complete the square
(x + 1)² + 4
A square is never negative
(x + 1)² ≥ 0
So the whole thing
(x + 1)² + 4 ≥ 4
Never reaches 0, so no real roots
The minimum value of that expression is 4, which you can read straight off, and 4 is above zero. The curve sits entirely above the x-axis.
You could reach the same conclusion with the discriminant — b² − 4ac is 4 − 20 = −16, which is negative. But the completed square version tells you how far above the axis the curve sits, which the discriminant does not.
If q is positive and the bracket is positive, the curve never touches the x-axis.
Here is something most students never find out: the quadratic formula is completing the square. Somebody did it once, in general, and wrote down the answer so nobody would have to do it again.
Take ax² + bx + c = 0 and run the exact method from the section above.
Factor a out of the first two
a(x² + bx/a) + c = 0
Halve b/a
p = b/2a
Complete inside the bracket
a[(x + b/2a)² − b²/4a²] + c = 0
Multiply the a back in
a(x + b/2a)² − b²/4a + c = 0
Move the constants across
a(x + b/2a)² = b²/4a − c
Divide by a
(x + b/2a)² = (b² − 4ac)/4a²
Square root both sides
x + b/2a = ±√(b² − 4ac) / 2a
x = (−b ± √(b² − 4ac)) / 2a
That is the formula, derived from nothing but the method on this page. And it explains the two pieces students find most mysterious about it.
The −b/2a is the line of symmetry, which is exactly the −p from the completed square form. The b² − 4ac under the root is the discriminant, and it sits under a square root because that is where the square root landed — if it is negative there is nothing to take the root of, which is precisely what “no real roots” means.
The quadratic formula is completing the square with letters instead of numbers.
Three methods solve quadratics, and exam questions rarely tell you which one they want. The choice is usually obvious once you know what each one is good at.
Scroll the diagram sideways →
Read the question before choosing. Certain wordings are asking for completing the square even when they never say so:
That last one matters. A question that asks you to complete the square and then sketch is giving you the method for the sketch in part (a). Use the answer you already have rather than starting again.
For x² − 8x, p is −4 and p² is +16, so you subtract 16. Students who write −(−16) and add it get an answer that is 32 out. Squaring always gives a positive.
In 2[(x + 3)² − 9] + 7 the 2 hits the −9 as well, giving −18. This is the biggest source of lost marks when a is not 1.
For (x + 3)² − 4, the turning point is (−3, −4). The p flips, the q does not. Writing (−3, 4) is a reflex error worth training out.
Square rooting both sides gives two answers. If your solution to a quadratic has only one value, and the question did not say it has a repeated root, something has gone missing.
When b is odd you get halves and quarters. 5/2 and 17/4 are exact; 2.5 and 4.25 happen to be too, but 5/6 and 13/12 are not. Keep fractions as fractions.
For 2x² + 12x + 7, take the 2 out of the first two terms only. Writing 2(x² + 6x + 3.5) is not wrong, but it drags a fraction through every line for no reason.
Worth settling before you decide how much to memorise, because the answer is different for every qualification — and in one case it is the opposite of what you would expect.
| Course | On the syllabus? | Quadratic formula given? | Vertex form given? |
|---|---|---|---|
| GCSE Foundation | No | No | No |
| GCSE Higher AQA, Edexcel, OCR | Yes, Higher only | Yes, on the formula sheet | No |
| AS and A-Level all boards | Yes, first year | No — memorise it | No |
| IB Analysis & Approaches SL and HL | Yes, topics 2.6 and 2.7 | Yes, in the booklet | No |
| IB Applications & Interpretation SL | Not on it at all | No | No |
| IB Applications & Interpretation HL | Not on it at all | Yes, under prior learning | No |
The one that surprises people
At GCSE Higher the quadratic formula is printed for you, on every board’s formula sheet. At A-level it is not — it sits on the national list of formulae students are expected to recall, and it appears in no board’s formulae booklet.
So the formula gets harder to access as you go up, not easier. If you are moving from GCSE to A-level and have always leaned on the sheet, that is a habit to break early.
Completing the square itself is on nobody’s sheet. No board prints the completed-square identity, the (−p, q) rule or the line of symmetry at GCSE. It is the one quadratic method you carry entirely in your head.
In Analysis and Approaches this is core content for SL and HL alike. Topic 2.6 covers the form f(x) = a(x − h)² + k with vertex (h, k), and says candidates are expected to convert between forms. Topic 2.7 names completing the square outright, alongside the quadratic formula and the discriminant.
There is a catch worth knowing. Your formula booklet gives you the quadratic formula, the discriminant and the axis of symmetry x = −b/2a — but it does not print the vertex form, even though the syllabus requires it. That one you memorise.
In Applications and Interpretation, completing the square is not on the syllabus at any level. Quadratic models appear at topic 2.5, but roots and vertices are found with your calculator rather than algebraically. AI SL students are not even given the quadratic formula; AI HL students get it under prior learning.
A nice detail for AA students
The IB’s own guide lists “deriving the quadratic formula by completing the square” as an enrichment idea under topic 2.7. That is exactly the derivation in the section above, so if you have read this far you have already done it.
Work each one out before opening the answer.
Halve the 10
p = 5
Bracket, subtract 25
(x + 5)² − 25 + 3
(x + 5)² − 22
Halve the −3
p = −3/2
Subtract p² = 9/4
(x − 3/2)² − 9/4 + 1
1 = 4/4
(x − 3/2)² − 5/4
Factor 2 out of the first two
2(x² − 4x) + 5
Complete inside
2[(x − 2)² − 4] + 5
Multiply the 2 back in
2(x − 2)² − 8 + 5
2(x − 2)² − 3
Complete the square
(x + 2)² − 4 − 7
(x + 2)² − 11
p flips, q does not
(−2, −11), symmetry x = −2
Complete the square
(x + 3)² − 9 + 2 = 0
(x + 3)² − 7 = 0
Move the 7, square root
x + 3 = ±√7
x = −3 ± √7
Complete the square
(x − 2)² − 4 + 9
(x − 2)² + 5
A square is never negative
so the least value is 5
5 > 0, so it never equals 0
Completing the square rewrites a quadratic so that x appears only once, in the form a bracket squared plus a number. For x squared plus bx plus c you halve b, put that in the bracket, square the bracket and subtract the square of the halved number. So x squared plus 6x plus 5 becomes x plus 3 all squared minus 4.
For x squared plus bx plus c, the completed square form is x plus b over 2 all squared, minus b over 2 all squared, plus c. In words: halve b, square it, subtract it. If there is a number in front of x squared, factor it out of the first two terms before you start.
Factor that number out of the x squared and x terms only, leaving the constant outside the bracket. Complete the square inside the bracket as normal. Then multiply the factored number back through everything inside, including the number you subtracted, and collect the constants. For 2x squared plus 12x plus 7 this gives 2 times x plus 3 all squared, minus 11.
Write the quadratic as a times x plus p all squared, plus q. The turning point is at minus p, q. The sign of p flips and the sign of q does not. So x plus 3 all squared minus 4 has its turning point at minus 3, minus 4, and the line of symmetry is x equals minus 3.
Because of a picture. x squared is the area of a square with side x, and bx splits into two rectangles stuck on two of its sides. That leaves a square notch missing in the corner. Filling in that notch literally completes the square, and the area of the notch is the number you have to subtract back off.
Yes, on the Higher tier sheet for all three boards. AQA, Edexcel and OCR all print the solutions of ax squared plus bx plus c equals zero. It is not on the Foundation sheet. Completing the square itself is on no board’s sheet at all, so the completed square identity and the turning point rule have to be memorised.
No. At A level the quadratic formula is on the national list of formulae students are expected to recall, and it does not appear in any board’s formulae booklet. This catches people out, because it is printed for you at GCSE Higher. The formula gets harder to access as you go up, not easier.
In Analysis and Approaches, yes, for SL and HL alike. Topic 2.6 covers the vertex form with its vertex at h, k, and topic 2.7 names completing the square along with the quadratic formula and the discriminant. In Applications and Interpretation it is not on the syllabus at any level, because quadratic roots and vertices are found with a calculator instead.
No, and that surprises people. The Analysis and Approaches booklet prints the quadratic formula, the discriminant and the axis of symmetry x equals minus b over 2a, but it does not print the vertex form a bracket x minus h bracket squared plus k, even though topic 2.6 requires you to use it. That one has to be memorised.
Yes. Completing the square is Higher tier content at GCSE, alongside the quadratic formula and solving quadratics with surd answers. Foundation tier students factorise quadratics but are not asked to complete the square.
Yes, every single one, which is its main advantage over factorising. Factorising only works neatly when the roots happen to be nice numbers. Completing the square works whatever the coefficients are, and it still gives you useful information when the quadratic has no real roots at all.
Put it in completed square form, move the constant to the other side, take the square root of both sides remembering the plus or minus, and then move the last number across. For x squared minus 8x plus 3 equals 0 this gives x minus 4 all squared equals 13, so x equals 4 plus or minus the square root of 13.
If the completed square form is a bracket squared plus a positive number, the whole thing can never reach zero, because a square is never negative. For x squared plus 2x plus 5 the completed form is x plus 1 all squared plus 4, so the smallest value it can ever take is 4. Since 4 is above zero, the curve never crosses the x axis.
From completing the square on ax squared plus bx plus c in general. Factor out a, halve b over a, complete the square, multiply back through, move the constants across and square root. What comes out is x equals minus b plus or minus the square root of b squared minus 4ac, all over 2a. The quadratic formula is completing the square done once with letters so nobody has to repeat it.
Keep it as a fraction. For x squared plus 5x plus 2, half of 5 is five halves, and the answer is x plus five halves all squared minus seventeen quarters. Fractions are the correct form here, not a sign that something has gone wrong, and rounding them to decimals loses accuracy marks.
Use completing the square whenever the question mentions a turning point, a minimum or maximum value, a line of symmetry, sketching the curve, or the form bracket squared plus a number. Use the quadratic formula when you only need the roots and nothing factorises neatly. Factorising is fastest when the roots are whole numbers.
Most students can complete the square on a clean example and still lose marks when the coefficient is 3, the constant is negative, and the question wants a sketch at the end. Our tutors teach GCSE, A‑level and IB maths and work through your own past papers, so the slips we fix are the ones actually costing you marks.
Book a free 30-minute meetingAlso useful: our guide to factorising any expression covers the method to reach for first, and the blog has the rest of the topic guides.
Get free IB notes, exam tips and new resources in your inbox.
I am a
Teachers log in with the details IB Demystified sent them. No account yet? Please contact us.