How to use the factoring calculator
- Write your quadratic in the order ax² + bx + c and type the three whole-number coefficients. A missing term has coefficient 0.
- Press Factor. The factored form appears at the top.
- Follow the numbered steps, then look at the check, where the factors are multiplied back out to give the original expression.
What does factoring mean?
Factoring is multiplying in reverse. Expanding turns (x − 2)(x − 3) into x² − 5x + 6; factoring turns x² − 5x + 6 back into (x − 2)(x − 3). Factored form is useful because it shows the zeros straight away: a product is 0 only when one of its factors is 0, so here x = 2 or x = 3.
Step 1: always take out the GCF first
Look for the greatest common factor of all the coefficients before anything else. In 2x² + 4x − 6 every coefficient is divisible by 2, so write 2(x² + 2x − 3) and carry on with the simpler trinomial inside. If the leading coefficient is negative, take out the minus sign as well. The GCF calculator finds the greatest common factor of any list of numbers.
Step 2: the AC method
For a trinomial ax² + bx + c with no common factor:
- Multiply a · c.
- Find two whole numbers that multiply to a · c and add to b. Listing the factor pairs of a · c in order makes the search systematic.
- Use those two numbers to split the middle term into two terms.
- Factor by grouping: take the GCF out of the first two terms and out of the last two terms. The same bracket appears twice — factor it out.
Example: factor 6x² + 11x − 10.
a · c = 6 · (−10) = −60. We need two numbers that multiply to −60 and add to 11: they are −4 and 15.
Split the middle term: 6x² − 4x + 15x − 10.
Group: (6x² − 4x) + (15x − 10) = 2x(3x − 2) + 5(3x − 2).
Factor out the bracket: (2x + 5)(3x − 2).
Check: (2x + 5)(3x − 2) = 6x² − 4x + 15x − 10 = 6x² + 11x − 10 ✓
When a = 1 the method is shorter: for x² + bx + c, find two numbers that multiply to c and add to b and put them straight into the brackets. For x² − 5x + 6 the numbers are −2 and −3, giving (x − 2)(x − 3).
Sign shortcuts for the pair search
- If a · c is positive, both numbers have the same sign as b.
- If a · c is negative, the numbers have opposite signs, and the larger one takes the sign of b.
Special patterns
| Pattern | Rule | Example |
|---|---|---|
| Difference of squares | a² − b² = (a − b)(a + b) | 4x² − 9 = (2x − 3)(2x + 3) |
| Perfect square trinomial | a² ± 2ab + b² = (a ± b)² | x² + 6x + 9 = (x + 3)² |
| No constant term | ax² + bx = x(ax + b) | 3x² + 12x = 3x(x + 4) |
A sum of squares such as x² + 9 does not factor over the real numbers.
When a quadratic is prime
If no factor pair of a · c adds to b, the trinomial cannot be factored using whole numbers — it is called prime or irreducible over the integers. Another test is the discriminant b² − 4ac: the trinomial factors over the integers exactly when the discriminant is a perfect square. A prime quadratic can still have roots; they are just irrational or complex. Use the quadratic equation solver to find them with the quadratic formula.
Always check by expanding
Multiply your factors back out with FOIL (First, Outer, Inner, Last). If you get the original expression, the factoring is right. Finding factor pairs of large numbers is easier if you first break them into primes with the prime factorization calculator.
Frequently asked questions
How do you factor a quadratic trinomial?
Take out any common factor first. Then find two numbers that multiply to a·c and add to b, split the middle term with them and factor by grouping. For x² − 5x + 6 the numbers are −2 and −3, giving (x − 2)(x − 3).
What is the AC method of factoring?
For ax² + bx + c, multiply a and c, find a pair of factors of that product whose sum is b, rewrite bx as two terms using the pair, and factor by grouping. It works for any factorable trinomial, including those with a leading coefficient other than 1.
How do I know if a quadratic cannot be factored?
If no factor pair of a·c adds up to b, the quadratic is prime over the integers. Equivalently, the discriminant b² − 4ac is not a perfect square.
What is a difference of squares?
An expression of the form a² − b², which always factors as (a − b)(a + b). For example 4x² − 9 = (2x − 3)(2x + 3).
What is a perfect square trinomial?
A trinomial of the form a² + 2ab + b² or a² − 2ab + b², which factors as (a + b)² or (a − b)². For example x² + 6x + 9 = (x + 3)².
Why should I factor out the GCF first?
It makes the remaining numbers smaller and the pair search easier, and the answer is not fully factored until the common factor has been taken out. For example 2x² + 4x − 6 = 2(x + 3)(x − 1).