A perfect square trinomial has the form a² + 2ab + b² or a² − 2ab + b², and factors as (a + b)² or (a − b)². Check that the first and last terms are perfect squares and the middle term is twice the product of their square roots: 9x² + 12x + 4 = (3x + 2)².
Reviewed by the Helping with Math Team · Updated 10 October 2026
9x² + 12x + 4 = (3x + 2)²
Introduction
Factoring perfect square trinomials is an important skill to develop when studying algebra. This page shows how to spot one and factor it, with worked examples, practice and answers.
Definition of the Topic
A perfect square trinomial is a quadratic expression of the form ax2 + bx + c, where a and c are positive perfect squares, and b is plus or minus twice the product of the square roots of a and c. Factoring perfect square trinomials involves expressing them as the square of a binomial.
Why This Pattern Works
To understand why these trinomials factor the way they do, let’s look at what happens when we expand a binomial square:
$(a + b)^2 = a^2 + 2ab + b^2$
$(a – b)^2 = a^2 – 2ab + b^2$
This shows us that if:
- the first term is a perfect square,
- the last term is a perfect square,
- and the middle term is twice the product of their square roots,
then the trinomial must be a perfect square trinomial. Recognizing this structure helps us factor quickly and with confidence.
Key Concepts
Perfect square trinomials can always be factored into the square of a binomial.
The coefficients of the quadratic and constant terms must be perfect squares.
The middle term is two times the product of the square roots of the quadratic and constant terms.
How to Recognize a Perfect Square Trinomial
Use this checklist to identify perfect square trinomials
- ✅ Is the first term a perfect square?
- ✅ Is the last term a perfect square?
- ✅ Is the middle term exactly twice the product of the square roots of the first and last terms?
- ✅ Does the sign of the middle term give $(a + b)^2$ (plus) or $(a – b)^2$ (minus)? The last term must be positive.
- ✅ Optional: for $ax^2 + bx + c$, check that $b^2 = 4ac$ as a quick test.
If all these are true, the trinomial factors neatly into a binomial square.
Discussion with Illustrative Examples
Perfect square trinomials are three-term algebraic expressions obtained by multiplying one binomial by the same binomial. Generally, perfect square trinomials are in the form a2+2ab+b2 or a2 -2ab + b2.
The following conditions must be met to factor perfect square trinomials:
a. Check if the quadratic and constant terms are perfect squares and
b. The middle term is twice/double the product of the square roots of the quadratic and constant terms.
Consider the perfect square trinomial 9x2 + 12x + 4.
9x2 (the quadratic term) and 4 (the constant term) are perfect squares.
The middle term, 12x, equals twice the product of the square roots of 9 and 4, which are 3x and 2, respectively. Therefore, this trinomial can be factored into the square of a binomial as follows: 9x2 + 12x + 4 = (3x + 2)2.
Examples with Solutions
Example 1
Factor the perfect square trinomial: 16x2 – 40x + 25.
Solution
Here, $\sqrt{16x^2}$ = 4x while $\sqrt{25}$ = 5. The middle term, 40x, is twice the product of 4x and 5. Taking the sign of the trinomial’s middle term, we’ll have (4x-5)2
16x2 – 40x + 25 = (4x – 5)2
Example 2
Factor the perfect square trinomial: x2 + 14x + 49.
Solution
The square root of the first and last term of the trinomial is x and 7, respectively. The middle term, 14x, is twice the product of x and 7. Therefore,
x2 + 14x + 49 = (x + 7)2
More Practice Examples
Try factoring each of the following:
- 1. $9x^2 + 60xy + 100y^2$
Answer: $(3x + 10y)^2$ - 2. $16x^2 – 24x + 9$
Answer: $(4x – 3)^2$ - 3. $4x^2 + 28x + 49$
Answer: $(2x + 7)^2$ - 4. $25a^2 – 40a + 16$
Answer: $(5a – 4)^2$ - 5. $x^2 + 6xz + 9z^2$
Answer: $(x + 3z)^2$
Tip: Check each one against the checklist above before factoring.
Real-life Application with Solution
A square garden has an area of 9x2+ 30x + 25 square meters. Determine the square garden’s length on each side.
Solution
Factoring the area expression, we get:
9x2 + 30x + 25 = (3x + 5)2
Since this is a square, both sides are equal in length. Each side of the square garden is 3x + 5 meters long.
Common Mistakes To Avoid
🔸 Assuming too quickly – Just because the first and last terms are squares doesn’t guarantee it’s a perfect square trinomial. Always check the middle term.
🔸 Forgetting signs – A negative middle term means a minus in the binomial, e.g. $x^2 – 8x + 16 = (x – 4)^2$, not $(x + 4)^2$.
🔸 Not simplifying – Always simplify square roots of terms before checking. For example, $\sqrt{36x^2} = 6x$, not 36x or $6x^2$.
Practice Test
1.Factor the perfect square trinomial: 4x2– 20x+25
2. Factor the perfect square trinomial: 49m2+28m+4
3. Factor the perfect square trinomial: 25p2-30p+9
4. Factor the perfect square trinomial: 64y2-32y+ 4
5. Factor the perfect square trinomial: z2+ 18z +81
6. Factor: (x+y)2 + 14(x+y) + 49
7. Calculate the length of each side of the square with an area of 25x2 – 90x + 81.
Answers:
1. 4x2 – 20x + 25 = (2x-5)2
2. 49m2 + 28m + 4 = (7m+2)2
3. 25p2 – 30p + 9 = (5p-3)2
4. 64y2 – 32y + 4 = (8y−2)2, which factors fully as 4(4y−1)2
5. z2 + 18z + 81 = (z+9)2
6. (x+y)2 + 14(x+y) + 49 = ((x+y)+7)2 or (x+y+7)2
7. 25x2 – 90x + 81 = (5x – 9)2. Each side of the square is 5x – 9 units long.
More practice: perfect square trinomials worksheets, factoring difference of two squares worksheets and factoring simple polynomials worksheets.
For teachers: grade level and standards
Grade level
Factoring perfect square trinomials is typically taught in middle or early high school, falling within the 8th to the 10th-grade range.
Math domain
Factoring perfect square trinomials falls under the domain of Algebra, specifically within the area of quadratic expressions and equations.
Common Core standards
CCSS.MATH.CONTENT.HSA.SSE.A.2: Use the structure of an expression to identify ways to rewrite it.
CCSS.MATH.CONTENT.HSA.REI.B.4: Solve quadratic equations in one variable.
Factoring Perfect Square Trinomials FAQs
What is the formula for a perfect square trinomial?
a² + 2ab + b² = (a + b)² and a² − 2ab + b² = (a − b)².
How do you factor a perfect square trinomial?
Take the square roots of the first and last terms, check that the middle term is twice their product, then write (root + root)² if the middle term is positive or (root − root)² if it is negative. Example: x² − 10x + 25 = (x − 5)².
How do I check if a trinomial is a perfect square?
For ax² + bx + c with a and c positive, it is a perfect square when b² = 4ac. Example: 4x² + 12x + 9 has 12² = 144 = 4 × 4 × 9.
Is x² + 4x + 16 a perfect square trinomial?
No. x² and 16 are squares, but twice x × 4 is 8x, not 4x. The perfect square would be x² + 8x + 16 = (x + 4)².
Can the last term of a perfect square trinomial be negative?
No. The last term is b², so it is always positive (if the first term is positive). x² + 6x − 9 is not a perfect square trinomial.
Can all trinomials be factored as perfect squares?
No. Only trinomials that pass the checks (square first and last terms, middle term twice their product) can. Others may factor into two different binomials, or not at all.
How does factoring help solve quadratic equations?
Once x² + 6x + 9 = 0 is written as (x + 3)² = 0, the square root gives x + 3 = 0, so x = −3.









