Skip to content
FiftyCalc Free calculators for all 50 states

Perfect Square Trinomial Calculator

Test cases replayed : 3 of 3 match · Methodology · No outside source listed

Enter a, b and c of ax² + bx + c to test whether it is a perfect square and to see its factored form.

Result

Sample figures

Perfect square trinomial?—

b² − 4ac —

  • h in a(x + h)², h = b ÷ 2a—
  • c that would make it a perfect square, b² ÷ 4a—
  • (px + q)² form: p = √a (a > 0)—
  • (px + q)² form: q = ±√c, same sign as b—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Perfect Square Trinomial Calculator

a (coefficient of x², not 0): enter a number. Prefilled example: 4.

b (coefficient of x): enter a number. Prefilled example: 12.

c (constant term): enter a number. Prefilled example: 9.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. a (coefficient of x², not 0): enter a number.
  2. b (coefficient of x): enter a number.
  3. c (constant term): enter a number.
  4. Read the result: Perfect square trinomial?; the panel also shows b² − 4ac, h in a(x + h)², h = b ÷ 2a, c that would make it a perfect square, b² ÷ 4a, (px + q)² form: p = √a (a > 0) and (px + q)² form: q = ±√c, same sign as b.

How this calculator works

A perfect square trinomial is the square of a binomial: (px + q)² = p²x² + 2pqx + q². A trinomial ax² + bx + c is one exactly when its discriminant b² − 4ac is 0; it then equals a(x + b/2a)².

Completing the square: for given a and b, the constant that makes a perfect square is c = b² ÷ 4a. When a > 0, the trinomial is (√a x ± √c)², with the sign of b.

The formula

  1. D=b2−4×a×c
  2. Is={1if |D|<0.0000000010otherwise
Symbols used in the formula
SymbolMeaning
aa (coefficient of x², not 0)
bb (coefficient of x)
cc (constant term)
Db² − 4ac
IsPerfect square trinomial?

Worked example

a (coefficient of x², not 0)4
b (coefficient of x)12
c (constant term)9
b² − 4ac0
h in a(x + h)², h = b ÷ 2a1.5
c that would make it a perfect square, b² ÷ 4a9
(px + q)² form: p = √a (a > 0)2
(px + q)² form: q = ±√c, same sign as b3
  1. D=122−4×4×9=0
  2. Is=1

Perfect square trinomial? Yes: ax² + bx + c = a(x + h)²

Each step uses the unrounded value of the step before it; figures on this page are rounded for display.

Frequently asked questions

Is 4x² + 12x + 9 a perfect square trinomial?

Yes: 12² − 4 × 4 × 9 = 0, and it factors as (2x + 3)².

What c makes x² + 5x + c a perfect square?

c = 5² ÷ 4 = 6.25, giving (x + 2.5)².

Related calculators