Skip to content
Math & Scientific

Factor Completely Calculator

Factor Completely Calculator

Factor a quadratic ax² + bx + c over the integers. Enter whole numbers for a, b, and c (a cannot be 0).

Factoring is multiplication in reverse. You know that (x − 2)(x − 3) expands to x² − 5x + 6; factoring starts from x² − 5x + 6 and recovers the two binomials. It is one of the most-used skills in algebra: factored form reveals the roots of an equation, simplifies fractions, and exposes the structure hiding inside a quadratic. The Factor Completely Calculator factors any quadratic ax² + bx + c over the integers. Enter whole numbers for a, b, and c — for example 2, 7, 3 — and it returns the fully factored form (2x + 1)(x + 3), showing the greatest common factor, the grouping steps, and a check that the factors multiply back correctly. When no integer factorization exists, such as x² + x + 1, it tells you plainly that the quadratic is prime over the integers.

What This Calculator Does

This calculator factors quadratics with integer coefficients into binomials with integer coefficients, pulling out any common factor first so the result is complete. Enter a = 2, b = 7, c = 3 and you get (2x + 1)(x + 3). Enter a = 2, b = 4, c = 2 and the common factor 2 comes out first, giving 2(x + 1)² instead of the half-finished (2x + 2)(x + 1). Enter a = 1, b = 0, c = −9 and it spots the difference of squares: (x + 3)(x − 3). The search is exhaustive: it tries every possible pair of integer factors of a and c, so when it reports a factorization, it is guaranteed correct, and when it reports “prime over the integers”, no integer factorization exists. Special shapes fall out naturally — a zero constant term gives a factor of x (2x² + 4x becomes 2x(x + 2)), and a negative leading coefficient is handled by factoring out −1 first. Every answer includes the working: the common factor extracted, the a × c number pair, the split middle term, the grouping step, and an expansion check confirming the factors multiply back to your original quadratic.

How to Use the Factor Completely Calculator

Enter whole numbers for a, b, and c in the three boxes. The a box holds the x² coefficient and cannot be 0 — with a = 0 the expression is linear, not quadratic, and the calculator will say so. Negative numbers are fine: a = 1, b = −5, c = 6 factors x² − 5x + 6. Coefficients can be as large as ±1,000,000. Press Calculate. The large result shows the factored form, such as (2x + 1)(x + 3), and the rows underneath walk through every step: the common factor, the a × c pair, the split middle term, the grouping, and the check. Press Reset to clear the boxes and factor another quadratic. If a box is empty, holds a decimal, or a is 0, you get a clear error message instead of a wrong answer.

The Factoring Method Behind the Calculator

The calculator uses the ac-method, the same technique taught in algebra classes. First it removes the greatest common factor of a, b, and c, because factoring is only “complete” when no common factor remains. Then it multiplies a × c and looks for two integers whose product is a × c and whose sum is b. For 2x² + 7x + 3, a × c = 6, and the numbers 6 and 1 have product 6 and sum 7. Those two numbers split the middle term: 2x² + 6x + x + 3. Now the expression is grouped in pairs — 2x(x + 3) + 1(x + 3) — and each pair shares the binomial (x + 3), which factors out to give (2x + 1)(x + 3). The reason this works is the expansion pattern in reverse: (px + q)(rx + s) always expands to prx² + (ps + qr)x + qs, so matching pr = a, qs = c, and ps + qr = b is exactly what the factor-pair search does. There is also a quick theoretical test: for integer coefficients, a quadratic factors over the integers exactly when its discriminant b² − 4ac is a perfect square (or the special zero-constant case). The calculator shows the discriminant whenever the quadratic turns out to be prime, so you can see why — for x² + x + 1, the discriminant is 1 − 4 = −3, which is negative, so there are not even real roots to build factors from.

Worked Examples With Full Arithmetic

