Try it with your numbers
Show every step
This pattern is one of the special products of binomials, and it is worth knowing cold. It collapses a three-term polynomial into one squared factor, it powers completing the square, and it explains why some quadratics have exactly one root.
What makes a trinomial a perfect square?
Look at the shape of . The two end terms are squares, and the middle term is twice the product of their square roots. The sign of the middle term decides the sign inside the binomial. The last term is always positive, because and are the same number.
That gives a three-part test:
- The first term is a perfect square, . Its root is .
- The last term is a positive perfect square, . Its root is .
- The middle term equals in size. A plus sign gives and a minus sign gives .
Try . The roots of the end terms are and , and , which matches. So .
Most wrong answers come from skipping step 3. Two square ends do not make a perfect square trinomial; the middle term is the whole test. Also remember that “square” applies to the variable part too: works because and .
Quick check
Answer: Yes,
Where does the perfect square trinomial formula come from?
Draw a square whose side length is . Cut it with one vertical and one horizontal line, and you get four pieces: an square, a square, and two identical rectangles. Adding the areas gives
The 2 in the middle term is not a coincidence. It counts the two rectangles.
The algebraic version is the FOIL method applied to . The inner and outer products are both , so they combine into . Replace with and the same work gives , which is why a single formula covers both signs.
Squaring a sum is missing two rectangles. At and , but , and the gap of is exactly .
The coefficients are the third row of Pascal’s triangle. The binomial theorem extends the same idea to higher powers, so a perfect square trinomial is simply the case. For the coefficients become .
How do you factor a perfect square trinomial?
Run the formula backwards: read off and from the end terms, confirm the middle term, and write the square. Two examples show the full process, including the case where the pattern hides.
Example 1. Factor .
The root of is and the root of is . The middle term should have size , which matches, and the sign is negative, so the binomial uses subtraction:
Expanding confirms it: .
Example 2. Factor .
Neither nor is a perfect square, so the test appears to fail. Take out the greatest common factor first (see factoring out the GCF):
Inside the parentheses, the roots are and , and matches. Therefore
Always pull out the GCF before testing. A perfect square can hide behind a constant multiplier, and that is the usual reason students declare a valid case “not a perfect square.”
What if the trinomial has negatives, fractions or two variables?
A negative leading term looks like a failure, but the negative sits outside the square. For , factor out :
The expression is a negative perfect square, and it is never positive, which is useful to know when you sketch its graph.
Fractions follow the same test. For , the roots are and , and matches, so the result is . If fractions slow you down, multiply through by to get , then divide back. Decimals work too: .
Try this: Factor by first pulling out , then expand your answer to confirm it matches.
With two variables, treat each root as a product of letters. In , the roots are and , and matches. So the expression equals . The middle term must contain both letters, or the pattern is broken.
What is the discriminant test for a perfect square trinomial?

Here is the trap that costs the most points. Consider . Both end terms are squares ( and ), so it looks promising. But the middle term would need to be , and it is only . It is not a perfect square, and expands to instead.
A faster, algebraic test uses the discriminant. For with and positive squares, say and , the middle term must be . Squaring gives . So the trinomial is a perfect square exactly when
| Trinomial | Middle term needed | Perfect square? | |
|---|---|---|---|
| No | |||
| Yes | |||
| Yes |
This test is more general than it first looks. A zero discriminant means the quadratic has one repeated root, so its graph touches the x-axis at the vertex without crossing. For , the discriminant is , and indeed it equals , a constant times a perfect square.
When the test fails, the trinomial needs a different method. Try the standard approaches in factoring trinomials. If the discriminant is negative, as with , it will not factor over the real numbers at all.
Quick check
Answer:
Perfect square trinomial vs difference of two squares
These two patterns look related and get mixed up constantly. A difference of two squares has two terms and no middle term: . A perfect square trinomial has three terms and a repeated factor: . The full rules for the first pattern are in factoring the difference of two squares.
The classic error is writing . That drops the middle term. The correct expansion is
The last term of a perfect square trinomial is always positive. An expression such as cannot be a binomial squared, whatever the middle term does.
The two patterns can also work together. Take . The roots are and , and matches, so it equals . The factor is itself a difference of two squares, so
A good habit: after factoring, look at each factor again and ask whether it can be factored further.
How does completing the square use perfect square trinomials?
Completing the square means building the missing last term of a perfect square trinomial. Since has middle term , the missing piece must be . Add it, and the expression becomes .
Example 3. Solve .
Move the constant to the right side:
Half of is , and . Add to both sides:
The left side is now a perfect square trinomial, so
You can confirm it with the formula: the discriminant is , and , since . Working this derivation on a general is exactly how the quadratic formula is proved. For more reps, see these quadratic formula practice problems.
If the leading coefficient is not , divide every term by it first. The same move rewrites as , which shows the vertex is at a glance.
How do you check your answer and use it for mental math?
The sure check is to expand your factored form and compare it to the original. A quicker check is to substitute a number into both versions. For and , try (both give ) and (both give ). One test value can match by accident, so use two, and make one of them negative if you suspect a sign error.
The same pattern gives fast mental squares. Split the number into a round number plus or minus a small one:
Real uses follow the geometry. A square garden with side meters has area , so adding meters to each side adds square meters, which is the two strips plus the corner. Engineers and statisticians meet the same expansion whenever they square a deviation, since always produces a middle term.
Once the pattern feels automatic, mix it with other techniques in these factoring practice problems.
Quick check
Answer:
Practice problems
0 of 5 solved
- Factor .
Answer:
The end terms give and . The middle term should be , which matches. So . - Factor .
Answer:
The roots of the end terms are and . The middle term should be , and it is negative here. So the factored form is . - Find every value of that makes a perfect square trinomial.
Answer: or
The end terms give and . The middle term must be . So gives and gives . - Factor completely: .
Answer:
Take out the GCF: . Inside, and , and matches. The result is . - Solve by completing the square.
Answer:
Move the constant: . Half of is and its square is , so add to both sides: . Then , so .
Common questions
What is the formula for a perfect square trinomial?
and . The first and last terms are squares, and the middle term is twice the product of their square roots.
How do you know if a trinomial is a perfect square?
Check that the first and last terms are perfect squares, then check that the middle term equals in absolute value. For , the equivalent test is with and both perfect squares.
Can a perfect square trinomial have a negative last term?
No. The last term is , and both and are positive. An expression like cannot be the square of a binomial.
What number completes the square for ?
Add . For that is , which gives .
Is a perfect square trinomial?
No. It has two terms, and over the real numbers it does not factor. Squaring adds the missing term.
What is the difference between a perfect square trinomial and a difference of two squares?
A perfect square trinomial has three terms and factors as . A difference of two squares has two terms and factors as , with no middle term.