Calculator Bar

Factoring Calculator

Factoring Calculator

Factor ax² + bx + c. Use whole numbers, including negatives and 0.

—

How to factor a quadratic: the ac method

  1. Take out a common factor if every term shares one: 3x² + 6x = 3x(x + 2).
  2. Multiply a × c, then find two numbers that multiply to a × c and add to b.
  3. Split the middle term using those two numbers.
  4. Group the terms in pairs and factor each pair.
  5. Check by multiplying the factors back out.
6x² − x − 2: a × c = −12; −4 and 3 multiply to −12 and add to −1 6x² − 4x + 3x − 2 = 2x(3x − 2) + 1(3x − 2) = (2x + 1)(3x − 2)

Special patterns

PatternFactors asExample
Difference of squaresa² − b² = (a + b)(a − b)x² − 9 = (x + 3)(x − 3)
Perfect squarea² ± 2ab + b² = (a ± b)²4x² − 12x + 9 = (2x − 3)²
Common factor of xax² + bx = x(ax + b)3x² + 6x = 3x(x + 2)

When a quadratic won't factor

Look at the discriminant, b² − 4ac. If it's a perfect square (0, 1, 4, 9, 16…), the quadratic factors with whole numbers. If it's positive but not a perfect square, the roots are irrational, so there are no whole-number factors. x² − 2 has roots ±1.414. If it's negative, there are no real roots: x² + x + 1 can't be factored over the real numbers. For the greatest common factor of plain numbers, use the GCF calculator.

Frequently asked questions

How do you factor a quadratic?

First take out any common factor. Then find two numbers that multiply to a × c and add to b, split the middle term with them, and group. For x² + 5x + 6, the numbers 2 and 3 multiply to 6 and add to 5, so it factors as (x + 2)(x + 3).

What if a quadratic doesn't factor?

If b² − 4ac isn't a perfect square, there are no whole-number factors. The quadratic still has roots (if b² − 4ac ≥ 0), which the quadratic formula gives. If b² − 4ac is negative, there are no real roots at all.

What is the difference of two squares?

A pattern where a² − b² = (a + b)(a − b). For example, x² − 9 = (x + 3)(x − 3). There's no middle term because the two cross terms cancel.

How do I check my factoring?

Multiply the factors back out. If you get the original expression, the factoring is right. The calculator shows this check in its last step.

What are the factors of a number?

The whole numbers that divide it evenly. The factors of 36 are 1, 2, 3, 4, 6, 9, 12, 18 and 36, and its prime factorization is 2² × 3².

See also

Last updated: November 16, 2026