Example one: x² − 5x + 6 (a = 1, b = −5, c = 6). The common factor is 1. Compute a × c = 6 and find two numbers with product 6 and sum −5: −2 and −3, since (−2) × (−3) = 6 and (−2) + (−3) = −5. Split the middle term: x² − 2x − 3x + 6. Group: x(x − 2) − 3(x − 2) = (x − 2)(x − 3). Check by expanding: (x − 2)(x − 3) = x² − 3x − 2x + 6 = x² − 5x + 6. The calculator shows (x − 2)(x − 3). Example two: 2x² + 7x + 3 (a = 2, b = 7, c = 3). The common factor is 1. Compute a × c = 6; the numbers 6 and 1 have product 6 and sum 7. Split: 2x² + 6x + x + 3. Group: 2x(x + 3) + 1(x + 3) = (2x + 1)(x + 3). Check: (2x + 1)(x + 3) = 2x² + 6x + x + 3 = 2x² + 7x + 3. The calculator shows (2x + 1)(x + 3). Example three: x² + x + 1 (a = 1, b = 1, c = 1). The discriminant is b² − 4ac = 1 − 4 = −3, which is negative — the quadratic has no real roots at all, so certainly no integer factors. The calculator reports “Prime over the integers” and explains the discriminant. Example four: 2x² + 4x + 2 (a = 2, b = 4, c = 2). The common factor is 2, leaving x² + 2x + 1. Now a × c = 1, and the numbers 1 and 1 have product 1 and sum 2. Split: x² + x + x + 1. Group: x(x + 1) + 1(x + 1) = (x + 1)(x + 1), written as (x + 1)². With the common factor: 2(x + 1)². Check: 2(x + 1)² = 2(x² + 2x + 1) = 2x² + 4x + 2. The calculator shows 2(x + 1)². Example five: x² − 9 (a = 1, b = 0, c = −9). Here a × c = −9, and the numbers 3 and −3 have product −9 and sum 0 (matching b = 0). Split: x² + 3x − 3x − 9. Group: x(x + 3) − 3(x + 3) = (x + 3)(x − 3). Check: (x + 3)(x − 3) = x² − 3x + 3x − 9 = x² − 9. The calculator shows (x + 3)(x − 3). Example six: x² + 3x + 1 (a = 1, b = 3, c = 1). The discriminant is 9 − 4 = 5, which is positive but not a perfect square — the roots are irrational, so no integer binomials exist. The calculator reports “Prime over the integers”.

How to Read Your Result

The large value is the completely factored form: (2x + 1)(x + 3), 2(x + 1)², or the verdict “Prime over the integers” when no factorization exists. If a common factor was pulled out, it appears in front — 2(x + 1)², not (2x + 2)(x + 1) — and a negative leading coefficient appears as a leading minus sign. The breakdown rows reconstruct the whole solution. “Common factor” shows the GCF extraction. “a × c” names the two numbers whose product is a × c and whose sum is b. “Split the middle term” shows the four-term expansion, “Group and factor” shows the paired grouping that produces the binomials, and “Check” expands the answer back to your original quadratic with a tick mark. For prime quadratics you get the discriminant and the reason instead.

Common Mistakes to Avoid

The biggest mistake is forgetting the common factor and stopping early. Factoring 2x² + 4x + 2 as (2x + 2)(x + 1) is not wrong, but it is not complete — the first binomial still hides a factor of 2. Always pull out the GCF first; the calculator does this automatically and shows it in the breakdown. Sign errors are the next trap, especially when b or c is negative. In x² − 5x + 6 the needed pair is −2 and −3, not 2 and 3 — the pair must add to −5, not 5. Writing the split term carefully (x² − 2x − 3x + 6) before grouping keeps the signs honest. A subtler mistake is assuming every quadratic factors. Plenty do not: x² + x + 1 and x² + 3x + 1 are prime over the integers, and no amount of searching will find binomials for them. If the discriminant is negative or not a perfect square, stop looking — the calculator’s prime verdict is the answer, not a failure. Finally, remember that a must be non-zero. With a = 0 you have a line, not a parabola, and factoring techniques for quadratics do not apply. The calculator rejects a = 0 with an explanation rather than producing nonsense.

