GCSE, A-Level & IB Maths

Completing the Square: The Method, the Shortcut and Why It Works

IB Demystified maths teamEvery answer checked symbolically16 min read

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:

x² + bx + c = (x + b2)² − (b2)² + c

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).

What the Method Actually Does

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:

x² + 6x + 5  =  (x + 3)² − 4

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 turning point of the curve, straight off the page
  • A way to solve any quadratic, even ones that will not factorise
  • Proof that a quadratic has no real roots, when it has none

The rule in words

  • Halve the number in front of x
  • Put it in the bracket and square the bracket
  • Subtract the square of that halved number
  • Tidy up the constants

Halve it, square it, subtract it. That is the whole method.

Why It Is Called Completing the Square

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.

The area diagram behind completing the squareA square of side x has area x squared. Two rectangles, each 3 by x, are added along its right edge and its bottom edge, giving x squared plus 6x. That leaves a 3 by 3 corner missing. Adding that corner, which has area 9, turns the whole shape into a complete square of side x plus 3. So x squared plus 6x plus 9 equals x plus 3 all squared, which means x squared plus 6x equals x plus 3 all squared minus 9.x²3x3x9x3x3x² + 3x + 3x= x² + 6xadd the red 9to finish thebig squarewhole square= (x + 3)²x² + 6x + 9 = (x + 3)²so x² + 6x = (x + 3)² − 9Why it is called completing the square
The square of side x plus two 3-by-x rectangles gives x² + 6x. A 3-by-3 corner is missing. Add it and the whole shape is a square of side x + 3.

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:

x² + 6x = (x + 3)² − 9

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.

The Three Steps, When a = 1

Start with the easy case: the coefficient in front of x² is 1. Almost every GCSE question looks like this.

  1. Halve the number in front of x. Keep its sign. Call it p.
  2. Write (x + p)² and immediately subtract p².
  3. Collect the constants at the end.

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.

When a Is Not 1

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.

  1. Factor a out of the x² and x terms only. Leave the constant outside the bracket.
  2. Complete the square inside the bracket, exactly as before.
  3. Multiply the a back through, then collect the constants.

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.

Finding the Turning Point

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.

y = a(x + p)² + q  →  turning point at (−p, q)

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.

Reading the turning point from the completed squareThe dashed grey curve is y equals x squared. The gold curve is y equals x plus 3 all squared minus 4, which is the same parabola moved 3 to the left and 4 down. Its lowest point is at minus 3, minus 4, and those two numbers come straight out of the completed square form. The line of symmetry is the vertical line x equals minus 3, and the curve crosses the x axis at minus 5 and minus 1.-7-6-5-4-3-2-1123-6-4-2246810x = −3(−3, −4)−5−1y = x²y = (x + 3)² − 4minimum at (−3, −4) · line of symmetry x = −3
y = (x + 3)² − 4 is the curve y = x² moved 3 to the left and 4 down. The completed square form gives both of those numbers directly.

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.

Reading the curve off the completed square form
Completed square formTurning pointLine of symmetryShape
(x + 3)² − 4(−3, −4)x = −3minimum
(x − 4)² − 13(4, −13)x = 4minimum
2(x + 3)² − 11(−3, −11)x = −3minimum, narrower
−(x − 2)² + 5(2, 5)x = 2maximum

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.

Solving a Quadratic With It

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.

Showing There Are No Real Roots

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.

Where the Quadratic Formula Comes From

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.

Which Method Should You Use?

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.

Choosing a method for a quadraticThree panels compare the methods. Factorising is fastest when the roots are whole numbers. Completing the square is the method to use when you need the turning point. The quadratic formula always works but is rarely the neatest. Only completing the square tells you where the curve turns.Three ways to handle a quadraticFACTORISEx² + 7x + 12roots are wholenumbers↓fastest when it worksCOMPLETE THE SQUAREx² + 6x + 5you need theturning point↓the only one that gives the vertexQUADRATIC FORMULA3x² − 5x + 1nothing factorisesneatly↓always works, never elegantCompleting the square is the one that tells you where the curve turns.
Factorising is fastest when it works. The formula always works. Completing the square is the only one that hands you the turning point.

Scroll the diagram sideways →

Read the question before choosing. Certain wordings are asking for completing the square even when they never say so:

  • “Find the minimum value” or “the maximum value”
  • “Find the turning point” or “the vertex”
  • “Write in the form (x + p)² + q” — this one is explicit
  • “Show that the equation has no real roots”
  • “Find the line of symmetry“
  • “Hence sketch the curve”

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.

Common Mistakes

Subtracting a negative

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.

Forgetting to multiply the a back through

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.

Flipping the sign of q as well as p

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.

Dropping the plus-or-minus

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.

Rounding the fractions

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.

Factorising the constant out as well

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.

Is It on Your Formula Sheet?

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.

What you are given, by qualification
CourseOn the syllabus?Quadratic formula given?Vertex form given?
GCSE FoundationNoNoNo
GCSE Higher
AQA, Edexcel, OCR
Yes, Higher onlyYes, on the formula sheetNo
AS and A-Level
all boards
Yes, first yearNo — memorise itNo
IB Analysis & Approaches
SL and HL
Yes, topics 2.6 and 2.7Yes, in the bookletNo
IB Applications & Interpretation
SL
Not on it at allNoNo
IB Applications & Interpretation
HL
Not on it at allYes, under prior learningNo

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.

If you are doing IB

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.

Practice Questions

Work each one out before opening the answer.

1. Write x² + 10x + 3 in the form (x + p)² + q.

Halve the 10

p = 5

Bracket, subtract 25

(x + 5)² − 25 + 3

(x + 5)² − 22

2. Write x² − 3x + 1 in completed square form, leaving fractions exact.

Halve the −3

p = −3/2

Subtract p² = 9/4

(x − 3/2)² − 9/4 + 1

1 = 4/4

(x − 3/2)² − 5/4

3. Write 2x² − 8x + 5 in the form a(x + p)² + q.

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

4. Find the turning point of y = x² + 4x − 7 and state the line of symmetry.

Complete the square

(x + 2)² − 4 − 7

(x + 2)² − 11

p flips, q does not

(−2, −11), symmetry x = −2

5. Solve x² + 6x + 2 = 0, leaving your answer in surd form.

Complete the square

(x + 3)² − 9 + 2 = 0

(x + 3)² − 7 = 0

Move the 7, square root

x + 3 = ±√7

x = −3 ± √7

6. Show that x² − 4x + 9 = 0 has no real solutions.

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

FAQs

What is completing the square?

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.

What is the formula for completing the square?

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.

How do you complete the square when the coefficient of x squared is not 1?

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.

How do you find the turning point by completing the square?

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.

Why is it called completing the square?

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.

Is the quadratic formula on the GCSE formula sheet?

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.

Is the quadratic formula in the A level formulae booklet?

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.

Is completing the square in the IB syllabus?

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.

Does the IB formula booklet give you the vertex form?

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.

Is completing the square Higher tier at GCSE?

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.

Does completing the square work for every quadratic?

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.

How do you solve a quadratic by completing the square?

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.

How does completing the square prove there are no real roots?

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.

Where does the quadratic formula come from?

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.

What do I do if halving b gives a fraction?

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.

When should I use completing the square instead of the quadratic formula?

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.

The method is five minutes. The exam questions are not.

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 meeting

Also useful: our guide to factorising any expression covers the method to reach for first, and the blog has the rest of the topic guides.

Subscribe to our newsletter

Get free IB notes, exam tips and new resources in your inbox.

We will ask you to confirm by email. Unsubscribe any time.