Perfect Square Trinomial Calculator

Our free online perfect square calculator trinomial delivers verified step-by-step solutions with BigInt precision in under a millisecond. Enter numbers or algebraic expressions below for transparent intermediate working.

Instant Solutions
Step-by-Step Breakdown
100% Free & Private

Interactive Calculator
Recognize and factor trinomials matching a² ± 2ab + b² = (a ± b)².
Try an example:
Factored Squared Binomial
(x + 5)2
Show step-by-step solution
Pattern Verification:
First term = (x)2,   Last term = (5)2
Middle term = 2 × (x) × (5) = 10x (Matches middle term!)
Factored = (x + 5)2

Last reviewed: October 2026 Reviewed by the FactorCalc editorial teamHow we test this calculator →

On This Page (Table of Contents)

How to Use This Perfect Square Trinomial Calculator

Identifying whether a quadratic trinomial condenses into a squared binomial (ax ± b)² takes three diagnostic checks:

  1. Enter Trinomial Expression: Type a 3-term polynomial in the form ax² ± bx + c (e.g. x² + 6x + 9 or 4x² − 12x + 9).
  2. Verify Middle Cross-Term: Click ‘Check & Factor’ to verify that the middle coefficient matches exactly 2ab.
  3. View Squared Binomial: Review the squared binomial result (ax ± b)² and test expansion in the verification box.

What is a Perfect Square Trinomial?

A perfect square trinomial is a three-term polynomial that results from squaring a two-term binomial. Just as 25 is a perfect square number because 52 = 25, the quadratic expression x2 + 6x + 9 is a perfect square trinomial because (x + 3)2 = x2 + 6x + 9.

Recognizing perfect square trinomials allows algebra students to factor expressions in a single step without executing the lengthy AC method or trial-and-error grouping. Moreover, this mathematical pattern serves as the bedrock for the technique of completing the square, which is used to derive the quadratic formula and convert conic sections into standard vertex form. Our perfect square calculator trinomial tests whether your expression matches this pattern and presents the factored squared binomial.

The Two Perfect Square Trinomial Formulas

The algebraic formulas governing perfect square trinomials are: − Square of a Sum:
a2 + 2ab + b2 = (a + b)2 − Square of a Difference:
a2 − 2ab + b2 = (a − b)2

Notice the key structural features:
1. The first term (a2) and the last term (b2) MUST be positive perfect squares.
2. The middle term MUST equal exactly twice the product of the square roots of the first and last terms: ±2ab.
3. If the middle term has a plus sign, the binomial is (a + b)2.
4. If the middle term has a minus sign, the binomial is (a − b)2.

The 3-Step Verification Test

To verify if any quadratic trinomial Ax2 + Bx + C is a perfect square trinomial: − Step 1: Check if the first term is a perfect square: a = √(Ax2). − Step 2: Check if the constant term C is positive and a perfect square: b = √(C). − Step 3: Multiply 2 × a × b. Does this product match the absolute value of the middle term |B|x? − If YES: The expression is a perfect square trinomial, factoring into (a ± b)2. − If NO: The expression is not a perfect square trinomial (factor using standard AC method instead).
*Discriminant Test*: A quadratic trinomial is a perfect square if and only if its discriminant is identically zero: D = B2 − 4AC = 0.

Worked Step-by-Step Examples

Examine these worked examples demonstrating how our perfect square calculator trinomial evaluates expressions: − Example 1: Basic Trinomial (x2 + 10x + 25): − Test Step 1: First term is x2 -> a = x. − Test Step 2: Last term is 25 -> b = 5. − Test Step 3: 2 × a × b = 2 × x × 5 = 10x. This matches the middle term 10x exactly! − Factored form: (x + 5)2. − Example 2: Trinomial with Coefficients (4x2 − 12x + 9): − Test Step 1: First term 4x2 -> a = 2x. − Test Step 2: Last term 9 -> b = 3. − Test Step 3: 2 × a × b = 2 × (2x) × 3 = 12x. This matches the magnitude of -12x! − Because the middle term is negative, apply the difference formula: (2x − 3)2. − Example 3: Non-Example (x2 + 6x + 16): − First term x2 -> a = x; last term 16 -> b = 4. − 2 × a × b = 2 × x × 4 = 8x != 6x! − Discriminant: D = 62 − 4(1)(16) = 36 − 64 = -28 != 0. − Conclusion: NOT a perfect square trinomial.

Authoritative Standards and References

Mastering perfect square trinomials is essential for solving quadratic equations and graphing parabolas. For further reference, explore Wolfram MathWorld Trinomial.

Common Mathematical Results & Factor Patterns

Review these standard perfect square trinomials with verified middle cross-terms and squared binomial forms:

TrinomialRoot Terms a & bMiddle Term Check (2ab)Factored Binomial Squared
x² + 6x + 9a = x, b = 32(x)(3) = 6x ✓(x + 3)²
x² − 10x + 25a = x, b = 52(x)(5) = 10x ✓(x − 5)²
4x² + 12x + 9a = 2x, b = 32(2x)(3) = 12x ✓(2x + 3)²
9x² − 24x + 16a = 3x, b = 42(3x)(4) = 24x ✓(3x − 4)²
25x² + 70x + 49a = 5x, b = 72(5x)(7) = 70x ✓(5x + 7)²

Real-World Practical Applications

In data science and statistics, variance and root-mean-square error (RMSE) calculations frequently expand or condense data deviation terms using perfect square binomial patterns ((x − μ)²).

Common Pitfalls & Mistakes to Avoid

❌ Common Mistake

Assuming any trinomial with square first and last terms is a perfect square without verifying the middle term.

✓ Correct Approach

You must verify that the middle term exactly matches ±2ab. For x² + 10x + 16, 2 × x × 4 = 8x ≠ 10x, so it is not a perfect square trinomial.

For authoritative curriculum guidelines, proofs, and academic definitions, consult Wolfram MathWorld Trinomial.

Frequently Asked Questions

Can the last term in a perfect square trinomial be negative?

No! Squaring any real number (whether positive or negative) always results in a non-negative value: (+b)2 = +b2 and (-b)2 = +b2. If the last term is negative, it cannot be a perfect square trinomial.

What is the relationship to completing the square?

Completing the square is the process of adding a constant term (b/2)2 to an expression x2 + bx to intentionally create a perfect square trinomial, allowing you to rewrite it as (x + b/2)2.

Why is the discriminant zero for perfect square trinomials?

Because a perfect square trinomial has a single repeated root (multiplicity 2). In the quadratic formula, the plus-or-minus radical term must vanish, which happens precisely when b2 − 4ac = 0.

Can our calculator check expressions with multiple variables?

Yes, expressions like 9x2 + 24xy + 16y2 are supported and factor into (3x + 4y)2.