Completing the Square
Learn to complete the square in Algebra 1: build perfect-square trinomials, solve any quadratic equation, and rewrite standard form into vertex form to find the vertex.
What you'll do in this lesson
A voice-first session with the Crimsora tutor on Completing the Square, then targeted practice and FRQs — with the tutor adapting to where you get stuck.
What this lesson covers
Factoring only works when a quadratic happens to break apart into nice integer pieces, and taking square roots only works when the equation already looks like something squared equals a number. Completing the square is the technique that forces every quadratic into that square-root-friendly shape, whether or not it factors. It is also the bridge between the two ways you have seen quadratics written: standard form , which shows the y-intercept, and vertex form , which shows the vertex instantly.
In this lesson you will learn the perfect-square pattern that makes the whole method work, use it to solve equations exactly, and use it again to rewrite functions in vertex form. The same algebra that solves is what produces the quadratic formula in the next lesson, so getting comfortable here pays off twice.
In this lesson you will learn the perfect-square pattern that makes the whole method work, use it to solve equations exactly, and use it again to rewrite functions in vertex form. The same algebra that solves is what produces the quadratic formula in the next lesson, so getting comfortable here pays off twice.
The Perfect-Square Pattern Behind the Method
Everything starts with one identity:Read the right side carefully. The middle coefficient is and the last term is . So the constant is always the square of half the middle coefficient. If a trinomial has the form , the number that completes the square isand the result factors as .
Two details save a lot of trouble. First, the sign inside the parentheses matches the sign of , because you keep half of including its sign; the added constant is always positive since it is a square. Second, an odd does not mean you did something wrong. Half of is , and is a perfectly legal constant. Students who round to or destroy the equation. Keep fractions exact and the method works every time.
A quick check: expand your finished square mentally. should match the trinomial you built.
| Expression | Half of | Add | Factored square |
|---|---|---|---|
A quick check: expand your finished square mentally. should match the trinomial you built.
Solving an Equation When the Leading Coefficient Is 1
To solve , you rearrange so the -terms are alone, complete the square on both sides, then take square roots.
Solve .
The critical move is adding to both sides. Completing the square changes the expression, so you must keep the equation balanced. Forgetting the right side is the single most common error in this lesson.
The second critical move is the . Every positive number has two square roots, so gives and . Writing only loses one of the two solutions.
When the number on the right is not a perfect square, leave it in radical form and simplify. For you get , so . When the number on the right is negative, as in , there is no real solution, because no real number squares to a negative. That connects directly to the discriminant you meet later in the unit.
Solve .
| Step | Result |
|---|---|
| Move the constant | |
| Half of is ; square it | |
| Add to both sides | |
| Factor the left side | |
| Square root property | |
| Solve both branches | or |
The second critical move is the . Every positive number has two square roots, so gives and . Writing only loses one of the two solutions.
When the number on the right is not a perfect square, leave it in radical form and simplify. For you get , so . When the number on the right is negative, as in , there is no real solution, because no real number squares to a negative. That connects directly to the discriminant you meet later in the unit.
When the Leading Coefficient Is Not 1
The pattern assumes the squared term is exactly . If the equation starts with or , you must deal with that coefficient first.
In an equation, the cleanest route is to divide every term by . From , divide by to get , then complete the square as usual: , , or . Dividing works because the right side is zero or a single number, so scaling the whole equation changes nothing about the solutions.
In a function being rewritten in vertex form, you cannot divide — that would change the function. Instead you factor out of the first two terms only, complete the square inside the parentheses, and then compensate outside. Rewrite :Half of is , and , so add inside the parentheses. But the out front multiplies that , meaning you really added to the expression. Subtract outside to keep the function the same:The compensation step is where most mistakes happen. Students subtract instead of because they ignore the factor of . Always ask what the added constant becomes after it is multiplied by , and undo exactly that amount. Verify by expanding: .
In an equation, the cleanest route is to divide every term by . From , divide by to get , then complete the square as usual: , , or . Dividing works because the right side is zero or a single number, so scaling the whole equation changes nothing about the solutions.
In a function being rewritten in vertex form, you cannot divide — that would change the function. Instead you factor out of the first two terms only, complete the square inside the parentheses, and then compensate outside. Rewrite :Half of is , and , so add inside the parentheses. But the out front multiplies that , meaning you really added to the expression. Subtract outside to keep the function the same:The compensation step is where most mistakes happen. Students subtract instead of because they ignore the factor of . Always ask what the added constant becomes after it is multiplied by , and undo exactly that amount. Verify by expanding: .
Reading the Vertex and Choosing a Method
Once a function is written as , the vertex is and the axis of symmetry is the line . Sign care matters: has vertex , while means , so the vertex is . The form is minus , so a plus sign inside signals a negative .
The sign of tells you whether is a minimum or a maximum output. If the parabola opens up and is the smallest -value; if it opens down and is the largest. That is exactly what you use for questions about maximum height or minimum cost in the modeling lesson.
A useful check on your vertex: the -coordinate must equal from the original standard form. For , , matching the you found. That is not a coincidence — completing the square in general is what proves the formula.
Completing the square always works, but it is the preferred tool when you want the vertex or when a problem specifically asks you to show the square-root structure.
The sign of tells you whether is a minimum or a maximum output. If the parabola opens up and is the smallest -value; if it opens down and is the largest. That is exactly what you use for questions about maximum height or minimum cost in the modeling lesson.
A useful check on your vertex: the -coordinate must equal from the original standard form. For , , matching the you found. That is not a coincidence — completing the square in general is what proves the formula.
| Situation | Best tool |
|---|---|
| or | Square roots directly |
| Factors easily, like | Factoring |
| Need the vertex from standard form | Completing the square |
| Messy coefficients, only need solutions | Quadratic formula |
Where Students Actually Go Wrong
Four errors account for most incorrect work on this topic.
Adding to only one side. Writing and then changes the equation. Whatever you add on the left must appear on the right.
Dropping the negative root. From , both and are valid, giving and . A quadratic with a positive number on the right after completing the square has two real solutions.
Mishandling the factor of in vertex form. If you factor out and add inside the parentheses, you actually added , so you must add back outside. Sign errors with a negative are especially common.
Rounding fractions. Half of is , not or . The completed constant is . If you need a decimal answer, convert at the very end.
Two habits prevent nearly all of this. First, expand your vertex form and compare it term by term with the original — if it does not match exactly, you know immediately. Second, substitute your solutions back into the original equation. For in : , confirmed. These checks take under a minute and catch arithmetic slips that would otherwise carry through a whole problem set.
Adding to only one side. Writing and then changes the equation. Whatever you add on the left must appear on the right.
Dropping the negative root. From , both and are valid, giving and . A quadratic with a positive number on the right after completing the square has two real solutions.
Mishandling the factor of in vertex form. If you factor out and add inside the parentheses, you actually added , so you must add back outside. Sign errors with a negative are especially common.
Rounding fractions. Half of is , not or . The completed constant is . If you need a decimal answer, convert at the very end.
Two habits prevent nearly all of this. First, expand your vertex form and compare it term by term with the original — if it does not match exactly, you know immediately. Second, substitute your solutions back into the original equation. For in : , confirmed. These checks take under a minute and catch arithmetic slips that would otherwise carry through a whole problem set.
Key terms
- Perfect-square trinomial.
- A trinomial that factors as the square of a binomial, such as . Its constant term equals the square of half its middle coefficient.
- Completing the square.
- Adding to an expression of the form so it becomes a perfect-square trinomial, compensating elsewhere to keep the equation or function unchanged.
- Standard form.
- A quadratic written as . It shows the y-intercept directly but hides the vertex.
- Vertex form.
- A quadratic written as , where the vertex is and the axis of symmetry is .
- Square root property.
- If with , then . The produces both solutions.
- Axis of symmetry.
- The vertical line through the vertex, about which the parabola is a mirror image; it also equals .
- Compensating term.
- The amount added or subtracted outside the parentheses to offset the constant introduced inside, equal to when has been factored out.
Worked example
For the function : (a) rewrite it in vertex form and state the vertex, and (b) solve by completing the square, giving exact answers.
Part (a). Factor out of the first two terms only, leaving the constant alone: .
Inside the parentheses, , so half of is and . Add inside. Because the out front multiplies it, you have actually added to the function, so subtract outside:Check by expanding: , which matches. The vertex is , and since the parabola opens up, so is the minimum value. Confirm the -coordinate with .
Part (b). Use the vertex form you already built: , so and .
Apply the square root property:So , approximately and .
Sanity check: the two roots should be symmetric about the axis , and they are — each sits units away.
Inside the parentheses, , so half of is and . Add inside. Because the out front multiplies it, you have actually added to the function, so subtract outside:Check by expanding: , which matches. The vertex is , and since the parabola opens up, so is the minimum value. Confirm the -coordinate with .
Part (b). Use the vertex form you already built: , so and .
Apply the square root property:So , approximately and .
Sanity check: the two roots should be symmetric about the axis , and they are — each sits units away.
Practice questions
Which expression is equivalent to ?
Answer:
Half of is , and , so . Since you added to build the square, subtract from the original constant: . Expanding gives , confirming the match. The choice is what you get if you forget to compensate, and flips the sign of .
Solve by completing the square. Give exact answers.
Answer:
Move the constant: . Half of is , and . Add to both sides: . Factor: . Take square roots with : , so . The odd middle coefficient is not a problem as long as you keep as a fraction rather than rounding.
A model for the height of a thrown object is . Rewrite it in vertex form and state the maximum height and when it occurs.
Answer: ; the maximum height is 7 units, reached at .
Factor from the first two terms: . Half of is and , so add inside. Because of the out front, that adds overall, so add outside to compensate: . Since , the parabola opens downward and the vertex is the highest point. Watch the compensation sign — adding inside a negative-coefficient parentheses requires adding, not subtracting, outside.
FAQ
- Why do I add and not something else?
- Because expanding gives . The middle coefficient is twice , so must be half of , and the constant is squared. Adding is the only constant that makes a perfect square.
- If the quadratic formula always works, why learn completing the square?
- Two reasons. First, the quadratic formula is derived by completing the square on , so this method is the reason that formula exists. Second, the formula gives you roots but not the vertex; completing the square converts standard form into vertex form, which is what you need for graphing, maximum and minimum problems, and transformations.
- What if the middle coefficient is odd?
- Nothing changes except that you work with fractions. For , half of is and you add , giving . Keep the fractions exact through the whole problem and convert to a decimal only at the end if the question asks for one.
- Why do I divide by when solving an equation but factor out when rewriting a function?
- An equation set equal to zero stays equivalent if you divide every term by the same nonzero number, so dividing is legal and simplifies the work. A function is not an equation you can scale — dividing by would produce a different function. So instead you factor out of the first two terms and compensate outside the parentheses, leaving the output values unchanged.
Learn this with a teacher, not a page
The Crimsora tutor teaches Completing the Square live — explaining on a whiteboard, asking you questions, and adapting to where you get stuck.