Factoring, Expanding & Simplifying Calculator
Factor polynomials (GCF, trinomials, difference of squares, sum and difference of cubes, higher degrees), expand brackets and powers, and simplify algebraic fractions — with every step shown.
Use ^ for powers and brackets for products: (x + 2)(x − 3), 3x^2 − 12.
Try:
Factored form
(x − 1)(x + 2)(x − 3)
Step-by-step
- Expressionx3 − 2x2 − 5x + 6
- Look for rational rootsTest ± factors of constantfactors of leading coefficientIf p/q is a root, (qx − p) is a factor.
- x = 1 is a rootx3 − 2x2 − 5x + 6 = (x − 1)(x2 − x − 6)
- Factored form(x − 1)(x + 2)(x − 3)
Factoring checklist
- 1. Greatest common factor first — 6x³ + 9x² = 3x²(2x + 3).
- 2. Count the terms. Two terms: difference of squares or sum/difference of cubes. Three terms: trinomial (or perfect square). Four or more: grouping or the rational root theorem.
- 3. Check each factor — keep going until nothing factors further, then multiply back to verify.
- x² + 1 and x² − 2 don’t factor with whole numbers; a negative or non-square discriminant (b² − 4ac) tells you that quickly.
Factoring & expanding formulas
Common factorab + ac = a(b + c)
Difference of squaresa2 − b2 = (a − b)(a + b)
Perfect squarea2 ± 2ab + b2 = (a ± b)2
Sum / difference of cubesa3 ± b3 = (a ± b)(a2 ∓ ab + b2)
Simple trinomialx2 + (p + q)x + pq = (x + p)(x + q)
FOIL(a + b)(c + d) = ac + ad + bc + bd
Binomial theorem(a + b)n = Σ C(n, k) an−kbk
Worked examples
Factor x² + 7x + 12.
- Find two numbers that multiply to 12 and add to 7: 3 and 4
Answer: (x + 3)(x + 4)
Factor 6x² + 7x − 3 (AC method).
- a·c = −18; numbers with product −18 and sum 7: 9 and −2
- Split: 6x2 + 9x − 2x − 3
- Group: 3x(2x + 3) − 1(2x + 3)
Answer: (3x − 1)(2x + 3)
Factor 8x³ − 27.
- (2x)3 − 33 → difference of cubes with a = 2x, b = 3
Answer: (2x − 3)(4x² + 6x + 9)
Expand (2x − 3)².
- (2x)2 − 2(2x)(3) + 32
Answer: 4x² − 12x + 9
Simplify (x² − 9)/(x² − x − 6).
- (x − 3)(x + 3)(x − 3)(x + 2)
- Cancel (x − 3)
Answer: (x + 3)/(x + 2), for x ≠ 3, −2
Tips & common mistakes
- Always take out the GCF first — it makes everything after it easier.
- a² + b² does not factor over the real numbers; (a + b)² ≠ a² + b².
- Check a factorization by expanding it back out.