MathsGenie logo
RevisionResourcesBlog
  1. Home
  2. /
  3. Blog
  4. /
  5. Completing the Square Formula: GCSE Guide and Examples

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.

MathsGenie Team
•Last updated: 3 Dec 2026
Share
Add as a preferred source on Google

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+c

This 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−4ab2​

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

TermDefinitionUnits
xxxThe independent variable (unknown value)Dimensionless in pure maths; context-dependent in applied problems
aaaThe coefficient of x2x^2x2 (must be non-zero, a≠0a \neq 0a=0)Dimensionless number
bbbThe coefficient of xxxDimensionless number
cccThe constant term (also the yyy-intercept of y=ax2+bx+cy = ax^2 + bx + cy=ax2+bx+c)Dimensionless number
pppHalf of the xxx-coefficient after factoring out aaa, so p=b2ap = \frac{b}{2a}p=2ab​Dimensionless number
qqqThe remaining constant term, q=c−b24aq = c - \frac{b^2}{4a}q=c−4ab2​, giving the yyy-coordinate of the turning pointDimensionless 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.

MethodBest used whenMain advantage
Expanding and factorising quadraticsThe quadratic has rational (often integer) rootsFastest method for solving straightforward equations
Completing the squareFinding the turning point of a parabola, or when the question asks for (x+p)2+q(x + p)^2 + q(x+p)2+q formDirectly reveals the coordinates of the minimum or maximum point
Quadratic formulaSolving ax2+bx+c=0ax^2 + bx + c = 0ax2+bx+c=0 on a calculator paper when rounding to decimal places or significant figuresReliable 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−5

Step 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−14

Step 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=0

Step 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=0

Step 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±13​

Answer: 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)+11

Step 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]+11

Step 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−7

Answer: 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.

  1. Write x2+10x+19x^2 + 10x + 19x2+10x+19 in the form (x+a)2+b(x + a)^2 + b(x+a)2+b.
  2. Solve x2−4x−7=0x^2 - 4x - 7 = 0x2−4x−7=0 by completing the square, leaving your answers in surd form.
  3. 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

  1. (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.
  2. (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. 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
  • The completing the square formula
  • When to use completing the square
  • Worked examples
  • Common mistakes to avoid
  • Exam-style practice questions
  • Conclusion
  • Sources and referenced URLs

Frequently Asked Questions

How helpful was this article?
Add as a preferred source on Google

More from the blog

3 Dec 2026

AQA Biology A-Level Specification: Guide and Checklist

Learn what is in the AQA Biology A-level specification (7402), where to download it, what the three papers cover, and how to turn it into a revision checklist.

3 Dec 2026

AQA English Language Paper 1 Past Papers: How to Use Them

Find official AQA English Language Paper 1 past papers, mark schemes and examiner reports, and follow a four-step revision plan to raise your GCSE grade.

3 Dec 2026

AQA English Past Papers Language: Revision Guide

Find AQA GCSE English Language past papers, mark schemes and examiner reports, then use them effectively with timed practice and an error log.

3 Dec 2026

AQA GCSE Chemistry Past Papers: Find and Use Them

Find official AQA GCSE Chemistry past papers, mark schemes and examiner reports, then follow a practical plan for topic practice, timed papers and reviewing mistakes.

1m+ Students Can't Be Wrong

What GCSE and A-level students say after revising with MathsGenie.

Harvey B. avatar

Harvey B.

Student

“This is such an amazing platform, it offers everything needed to improve your grade in a time efficient manor. Personally I love the videos as I am able to find areas that I am weak at in the practice papers.”
Tameem R. avatar

Tameem R.

Student

“Genuinely took me from a grade 4 in maths to achieving a grade 8 in my GCSE's in less than a few months. Best mathematics revision website for those who are aiming to get those high grades.”
Anyim P. avatar

Anyim P.

Student

“Genuinely I think every maths student should have this site. It takes you through the entire AS and A level Maths course, alongside exam questions with step by step solutions.”
Muhammad A. avatar

Muhammad A.

Student

“predicted papers are very useful and i believe there's not a better website for GCSE maths in the UK”
Rayan K. avatar

Rayan K.

Student

“Best Maths Resource out there! Absolutely amazing videos and very concise explantions on everything. Don't even get me started on the loads of exam question/worksheets that are so helpful. And it's all free!”
Dee avatar

Dee

Student

“The best Maths resource site in the world! They have it all and do a great job of keeping everything up to date. I still don't know how they are able to make this free for all. You are truly amazing.”
Hamid I. avatar

Hamid I.

Student

“They have helped me with my A level Maths performance significantly and I jumped from a grade U to a Grade A in only 2-3 months. I HIGHLY recommend to Maths students especially for A level.”
Sophie avatar

Sophie

Student

“MathsGenie's YouTube videos and worksheets are amazing. The videos go into such great depth but in a way that's simple to understand.”
Maria E. avatar

Maria E.

Student

“Amazing website! Truly helped with my GCSEs - I was a very poor student. Managed to go up and reach all grade 6-9's from U-4's. Would definitely recommend :)”
Justine K. avatar

Justine K.

Student

“Absolutely brilliant website with well organised, well written resources for learning or revising maths. I never hesitate to recommend mathsgenie to my students.”
Daryl G. avatar

Daryl G.

Student

“Took me a bit of getting used to but this new site is excellent. I found the old one really useful but this is next level. I share it with all my colleagues and students.”
Binuk J. avatar

Binuk J.

Student

“I used to be really bad at math. My first GCSE mocks I had a 2 but after I found MathsGenie I jumped from 2 to 4 under 3 months.”
Jourdie avatar

Jourdie

Student

“Improved my grade, I used to be borderline passing maths now I'm performing much better. There are videos, practice papers, solutions, exam questions, past GCSE papers all for free. This is really useful.”
Olla avatar

Olla

Student

“Honestly, it's super great. Easy, with the explanation on the side. Every topic also has more than 50 questions, making you feel more confident in doing different types f question in one topic. Try it!”

Ready to breeze through your GCSEs?IGCSEs?A-Levels?AS Levels?GCSEs?GCSEs?

Sign inStart studying for free

Footer

Quick links

  • GCSE past papers
  • GCSE question bank
  • GCSE worksheets
  • GCSE revision guides
  • GCSE lessons
  • Literary Hub
  • Free maths course
  • A Level past papers
  • A Level question bank
  • Old MathsGenie

Tools

  • Revision planner
  • Mock exam builder
  • Ask Genie AI
  • Answer marking
  • Grade calculator
  • Pricing

Company

  • About MathsGenie
  • Maths Genie on Google Play
  • Contact
  • For educators
  • For parents
  • Download the app
  • More resources
  • Blog
  • Student questions
  • Sitemap
  • Privacy policy
  • Terms of Service
  • Cookie policy
  • Report a bug

GCSE

  • Biology
  • Chemistry
  • English Language
  • English Literature
  • Geography
  • Maths
  • Old Maths
  • Physics
  • Statistics

IGCSE

  • Biology
  • Business
  • Chemistry
  • Computer Science
  • English Language
  • English Literature
  • Geography
  • Maths
  • Physics

A Level

  • Biology
  • Business
  • Chemistry
  • Economics
  • Maths
  • Old Maths
  • Physics
  • Psychology
  • Sociology

AS Level

  • Biology
  • Business
  • Chemistry
  • Economics
  • Maths
  • Physics
  • Psychology
  • Religious Studies
  • Sociology
MathsGenie logo

© 2026 MyDojo, Inc. All rights reserved. MyDojo, Inc. does business as MathsGenie.

Exam board names are used for identification only and do not imply affiliation or endorsement.