Both brackets match because this is a perfect square trinomial. It has one repeated root, y = 4, and the steps below show you how to spot that pattern in any similar problem.
How do you factor y² − 8y + 16 step by step?
The y² term has a coefficient of 1, so you only need two numbers that multiply to 16 (the constant) and add to −8 (the middle coefficient). Here is the full routine:
- Write the target: product 16, sum −8.
- List the pairs that multiply to 16. The product is positive and the sum is negative, so both numbers must be negative: −1 and −16, −2 and −8, −4 and −4.
- Add each pair: −17, −10, −8. Only −4 and −4 gives −8.
- Put each number in a bracket with y: (y − 4)(y − 4) = (y − 4)².
Seeing the same number twice is your clue that the trinomial is a perfect square. When the two numbers differ, you get two different brackets, as in factoring x² − 12x + 27, which becomes (x − 3)(x − 9).
Why y² − 8y + 16 is a perfect square trinomial
A perfect square trinomial comes from squaring a binomial. The general pattern is a² − 2ab + b² = (a − b)². Here a = y and b = 4, so a² is y², b² is 16, and 2ab is 2 × y × 4 = 8y. Every piece lines up.
You can test any trinomial with three quick questions:
- Is the first term a perfect square? Here, y² = y × y.
- Is the last term a perfect square? Here, 16 = 4 × 4.
- Is the middle term twice the product of those two roots? Here, 2 × y × 4 = 8y.
If all three are yes, the sign of the middle term tells you the sign in the bracket. The same pattern with plus signs appears in m² + 12m + 36, which becomes (m + 6)².
Check the answer by expanding (y − 4)²
Factoring is easy to verify, and I always ask my students to do it. Multiply the brackets term by term: y × y = y², y × (−4) = −4y, (−4) × y = −4y, and (−4) × (−4) = +16. The two middle terms combine to −8y, so you land back on y² − 8y + 16.

A second check is to substitute a number into both forms. At y = 6, the original gives 36 − 48 + 16 = 4, and (6 − 4)² = 2² = 4. At y = 6.5, both sides give 6.25, since 42.25 − 52 + 16 = 6.25 and (2.5)² = 6.25 (that is the same product as 2.5 times 2.5). Matching results at a couple of values make a wrong factorisation very unlikely.
What are the roots of y² − 8y + 16 = 0?
Set the factored form equal to zero: (y − 4)² = 0. A square is zero only when what is inside is zero, so y − 4 = 0 and y = 4. Because the factor appears twice, 4 is called a double root.
The quadratic formula agrees. The discriminant is b² − 4ac = (−8)² − 4(1)(16) = 64 − 64 = 0, and a zero discriminant always means exactly one repeated root. If solving a bracket like y − 4 = 0 feels shaky, solving 9x − 18 = 9 is good practice for that last step.
The graph of y² − 8y + 16 touches the x-axis at (4, 0) and turns back up without crossing. That point is the vertex, and the curve crosses the y-axis at 16.
A faster way to spot it in your head
Try this routine: halve the middle coefficient, then square it. Half of 8 is 4, and 4² = 16. Since 16 is the constant term, the trinomial is a perfect square. The middle term is negative, so the answer is (y − 4)². No list of factor pairs needed.

I teach this as “halve, square, compare” and it is the trick that finally makes perfect squares click for many students. It works for any trinomial starting with y² (or x²). If the squared half does not match the constant, it is not a perfect square, and you go back to the sum and product method.
Try this: Use halve, square, compare on y² − 14y + 49. Check that half of 14 squared equals 49, then write the factored form. (Answer: (y − 7)².)
Common mistakes with y² − 8y + 16
The mistake I see most is writing (y − 4)(y + 4). That expands to y² − 16, because the middle terms cancel. A perfect square needs the same sign in both brackets. Another frequent slip is writing (y − 4)² = y² − 16, squaring each term separately. Squaring a binomial always produces a middle term, which is where −8y comes from.
Mixing up signs is the third trap. When the constant is positive, both numbers share the same sign as the middle term. When the constant is negative, as in x² − x − 6, the numbers have opposite signs. If there is no constant at all, as in x² − 25x, take out the common factor instead.
| Expression | Factored form | Note |
|---|---|---|
| y² − 8y + 16 | (y − 4)² | perfect square |
| y² + 8y + 16 | (y + 4)² | perfect square, plus sign |
| y² − 16 | (y − 4)(y + 4) | difference of squares |
| y² − 8y − 16 | does not factor over integers | discriminant is 128 |
What if the problem says y² − 8y + 16 = 64?
This version trips up many students, so here is the clean way. The left side is (y − 4)², so the equation is (y − 4)² = 64. Take the square root of both sides: y − 4 = 8 or y − 4 = −8. That gives y = 12 or y = −4.
Check both: 12² − 8(12) + 16 = 144 − 96 + 16 = 64, and (−4)² − 8(−4) + 16 = 16 + 32 + 16 = 64. You can also subtract 64 from both sides to get y² − 8y − 48 = 0, which factors as (y − 12)(y + 4) = 0 and gives the same answers.
Perfect squares are the doorway to completing the square, the quadratic formula and vertex form. Writing y² − 8y + 16 as (y − 4)² is exactly the move you reverse when you complete the square, so it pays to know it cold.
Practice problems
Try these on paper first, then check your answer or load the full steps into the solver.
- x² - 6x + 9(x − 3)(x − 3)
- x² - 10x + 25(x − 5)(x − 5)
- 4x² - 12x + 9(2x − 3)(2x + 3)
- 9x² - 30x + 25(3x − 5)(3x + 5)
Factor y² − 8y + 16: common questions
What is y² − 8y + 16 factored?
It factors as (y − 4)(y − 4), which is the same as (y − 4)². It is a perfect square trinomial, so both brackets are identical.
Is y² − 8y + 16 a perfect square trinomial?
Yes. The first term is y², the last term is 4², and the middle term is −2 × y × 4 = −8y. That matches the pattern a² − 2ab + b² = (a − b)².
What is the solution of y² − 8y + 16 = 0?
The only solution is y = 4, a double root. The discriminant is (−8)² − 4(1)(16) = 0, which confirms there is just one repeated root.
What is the difference between y² − 8y + 16 and y² + 8y + 16?
The sign of the middle term decides the sign inside the bracket. y² − 8y + 16 = (y − 4)², while y² + 8y + 16 = (y + 4)².