How to Factor a Quadratic Expression
Factoring rewrites a quadratic expression as a product of simpler expressions. It is the reverse of expanding brackets, and it is useful for solving equations and simplifying fractions. The Factoring Calculator tries several strategies in order.
Not every quadratic factors over the integers. When the discriminant is not a perfect square, the expression does not split neatly into integer factors — and the tool tells you so rather than forcing an approximate answer.
Open the matching Factoring Calculator
a² − b² = (a + b)(a − b) • x² + bx + c = (x + p)(x + q) where p + q = b and p × q = c
Step 1: pull out the greatest common factor
First, look for a greatest common factor (GCF) shared by every term and pull it outside the brackets. In 3x² + 6x, both terms share 3x, so the expression becomes 3x(x + 2). Removing the GCF first often makes the remaining factor easier to handle.
Always check for a GCF before trying anything else — it simplifies the rest of the work and is easy to miss.
Step 2: recognise special forms
A difference of squares has the form a² − b² and factors as (a + b)(a − b), so x² − 9 = (x + 3)(x − 3). A perfect-square trinomial such as x² + 6x + 9 factors as (x + 3)².
These patterns are worth memorising because they appear often and factor instantly once spotted.
Step 3: trinomial factoring and the ac method
For a general trinomial x² + bx + c, find two numbers that multiply to c and add to b. For x² + 7x + 12, the numbers 3 and 4 multiply to 12 and add to 7, so the factors are (x + 3)(x + 4).
When the leading coefficient a is not 1, the "ac method" splits the middle term using two numbers that multiply to a×c and add to b, then factors by grouping. This works whenever the discriminant is a perfect square.
Checking the pair before you write the brackets
For x² + bx + c, the pair must do two jobs at once: multiply to c and add to b. Writing down every factor pair of c, including the negative pairs, takes a few seconds and prevents the usual miss. For c = −12 the candidates include (3, −4), (−3, 4), (2, −6) and so on. Only one pair will also add to b.
When a is not 1, those two jobs change. The pair must multiply to a × c and add to b, and you then split the middle term. Skipping that change and hunting for numbers that multiply to c alone is why ax² + bx + c factorisations fail even when the arithmetic is tidy.
Worked example
Factor x² + 7x + 12
- 1No common factor across all terms, so move to trinomial factoring.
- 2Find two numbers that multiply to 12 and add to 7. The pairs of factors of 12 are (1,12), (2,6), (3,4). Only 3 and 4 add to 7.
- 3Write the factors: (x + 3)(x + 4).
- 4Verify by expanding: (x + 3)(x + 4) = x² + 4x + 3x + 12 = x² + 7x + 12. ✓
Answer: (x + 3)(x + 4)
Another worked example
Factor 6x² + 5x − 6
- 1No common factor other than 1. a × c = 6 × (−6) = −36. Find two integers that multiply to −36 and add to 5: 9 and −4.
- 2Split the middle term: 6x² + 9x − 4x − 6.
- 3Group: (6x² + 9x) + (−4x − 6) = 3x(2x + 3) − 2(2x + 3).
- 4The shared bracket factors out: (3x − 2)(2x + 3).
- 5Expand to check: 3x · 2x = 6x², 3x · 3 = 9x, −2 · 2x = −4x, −2 · 3 = −6. Combined, 6x² + 5x − 6.
Answer: (3x − 2)(2x + 3)
How to read the result
A correct factorisation expands back to the original expression with nothing left over. If the expanded form has a different middle term, the pair of numbers added correctly but was attached to the wrong signs, or the leading coefficient was not carried through.
“Does not factor over the integers” is a finished answer. It means no pair of integers does the job. The roots may still exist; they are just not nice integers. That is when the quadratic formula earns its place.
Limits of this method
Integer factoring cannot produce factors such as (x − √2). Forcing a decimal factor and calling it “factored” hides the exact root. If the discriminant is not a perfect square, stop and switch tools.
A greatest common factor that includes a negative sign can be pulled out in more than one way. −2(x − 3) and 2(−x + 3) are both legitimate. Pick one, and check it by expanding rather than by whether it “looks standard”.
Common mistakes
- Skipping the GCF — always check for a common factor first; it simplifies everything that follows.
- Picking numbers that multiply correctly but add incorrectly — for x² + 7x + 12 you need a pair that both multiplies to 12 and adds to 7.
- Forgetting the sign — for x² − 5x + 6 the pair is (−2, −3), giving (x − 2)(x − 3), not (x + 2)(x + 3).
- Assuming every quadratic factors over the integers — if the discriminant is not a perfect square, use the Quadratic Equation Solver for the roots instead.
Frequently asked questions
What if my quadratic does not factor over the integers?
Not every quadratic has integer factors. If the discriminant is not a perfect square, the Factoring Calculator tells you so. Use the Quadratic Equation Solver to find the (possibly irrational or complex) roots instead.
What is the difference of squares?
An expression of the form a² − b² that factors as (a + b)(a − b). For example, x² − 25 = (x + 5)(x − 5).
How do I verify a factored result?
Expand the factors back out. You should recover the original expression exactly. The steps panel shows which strategy was used and the numbers that made it work.
Why can two different-looking factorisations both be right?
They differ by how a common factor, especially a negative sign, was placed. Expand both. If each returns the original expression, they are equivalent.
The discriminant is 8. Should I keep hunting for integer factors?
No. 8 is not a perfect square, so there is no integer pair. Use the quadratic formula; the roots involve √2.
Try it yourself
Put the method into practice with the matching calculator.
Open the Factoring Calculator