How to Factor Any Quadratic Equation: Step by Step
Solver AI TeamPublished Updated 9 min read
Factoring quadratics is a core algebra skill. Learn five reliable methods — from GCF extraction to the AC method — so you can factor any quadratic you encounter.
Frequently asked questions
How do you factor a quadratic when a is greater than 1?
Use the AC method. Multiply a and c, find two numbers with that product that add to b, split the middle term, then factor by grouping. For 2x² + 7x + 3, ac = 6 and the numbers are 1 and 6, giving (2x + 1)(x + 3).
Why should you factor out the GCF first?
Taking out the greatest common factor makes the remaining numbers smaller and easier to factor. For 3x² + 12x + 12, pulling out 3 gives 3(x² + 4x + 4), which is 3(x + 2)². Skipping this step often makes the AC method much harder.
How do you factor a difference of squares?
Use a² − b² = (a − b)(a + b). For x² − 49, a = x and b = 7, so it factors to (x − 7)(x + 7). A sum of squares like x² + 49 does not factor over the real numbers.
How do you recognize a perfect square trinomial?
The first and last terms are perfect squares, and the middle term is twice the product of their roots. For x² + 10x + 25, the roots are x and 5, and 2 · x · 5 = 10x, so it factors to (x + 5)².
What if a quadratic will not factor?
Some quadratics have no integer factors. Check the discriminant b² − 4ac: if it is a perfect square, the quadratic factors over the integers. If not, use the quadratic formula or complete the square instead. Many exam problems are built to factor, so a non-factorable result may signal an arithmetic slip.
Before attempting any other factoring technique, always check whether every term in the quadratic shares a greatest common factor (GCF). If they do, factor it out first.
Example 1 — Pulling out a numeric GCF
Consider 6x² + 18x + 12. Every coefficient is divisible by 6, so pull it out:
Answer6(x² + 3x + 2)
Now you have a much simpler trinomial to factor inside the parentheses.
This step is critical because skipping it makes the remaining factoring significantly harder — or in some cases, impossible to see.
Example 2 — GCF makes the trinomial easy
For example, 4x² + 8x − 12 factors as 4(x² + 2x − 3) = 4(x + 3)(x − 1).
Without extracting the 4 first, you would need to wrestle with larger numbers.
Make extracting the GCF your automatic first step for every factoring problem. This single habit will simplify your work dramatically.
Factoring Simple Trinomials (a = 1)
The Rule — Trinomials with leading coefficient 1
When your quadratic is in the form x² + bx + c — where the leading coefficient is 1 — factoring is straightforward. You need to find two numbers that multiply to c and add to b.
Example 1 — Both b and c positive
For example, factor x² + 7x + 12. You need two numbers that multiply to 12 and add to 7. Those numbers are 3 and 4, so the factored form is:
Answer(x + 3)(x + 4)
Example 2 — c negative
When c is negative, one of the two numbers will be negative. Factor x² + 2x − 15: you need two numbers that multiply to −15 and add to 2. Those are 5 and −3, giving:
Answer(x + 5)(x − 3)
Example 3 — Both b and c negative
When both b and c are negative, like x² − 5x − 6, you need numbers that multiply to −6 and add to −5: those are −6 and 1, giving:
Answer(x − 6)(x + 1)
The Takeaway
Practice this method with many examples until identifying the two numbers becomes almost automatic. Solver AI can verify your factoring instantly — just type in the expression to check your work.
The AC Method for Trinomials (a > 1)
When the leading coefficient is not 1, the simple method above does not work directly. Instead, use the AC method (also called factoring by grouping).
Multiply a × c
For ax² + bx + c, multiply a times c to get the product AC.
Find two numbers
Then find two numbers that multiply to AC and add to b.
Rewrite and group
Rewrite the middle term using these two numbers, and factor by grouping.
Example 1 — Factor 2x² + 7x + 3
Let's factor 2x² + 7x + 3. Here, AC = 2 × 3 = 6. We need two numbers that multiply to 6 and add to 7: those are 6 and 1.
The AC method works for every factorable trinomial, making it the most versatile technique in your toolkit.
Difference of Squares
The Rule — Difference of Squares
The difference of squares pattern is one of the easiest to recognize and factor. It applies whenever you have an expression in the form a² − b², which factors as (a + b)(a − b). Note the key requirements: it must be a subtraction (not addition) of two perfect squares.
Example 1 — Straightforward differences of squares
For example, x² − 25 = (x + 5)(x − 5) because x² is the square of x and 25 is the square of 5.
A common pitfall: x² + 25 is a sum of squares, which cannot be factored over the real numbers. Students sometimes incorrectly write (x + 5)(x − 5) for this — but that produces x² − 25, not x² + 25.
Always check if any factor can be factored further.
The Takeaway
Recognizing this pattern instantly will save you valuable time on exams.
Perfect Square Trinomials
The Rule — Perfect Square Trinomials
A perfect square trinomial results from squaring a binomial and follows the patterns a² + 2ab + b² = (a + b)² and a² − 2ab + b² = (a − b)². The key signature is that the first and last terms are perfect squares, and the middle term is exactly twice the product of their square roots.
Example 1 — Factor x² + 10x + 25
For instance, x² + 10x + 25: the first term x² is a perfect square, the last term 25 = 5² is a perfect square, and the middle term 10x = 2(x)(5). So this factors as:
Answer(x + 5)²
Example 2 — Factor 9x² − 12x + 4
Another example: 9x² − 12x + 4. Here 9x² = (3x)², 4 = 2², and 12x = 2(3x)(2). So it factors as:
Answer(3x − 2)²
The Key Insight
Recognizing perfect square trinomials is especially useful when completing the square to solve quadratic equations or when simplifying expressions in calculus. To verify, always expand your answer: (3x − 2)² = 9x² − 12x + 4.
The Takeaway
If you are ever unsure whether a trinomial is a perfect square, use Solver AI to check — it will show you the factored form and confirm the pattern.
A Decision Tree for Factoring
With five factoring techniques available, knowing which to use can feel overwhelming. Follow this decision tree for any quadratic expression.
Step 1 — Extract the GCF
Extract the GCF from all terms. Always do this first.
Step 2 — Count the terms (binomial)
Count the terms. If you have a binomial (two terms), check for the difference of squares pattern (a² − b²).
Step 3 — Check for perfect square trinomial
If you have a trinomial (three terms), check whether the first and last terms are perfect squares with the middle term equal to 2ab — if so, use the perfect square trinomial pattern.
Step 4 — Simple trinomial (a = 1)
If it is a trinomial with leading coefficient 1, find two numbers that multiply to c and add to b.
Step 5 — AC method (a > 1)
If the leading coefficient is greater than 1, use the AC method (factor by grouping).
Step 6 — Factor again or call it prime
After factoring, check whether any resulting factor can be factored further. If no technique applies, the expression may be prime (unfactorable over the integers).
The Key Insight
Always verify your answer by expanding the factors back out — the product should equal the original expression.
The Takeaway
With practice, this decision process becomes instinctive, and you will factor most quadratics in under a minute.