The Perfect Square Trinomial Calculator expands and factors perfect square trinomials of the form (x ± a)^2. Enter the values and signs, and it returns the expanded trinomial and the factored form with exact coefficients.
This is the fastest way to confirm whether a trinomial is a perfect square and to generate the correct factorization without guesswork.
What Is a Perfect Square Trinomial?
A perfect square trinomial is a quadratic expression that can be written as the square of a binomial. The most common forms are:
- (x + a)^2
- (x − a)^2
When you expand either one, you always get a trinomial with a specific coefficient pattern. That pattern is what the calculator checks and produces.
Core Formulas (The Patterns You Must Know)
Expansion
Expanding a perfect square binomial gives:
| Form | Expanded trinomial |
|---|---|
| (x + a)^2 | x^2 + 2ax + a^2 |
| (x − a)^2 | x^2 − 2ax + a^2 |
Factoring (Reverse the Expansion)
If you have a quadratic in the form x^2 + bx + c, it is a perfect square trinomial if the coefficients match the pattern:
- c = a^2
- b = ±2a
In practice, you can find a from c (as a square root), then check whether b equals 2a or −2a.
How the Perfect Square Trinomial Calculator Works
The calculator supports two common workflows: expand a binomial square into a trinomial, or factor a trinomial back into a binomial square. It uses the exact math rules above and validates the sign.
Inputs
- Mode: Choose Expand or Factor.
- x term: The variable is treated as x (the calculator is for x-based quadratics).
- a (for Expand): The constant inside the binomial (as a number).
- b and c (for Factor): The middle and constant coefficients in x^2 + bx + c.
- Sign (for Expand): Choose + or −.
Outputs
- Expanded trinomial: Coefficients for x^2, x, and the constant term.
- Factored form: The binomial square, either (x + a)^2 or (x − a)^2.
- Check result (for Factor): Whether the trinomial is a perfect square and which sign matches.
Step-by-Step: Expand a Perfect Square
To expand (x + a)^2 or (x − a)^2, follow this rule:
- Square the first term: x^2.
- Compute the middle term: ±2ax.
- Square the constant: a^2.
Because the calculator uses these exact steps, it’s ideal for checking homework answers and avoiding sign mistakes.
Step-by-Step: Factor a Perfect Square Trinomial
To factor x^2 + bx + c, do this:
- Compute a from c: if c is a perfect square, then a = √c or a = −√c (the sign will be handled by b).
- Check the middle coefficient: verify whether b = 2a or b = −2a.
- Write the factorization: (x + a)^2 or (x − a)^2.
If the coefficients don’t match, the trinomial is not a perfect square. The calculator reports that directly.
Practical Examples (Real-World Use)
Example 1: Expanding for Simplification
Suppose you need to simplify (x + 5)^2. The correct expansion is:
- x^2 + 2(5)x + 5^2
- x^2 + 10x + 25
That expanded form is often easier to use in solving equations, graphing, or comparing quadratics.
Example 2: Factoring to Verify a Form
You are given x^2 − 8x + 16 and want to check if it is a perfect square. The calculator will confirm that 16 = 4^2 and that −8 = −2·4, so the factorization is:
- (x − 4)^2
This is a common verification step in algebra classes.
Common Mistakes to Avoid
- Sign errors: The middle term flips sign when you switch between + and −.
- Forgetting the 2: The middle coefficient is always 2a, not a.
- Assuming every quadratic factors as a perfect square: Many quadratics factor, but only some match the strict perfect-square pattern.
- Using the wrong structure: The calculator assumes the quadratic is x^2 + bx + c. If your leading coefficient isn’t 1, rewrite it first.
Frequently Asked Questions
How do I know if a trinomial is a perfect square?
A trinomial is a perfect square when it matches x^2 ± 2ax + a^2 for some number a. Compute a^2 from c, then compare the middle coefficient b to 2a or −2a. If it matches exactly, it is a perfect square trinomial.
What is the difference between factoring and expanding?
Expanding turns a binomial square like (x + a)^2 into a trinomial x^2 + 2ax + a^2. Factoring does the reverse: it rewrites x^2 + bx + c as (x ± a)^2. Both use the same coefficients pattern.
Can the calculator handle fractions and decimals?
Yes. You can enter a, b, and c as decimals or fractions (as decimal numbers). The calculator checks coefficient relationships using exact arithmetic for the inputs you provide. If rounding makes the match unclear, it will show a “not a perfect square” result.
What if c is negative?
If c is negative, it cannot equal a^2 for any real number a. That means x^2 + bx + c is not a perfect square over the real numbers. The calculator will flag the input as invalid for factoring into (x ± a)^2.
Does a perfect square trinomial always have integer a?
No. a can be a non-integer as long as c = a^2 and b = ±2a. For example, x^2 + 3x + 2.25 equals (x + 1.5)^2. The calculator supports non-integer values as long as the relationships match.
Use the Calculator to Check Your Work Fast
When you’re solving, graphing, or simplifying quadratics, perfect square forms show up constantly. Use the calculator to expand quickly, factor with confidence, and confirm whether your trinomial truly matches a square.
Enter your values, review the result, and rely on the check output to catch sign and coefficient mistakes immediately.



