Factoring Calculator

Reviewed by CalcMulti Editorial Team·Last updated: ·Algebra Hub

Factoring a polynomial means expressing it as a product of simpler factors. For a trinomial ax² + bx + c, this means finding two binomials (px + q)(rx + s) such that their product equals the original expression.

This calculator factors trinomials step by step: first extracts the GCF, then checks for special patterns (perfect square trinomial, difference of squares), and finally applies the AC method for general trinomials.

Choosing the right factoring method saves time. Always start by factoring out the Greatest Common Factor (GCF) — for example, 6x² + 12x = 6x(x + 2). Next, count terms: two terms suggest difference of squares (a² − b²) or sum/difference of cubes (a³ ± b³). Three terms (trinomials) use the AC method when a ≠ 1 or simple trial-and-error when a = 1. Four or more terms usually require grouping.

Worked example — factoring 2x² + 7x + 6 using the AC method: Multiply a × c = 2 × 6 = 12. Find two numbers that multiply to 12 and add to 7: those are 3 and 4. Rewrite the middle term: 2x² + 3x + 4x + 6. Group: x(2x + 3) + 2(2x + 3) = (x + 2)(2x + 3). Verify by expanding: (x+2)(2x+3) = 2x² + 3x + 4x + 6 = 2x² + 7x + 6 ✓

Factoring is directly connected to solving equations (Factor Theorem), graphing parabolas (x-intercepts), and simplifying rational expressions. Mastering the recognition of special forms — perfect squares, difference of squares, sum of cubes — dramatically speeds up algebraic work in calculus and beyond.

Formula

ax² + bx + c = a(x − r₁)(x − r₂)

r₁, r₂
roots of the equation (where the polynomial equals zero)
a
leading coefficient
b
middle coefficient
c
constant term

Factor ax² + bx + c

Factoring Patterns Reference

PatternFormulaExampleCondition
Difference of Squaresa²−b² = (a+b)(a−b)x²−9 = (x+3)(x−3)Both terms perfect squares
Perfect Square (+)a²+2ab+b² = (a+b)²x²+6x+9 = (x+3)²Middle = 2√(first·last)
Perfect Square (−)a²−2ab+b² = (a−b)²x²−4x+4 = (x−2)²Discriminant = 0
Simple trinomialx²+bx+c = (x+p)(x+q)x²−5x+6 = (x−2)(x−3)Find p+q=b, pq=c
AC methodax²+bx+c6x²+11x+4 = (3x+4)(2x+1)Find factors of ac summing to b
GCF firstfactor out GCF6x²+12x = 6x(x+2)Always check GCF first

Disclaimer

This calculator is for educational purposes only and does not constitute professional advice. Results are based on standard mathematical formulas. Always verify critical calculations with a qualified professional before making important decisions.

Frequently Asked Questions