Factoring Calculator
This factoring calculator factors quadratic expressions like ax² + bx + c step by step, or lists the factors and prime factorization of a whole number. Choose a tab, enter the numbers and press Calculate.
Factoring Calculator
How to factor a quadratic: the ac method
- Take out a common factor if every term shares one: 3x² + 6x = 3x(x + 2).
- Multiply a × c, then find two numbers that multiply to a × c and add to b.
- Split the middle term using those two numbers.
- Group the terms in pairs and factor each pair.
- Check by multiplying the factors back out.
Special patterns
| Pattern | Factors as | Example |
|---|---|---|
| Difference of squares | a² − b² = (a + b)(a − b) | x² − 9 = (x + 3)(x − 3) |
| Perfect square | a² ± 2ab + b² = (a ± b)² | 4x² − 12x + 9 = (2x − 3)² |
| Common factor of x | ax² + 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
- GCF Calculator: Greatest common factor with factor trees and Euclid's method.
- LCM Calculator: Least common multiple of two or more numbers, with steps.
- Slope Calculator: Slope from two points or rise and run, with y = mx + b.
- Proportion Calculator: Solve A/B = C/D for the missing number, with steps.
Last updated: November 16, 2026