Frequently Asked Questions

1. What does “factor completely” mean?

It means breaking the quadratic into factors that cannot be broken down further over the integers — including pulling out any common numerical factor first. (2x + 2)(x + 1) is factored but not completely; 2(x + 1)² is complete.

2. What should I enter for a, b, and c?

The whole-number coefficients of ax² + bx + c. For 2x² + 7x + 3, enter a = 2, b = 7, c = 3. For x² − 5x + 6, enter a = 1, b = −5, c = 6. Decimals are rejected because the method needs integers.

3. Why can’t a be 0?

Because then the x² term vanishes and you have bx + c, a linear expression. Linear expressions factor differently (just pull out the GCF), so the quadratic machinery does not apply. The calculator tells you this instead of guessing.

4. What does “prime over the integers” mean?

It means no two binomials with whole-number coefficients multiply to your quadratic — the integer equivalent of a prime number. x² + x + 1 is the classic example. It is a definitive answer, not an error.

5. How does the calculator find the factors?

It tries every pair of integer factors of a and every pair of integer factors of c, checking whether the cross-sum ps + qr equals b. Because it tries all possibilities, a reported factorization is guaranteed right, and a “prime” verdict is guaranteed final.

6. What is the ac-method shown in the breakdown?

Multiply a × c, find two numbers with that product and sum b, use them to split the middle term into two, then factor by grouping. The breakdown shows each of these steps for your specific quadratic so you can follow the standard classroom method.

7. Why does the calculator pull out a common factor first?

Because “completely” requires it. In 2x² + 4x + 2, every term is even, so 2 comes out before the binomials are found, giving 2(x + 1)². Skipping this step leaves factors that can still be broken down.

8. What is the discriminant row telling me?

The discriminant b² − 4ac decides factorability: for integer coefficients, the quadratic factors over the integers exactly when it is a non-negative perfect square. A negative value (like −3 for x² + x + 1) means no real roots; a non-square positive value (like 5) means irrational roots.

9. Can it factor x² − 9?

Yes — that is a difference of squares, and the general search finds it: (x + 3)(x − 3). Any quadratic with b = 0 and c a negative perfect square factors this way.

10. What about perfect square trinomials like x² + 6x + 9?

They factor into a repeated binomial: (x + 3)². The calculator detects the repeated factor and displays it with the ² exponent. With a leading coefficient, 4x² + 12x + 9 becomes (2x + 3)².

11. Why do I get a minus sign in front, like −(x + 3)(2x + 1)?

That happens when the leading coefficient a is negative. Factoring out −1 first keeps both binomials tidy with positive leading terms. Expanding −(x + 3)(2x + 1) gives back the original negative-leading quadratic.

12. How do I check the answer myself?

Multiply the binomials back out with FOIL: (2x + 1)(x + 3) = 2x² + 6x + x + 3 = 2x² + 7x + 3. The calculator’s Check row does exactly this expansion for every answer.

13. What is the largest coefficient it accepts?

Whole numbers up to ±1,000,000. Beyond that the exhaustive factor-pair search would slow down, so the calculator asks for smaller input instead of hanging.

14. Does it factor expressions with a zero constant term?

Yes. If c = 0, x is a common factor: 2x² + 4x becomes 2x(x + 2). The calculator handles this directly rather than running the pair search on a zero constant.

15. The factored form looks different from my textbook’s. Is it wrong?

Probably just ordered differently — (x − 3)(x − 2) and (x − 2)(x − 3) are the same factorization. As long as the binomials multiply back to your quadratic (check the Check row), any order is correct.

Final Thoughts

Factoring a quadratic by hand is a search, and searches are exactly what calculators are good at. The Factor Completely Calculator runs the full ac-method search over every integer factor pair, pulls out the common factor first, handles the special shapes — difference of squares, perfect square trinomials, zero constant terms — and either hands you the complete factorization with the working shown or tells you honestly that the quadratic is prime. Either way, the Check row lets you verify the answer in one glance, which is the real point: not just an answer, but an answer you can trust.