Completing the Square Formula: GCSE Guide and Examples
Learn the completing the square formula for GCSE Higher Maths. Clear definitions, when to use it, three worked examples, common mistakes and practice questions.

The completing the square formula is an algebraic method for rewriting a quadratic expression ax2+bx+cax^2 + bx + cax2+bx+c into the form a(x+p)2+qa(x + p)^2 + qa(x+p)2+q. On UK GCSE Mathematics specifications (Edexcel, AQA and OCR), completing the square is a Higher tier topic, typically assessed at Grades 8-9.
In this guide, you will learn the exact formula for both a=1a = 1a=1 and a≠1a \neq 1a=1, what each term represents, when to choose completing the square over other quadratic methods, three fully worked examples, common exam mistakes to avoid and exam-style practice questions with answers.
The completing the square formula
When the coefficient of x2x^2x2 is 111, the completing the square formula is:
x2+bx+c=(x+b2)2−(b2)2+c x^2 + bx + c = \left(x + \frac{b}{2}\right)^2 - \left(\frac{b}{2}\right)^2 + c x2+bx+c=(x+2b)2−(2b)2+cThis is often written in the target form (x+p)2+q(x + p)^2 + q(x+p)2+q, where p=b2p = \frac{b}{2}p=2b and q=c−(b2)2q = c - \left(\frac{b}{2}\right)^2q=c−(2b)2. This identity works because expanding (x+b2)2\left(x + \frac{b}{2}\right)^2(x+2b)2 gives x2+bx+(b2)2x^2 + bx + \left(\frac{b}{2}\right)^2x2+bx+(2b)2. The squared bracket reproduces the x2x^2x2 and bxbxbx terms exactly, while creating an extra constant term of (b2)2\left(\frac{b}{2}\right)^2(2b)2. Subtracting (b2)2\left(\frac{b}{2}\right)^2(2b)2 immediately removes that unwanted constant, leaving an expression algebraically identical to the original quadratic.
When the coefficient of x2x^2x2 is not 111 (a≠1a \neq 1a=1), you first factor aaa out of the x2x^2x2 and xxx terms, giving the general formula:
ax2+bx+c=a(x+b2a)2+c−b24a ax^2 + bx + c = a\left(x + \frac{b}{2a}\right)^2 + c - \frac{b^2}{4a} ax2+bx+c=a(x+2ab)2+c−4ab2In GCSE exams, it is much safer to apply the step-by-step method rather than memorising the a≠1a \neq 1a=1 formula directly, because showing each algebraic step earns method marks even if you make a small arithmetic slip.
Defining every term and unit
Every symbol in the completing the square formula has a specific algebraic role. In pure algebra questions, all terms are dimensionless numbers and carry no physical units. If a quadratic models a real-world quantity such as height in metres or time in seconds, the units of xxx and the overall expression match the context given in the question.
| Term | Definition | Units |
|---|---|---|
| xxx | The independent variable (unknown value) | Dimensionless in pure maths; context-dependent in applied problems |
| aaa | The coefficient of x2x^2x2 (must be non-zero, a≠0a \neq 0a=0) | Dimensionless number |
| bbb | The coefficient of xxx | Dimensionless number |
| ccc | The constant term (also the yyy-intercept of y=ax2+bx+cy = ax^2 + bx + cy=ax2+bx+c) | Dimensionless number |
| ppp | Half of the xxx-coefficient after factoring out aaa, so p=b2ap = \frac{b}{2a}p=2ab | Dimensionless number |
| qqq | The remaining constant term, q=c−b24aq = c - \frac{b^2}{4a}q=c−4ab2, giving the yyy-coordinate of the turning point | Dimensionless number |
When to use completing the square
At GCSE Higher tier, you have three main algebraic methods for working with quadratics: factorising, completing the square and the quadratic formula. Choosing the right method saves time and prevents unnecessary errors.
| Method | Best used when | Main advantage |
|---|---|---|
| Expanding and factorising quadratics | The quadratic has rational (often integer) roots | Fastest method for solving straightforward equations |
| Completing the square | Finding the turning point of a parabola, or when the question asks for (x+p)2+q(x + p)^2 + q(x+p)2+q form | Directly reveals the coordinates of the minimum or maximum point |
| Quadratic formula | Solving ax2+bx+c=0ax^2 + bx + c = 0ax2+bx+c=0 on a calculator paper when rounding to decimal places or significant figures | Reliable when a≠1a \neq 1a=1 and bbb is odd |
You should specifically use completing the square in three exam situations:
- Finding a turning point: For y=a(x+p)2+qy = a(x + p)^2 + qy=a(x+p)2+q, the turning point (vertex) is always (−p,q)(-p, q)(−p,q). No other GCSE method gives this directly.
- Exact surd solutions on non-calculator papers: When a=1a = 1a=1 and bbb is even, completing the square is usually faster and less error-prone than substituting into the quadratic formula.
- Explicit exam instructions: If a question states "Write x2+6x−5x^2 + 6x - 5x2+6x−5 in the form (x+p)2+q(x + p)^2 + q(x+p)2+q" or "By completing the square, solve...", you must use this method to earn full marks.
For a broader look at how these methods fit together in mock exams, read our Quadratic Equations GCSE Maths Mock Revision guide.
Worked examples
Example 1: Completing the square and finding the turning point
Question: Express x2+6x−5x^2 + 6x - 5x2+6x−5 in the form (x+p)2+q(x + p)^2 + q(x+p)2+q. Hence state the coordinates of the turning point of the curve y=x2+6x−5y = x^2 + 6x - 5y=x2+6x−5.
Step 1: Identify b=6b = 6b=6 and halve it to find p=62=3p = \frac{6}{2} = 3p=26=3.
Step 2: Write the squared bracket (x+3)2(x + 3)^2(x+3)2 and subtract 323^232, then keep the original constant −5-5−5:
x2+6x−5=(x+3)2−32−5 x^2 + 6x - 5 = (x + 3)^2 - 3^2 - 5 x2+6x−5=(x+3)2−32−5Step 3: Simplify the constant terms:
(x+3)2−9−5=(x+3)2−14 (x + 3)^2 - 9 - 5 = (x + 3)^2 - 14 (x+3)2−9−5=(x+3)2−14Step 4: Find the turning point. Since (x+3)2≥0(x + 3)^2 \ge 0(x+3)2≥0 for all real values of xxx, the minimum value of yyy occurs when x+3=0x + 3 = 0x+3=0, which gives x=−3x = -3x=−3. At this point, y=0−14=−14y = 0 - 14 = -14y=0−14=−14.
Answer: (x+3)2−14(x + 3)^2 - 14(x+3)2−14, and the turning point is (−3,−14)(-3, -14)(−3,−14).
Example 2: Solving a quadratic equation in surd form
Question: Solve x2−8x+3=0x^2 - 8x + 3 = 0x2−8x+3=0 by completing the square. Give your answers in the form a±ba \pm \sqrt{b}a±b, where aaa and bbb are integers.
Step 1: Halve the coefficient of xxx: −82=−4\frac{-8}{2} = -42−8=−4.
Step 2: Rewrite the left-hand side using the completing the square formula:
(x−4)2−(−4)2+3=0 (x - 4)^2 - (-4)^2 + 3 = 0 (x−4)2−(−4)2+3=0Step 3: Simplify the constants. Remember that (−4)2=16(-4)^2 = 16(−4)2=16, and we are subtracting it:
(x−4)2−16+3=0 (x - 4)^2 - 16 + 3 = 0 (x−4)2−16+3=0 (x−4)2−13=0 (x - 4)^2 - 13 = 0 (x−4)2−13=0Step 4: Isolate the squared bracket and take the square root of both sides, including both the positive and negative roots:
(x−4)2=13 (x - 4)^2 = 13 (x−4)2=13 x−4=±13 x - 4 = \pm\sqrt{13} x−4=±13 x=4±13 x = 4 \pm \sqrt{13} x=4±13Answer: x=4+13x = 4 + \sqrt{13}x=4+13 and x=4−13x = 4 - \sqrt{13}x=4−13.
Example 3: Completing the square when a≠1a \neq 1a=1
Question: Write 2x2−12x+112x^2 - 12x + 112x2−12x+11 in the form a(x+p)2+qa(x + p)^2 + qa(x+p)2+q.
Step 1: Factor 222 out of the first two terms only, leaving the +11+11+11 outside:
2(x2−6x)+11 2(x^2 - 6x) + 11 2(x2−6x)+11Step 2: Complete the square on x2−6xx^2 - 6xx2−6x inside a pair of square brackets. Half of −6-6−6 is −3-3−3, so x2−6x=(x−3)2−9x^2 - 6x = (x - 3)^2 - 9x2−6x=(x−3)2−9:
2[(x−3)2−9]+11 2\left[(x - 3)^2 - 9\right] + 11 2[(x−3)2−9]+11Step 3: Multiply both terms inside the square brackets by 222, then combine the constants:
2(x−3)2−18+11=2(x−3)2−7 2(x - 3)^2 - 18 + 11 = 2(x - 3)^2 - 7 2(x−3)2−18+11=2(x−3)2−7Answer: 2(x−3)2−72(x - 3)^2 - 72(x−3)2−7.
Minimum and maximum turning points
The sign of aaa in y=a(x+p)2+qy = a(x + p)^2 + qy=a(x+p)2+q determines whether the turning point (−p,q)(-p, q)(−p,q) is a minimum or a maximum. Because (x+p)2(x + p)^2(x+p)2 is always greater than or equal to zero, a positive value of aaa produces a U-shaped parabola with a minimum at (−p,q)(-p, q)(−p,q). A negative value of aaa produces an inverted parabola with a maximum at (−p,q)(-p, q)(−p,q).
If you are asked to complete the square on a quadratic with a negative x2x^2x2 term, such as −x2+6x−5-x^2 + 6x - 5−x2+6x−5, factor −1-1−1 out of the first two terms first to get −(x2−6x)−5-(x^2 - 6x) - 5−(x2−6x)−5. Complete the square inside square brackets to obtain −[(x−3)2−9]−5-\left[(x - 3)^2 - 9\right] - 5−[(x−3)2−9]−5, then multiply through by −1-1−1 to give −(x−3)2+4-(x - 3)^2 + 4−(x−3)2+4. You can always verify any completed square answer by expanding the brackets back out and checking that you recover the original quadratic.
Common mistakes to avoid
Examiners regularly report the same four errors on completing the square questions. Checking for these before moving on will protect easy marks:
- Adding instead of subtracting (b2)2\left(\frac{b}{2}\right)^2(2b)2: Expanding (x+p)2(x + p)^2(x+p)2 produces an extra +p2+p^2+p2, so you must always subtract p2p^2p2, even when ppp is negative. Because (−4)2=+16(-4)^2 = +16(−4)2=+16, you still subtract 161616.
- Forgetting to multiply the subtracted square by aaa: In Example 3, a common slip is writing 2(x−3)2−9+11=2(x−3)2+22(x - 3)^2 - 9 + 11 = 2(x - 3)^2 + 22(x−3)2−9+11=2(x−3)2+2. Using outer square brackets prevents this.
- Getting the xxx-coordinate sign wrong for the turning point: For y=(x+3)2−14y = (x + 3)^2 - 14y=(x+3)2−14, the turning point is (−3,−14)(-3, -14)(−3,−14), not (3,−14)(3, -14)(3,−14). Always change the sign of ppp and keep the sign of qqq.
- Omitting the ±\pm± sign when solving: Taking the square root of both sides of (x−4)2=13(x - 4)^2 = 13(x−4)2=13 gives two solutions, 4+134 + \sqrt{13}4+13 and 4−134 - \sqrt{13}4−13. Dropping the negative root loses the final accuracy mark.
Exam-style practice questions
Try these three questions without a calculator, then check your working against the answers below.
- Write x2+10x+19x^2 + 10x + 19x2+10x+19 in the form (x+a)2+b(x + a)^2 + b(x+a)2+b.
- Solve x2−4x−7=0x^2 - 4x - 7 = 0x2−4x−7=0 by completing the square, leaving your answers in surd form.
- By completing the square, find the coordinates of the turning point of the curve y=3x2+12x+5y = 3x^2 + 12x + 5y=3x2+12x+5.
Answers
- (x+5)2−25+19=(x+5)2−6(x + 5)^2 - 25 + 19 = (x + 5)^2 - 6(x+5)2−25+19=(x+5)2−6.
- (x−2)2−4−7=0(x - 2)^2 - 4 - 7 = 0(x−2)2−4−7=0, so (x−2)2=11(x - 2)^2 = 11(x−2)2=11, giving x=2±11x = 2 \pm \sqrt{11}x=2±11.
- 3(x2+4x)+5=3[(x+2)2−4]+5=3(x+2)2−12+5=3(x+2)2−73(x^2 + 4x) + 5 = 3\left[(x + 2)^2 - 4\right] + 5 = 3(x + 2)^2 - 12 + 5 = 3(x + 2)^2 - 73(x2+4x)+5=3[(x+2)2−4]+5=3(x+2)2−12+5=3(x+2)2−7. The turning point is (−2,−7)(-2, -7)(−2,−7).
For more structured practice, work through the Completing the Square Exam Booklet and check your steps against the Completing the Square Solutions. You can also test yourself on OCR GCSE Maths Completing the Square exam-style questions or browse full Edexcel GCSE Maths past papers.
Conclusion
The completing the square formula transforms any quadratic expression into a(x+p)2+qa(x + p)^2 + qa(x+p)2+q, allowing you to solve equations in exact surd form and read off turning points directly as (−p,q)(-p, q)(−p,q). Mastering the sign rules, factoring out aaa carefully when a≠1a \neq 1a=1 and checking your final expression by expanding it back out will make this Grade 8-9 topic a reliable source of marks.
When you are ready to build speed and accuracy, download the MathsGenie Completing the Square Exam Booklet and review the worked mark schemes alongside our full GCSE past paper collection.
Sources and referenced URLs
- https://mathsgenie.co.uk/gcse/maths/edexcel/grade-8-9-8-4-completing-the-square
- https://mathsgenie.co.uk/gcse/maths/edexcel/grade-8-9-8-4-completing-the-square/booklet
- https://mathsgenie.co.uk/gcse/maths/edexcel/grade-8-9-8-4-completing-the-square/solutions
- https://mathsgenie.co.uk/gcse/maths/ocr/grade-8-9-8-4-completing-the-square/questions/q1
- https://mathsgenie.co.uk/gcse/maths/edexcel/grade-7-7-4-quadratic-formula
- https://mathsgenie.co.uk/gcse/maths/edexcel/grade-5-5-7-expanding-and-factorising-quadratics
- https://mathsgenie.co.uk/gcse/maths/edexcel
- https://mathsgenie.co.uk/blog/quadratic-equations-gcse-maths-mock-revision



