To factor the greatest common factor out of a polynomial, take three passes: find the largest number that divides every coefficient, take the lowest power of each variable that appears in every term, then divide each term by that combined factor and write the result as GCF × (remaining polynomial). The whole process works the same for a binomial like 12x³ + 18x² and a trinomial like 12x³ + 18x² − 30x. Exponents trip up more students than coefficients do, so the variable rule gets its own section below.
The method below follows ordinary factoring procedure in any standard algebra sequence, from an introductory polynomial unit through intermediate algebra. Everything here is stable mathematics — no prices, editions, or dates to worry about — so you can check any step with a calculator and a multiplication.
Split Coefficients and Variables Before You Factor Anything
Factoring the GCF means reversing the distributive property. When you multiply 6x²(2x + 3), you get 12x³ + 18x², so factoring that expression runs the multiplication backward. The GCF you pull out has two parts: a numeric part from the coefficients and a variable part from the powers.
Keep the parts separate in your head before writing anything. Coefficients produce integers; variables produce powers. Mixing them early causes errors because 12 and x² obey different rules — 12 divides like a number, x² copies like a factor.
The standard procedure, described in introductory algebra texts, is to find the GCF of all terms of the polynomial, including both coefficients and variables. Most mistakes come from skipping the variable pass entirely because the coefficient pass feels finished.
One boundary matters from the start: if the polynomial's leading coefficient is negative, pull the negative sign out with the GCF so the first term inside the parentheses is positive. That convention shows up throughout high-school algebra and makes later factoring cleaner.
Five Ordered Steps to Factor a Greatest Common Factor Out of a Polynomial
Follow this order on every problem. Steps 1 and 2 are independent checks that can run in either order, but dividing only after both factors are combined avoids partial factoring.
1: Count the terms. If the polynomial has one term, there is nothing to factor out — a GCF is a shared factor, and a single term shares with nothing. 2: Find the numeric GCF. List the divisors of each coefficient's absolute value, or take prime factorizations, and pick the largest number common to every term. For 12, 18, and 30, the common divisors are 1, 2, 3, and 6, so the numeric GCF is 6. 3: Find the variable GCF. Write each variable's lowest exponent across all terms. If a variable appears in every term, copy it with that lowest exponent. If any term lacks the variable, that variable drops out of the GCF. 4: Combine and pull the sign. Multiply the numeric and variable parts. If the leading coefficient was negative, attach a minus sign to the GCF. 5: Divide each term and rewrite as a product. Divide coefficients by the numeric factor and subtract exponents for variables, then write GCF × (result). Check by multiplying back.
Failure handling follows the check: if multiplying back doesn't reproduce the original polynomial, the division step went wrong. Recheck exponents first, since subtracting is where sign slips and reversed powers appear.
Worked Example One: 12x³ + 18x² in Four Lines
Keep the passes separate. For 12x³ + 18x², the numbers give 6 and the variables give x², because x appears in both terms and its smaller exponent is 2. The combined GCF is 6x², and dividing each term by it produces 2x + 3.
The full problem then reads 12x³ + 18x² = 6x²(2x + 3). That is four lines of work: find the numeric GCF, find the variable GCF, write the combined factor, divide.
A common incomplete answer is 3x²(4x + 6). It multiplies back correctly, but the 4x + 6 still shares a factor of 2, so the GCF was not fully extracted. Full factoring requires the remaining polynomial to share no common factor other than 1.
Checking by distribution should give back 12x³ + 18x² exactly; run it every time. The check costs about ten seconds and catches nearly all division errors.
Worked Example Two: Factoring Out 6x From 12x³ + 18x² − 30x
Polynomials with three terms add one wrinkle: the variable's lowest power across all terms may be 1. In 12x³ + 18x² − 30x, the coefficient pass gives 6 as before, but the exponents on x are 3, 2, and 1, so the variable GCF is x¹ = x.
The combined GCF is 6x. Dividing term by term gives 2x² + 3x − 5, so the factored form is 12x³ + 18x² − 30x = 6x(2x² + 3x − 5).
Try to factor 2x² + 3x − 5 further and nothing comes out — 2, 3, and 5 share no common divisor beyond 1, and x doesn't appear in the constant term −5. The factoring is complete at this line.
This example shows why the variable pass examines every term. If you reflexively copy the smallest exponent from the first two terms, you get x² instead of x, and the division leaves a fraction in the last term.
Choosing Between 6x and 6x²: A Comparison That Exposes the Trap
| Original polynomial | Candidate factor | Remaining polynomial | Fully factored? |
|---|---|---|---|
| 12x³ + 18x² | 6x | 2x² + 3x | No — x still common |
| 12x³ + 18x² | 6x² | 2x + 3 | Yes |
| 12x³ + 18x² − 30x | 6x² | 2x + 3 − 5/x | No — not a polynomial |
| 12x³ + 18x² − 30x | 6x | 2x² + 3x − 5 | Yes |
| 12x³ + 18x² − 30x | 6 | 2x³ + 3x² − 5x | No — x still common |
The table's lesson: the correct GCF is the largest factor that divides every term evenly. 6x² divides the first two terms but produces a fractional last term in the trinomial, so it fails. 6 divides all three terms but leaves common x behind, so it's incomplete.
The winning choice is the one where both conditions hold. Divide evenly and nothing common remains.
How to Handle Negative Leading Coefficients and Sign Extraction
When the leading coefficient is negative, pull the negative with the GCF. Consider −8x⁴ − 12x², where the numbers give 4 and the variables give x², but the leading minus sign belongs in the GCF too. The result is −4x²(2x² + 3).
An alternative is 4x²(−2x² − 3), which is mathematically equal but not the conventional form. Standard algebra practice puts the negative on the GCF so the first term inside the parentheses is positive. Textbooks and automated grading systems usually expect the conventional form.
The sign rule matters most for factoring trinomials later, where a negative leading term inside the parentheses complicates the search for two numbers that multiply to the constant and add to the middle coefficient. Extracting the sign early avoids that.
Watch for a negative in the middle term only. In 5x³ − 10x², the leading coefficient is positive, so the GCF is just 5x² and the result is 5x²(x − 2). The minus sign belongs inside the parentheses there, not in the GCF.
Reduce Fractions With a GCF Instead of Clearing Denominators
A GCF factorization confirms whether two expressions share structure, and it also renders a fraction in lowest terms. In [(x² − 9)] / [(x² + 6x)], factor each piece first. The numerator becomes (x − 3)(x + 3); the denominator becomes x(x + 6). Nothing cancels, so the fraction is already in lowest terms.
Reverse the result and the cancellation becomes obvious: in (x² + 6x) / (x² − 9), the same factorization shows no common factor either, so neither form reduces. Running the GCF pass on both pieces makes the answer mechanical.
A subtler case: (2x² + 4x) / (6x). The numerator factors as 2x(x + 2), the denominator is 6x, so x cancels and the expression reduces to (x + 2)/3. That is a common simplification in calculus limits and trigonometric identities, where a GCF step precedes a cancellation.
The time cost of the GCF pass is small — under a minute for simple polynomials — and skipping it means later cancellations can go unnoticed. That wasted effort compounds across a problem set.
The Lowest-Exponent Rule for Variables, With Four Quick Cases
The variable GCF is the lowest power of each variable across all terms. Four cases cover most problems, and recognizing the case speeds up the pass.
Case one: same variable in every term, exponents differ. Take 4x⁵ + 8x³; the variable GCF is x³, giving 4x³(x² + 2).
Case two: one term lacks the variable. In 3x² + 6x + 9, the constant 9 has no x, so x drops out entirely and the GCF is 3, giving 3(x² + 2x + 3).
Case three: two variables, both present. In 10x²y³ + 15x⁴y, the x exponents are 2 and 4 (lowest 2), the y exponents are 3 and 1 (lowest 1), so the GCF is 5x²y and the result is 5x²y(2y² + 3x²).
Case four: different variables in different terms. In 6x³ + 4y², no variable appears in every term, so the GCF is numeric: 2(3x³ + 2y²).
Checking Your Work With Multiplication and a Sanity Estimate
Multiply the factored form back out term by term, and the original polynomial should appear exactly. That multiplication is the distributive property in reverse and is fast enough to run on every problem.
A numeric sanity estimate catches gross errors. Pick x = 10 and evaluate both forms: 12(1000) + 18(100) = 13,800, and 6(100)(20 + 3) = 600 × 23 = 13,800. Matching values at one test point is strong evidence the factoring is sound, though it can't prove equivalence for all x.
The check catches division slips and exponent errors, which are the common failure cases. It won't catch an incomplete factoring — if you factor out 3x² instead of 6x², multiplying back still gives the original, and only examining the remaining polynomial reveals the problem.
That asymmetry matters. Multiplication verifies correctness of the factoring you wrote, not completeness of the factorization. You need both checks — multiply back, then scan the remaining polynomial for leftover common factors.
Decisions
If the remaining polynomial shares any common factor with another term you've written, the factorization is incomplete. That single test is the most reliable final check.
If coefficients are large, prime factorize: 84 = 2² × 3 × 7 and 126 = 2 × 3² × 7, so the GCF is 2 × 3 × 7 = 42. Prime factorization outperforms listing divisors once coefficients exceed roughly 60.
If the polynomial has four or more terms, group before extracting. With x³ + x² + 2x + 2, pull x² from the first pair and 2 from the second: x²(x + 1) + 2(x + 1) = (x + 1)(x² + 2). That grouping is a distinct tool from plain GCF factoring, and you reach for it when no single factor divides every term.
FAQ
What is the GCF of 12x³ and 18x²?
The GCF is 6x². The coefficients 12 and 18 share 6 as their largest common divisor, and x appears in both terms with the smaller exponent 2, giving x². Dividing both terms by 6x² leaves 2x + 3, so the complete factorization is 6x²(2x + 3). Note that the GCF of monomials is also the common structure of two monomial fractions — 12x³/18x² reduces to 2x/3 after dividing by 6x².
Can a polynomial's GCF be 1?
Yes, and that means the polynomial is prime with respect to integer factorization. When the only common divisor of all coefficients is 1 and no variable appears in every term, the GCF is 1 and nothing can be pulled out. For example, x² + 5x + 6 has coefficient GCF of 1, so the GCF step is finished immediately, and factoring proceeds by other methods. Writing 1(x² + 5x + 6) is technically correct but not useful.
Why do I take the lowest exponent instead of the highest?
The GCF must divide every term evenly, and dividing by a power higher than the smallest exponent produces a fractional exponent in that term. If x appears to the powers 5, 3, and 2, you can divide each term by x² and get whole exponents, but dividing by x³ leaves a negative exponent in the last term. So the lowest power is the largest power that divides all terms.
What's the difference between factoring out a GCF and factoring a trinomial?
Factoring out a GCF always works when a common factor exists and is the first step of any factoring problem. Factoring a trinomial like x² + 7x + 12 requires finding two numbers that multiply to the constant and add to the middle coefficient — here 3 and 4 — giving (x + 3)(x + 4). Always check for a GCF first; if you factor x² + 7x + 12 with a GCF step first, the GCF is 1, so the trinomial method takes over.
How do I factor a GCF from a polynomial with four terms?
Pull the GCF from all four terms only if a single factor divides them all. With 2x³ + 6x² + 4x + 12, the GCF is 2, giving 2(x³ + 3x² + 2x + 6), but the inner expression still factors by grouping. If no single factor divides all four terms, group and factor in pairs, as in x³ + x² + 2x + 2 = (x + 1)(x² + 2).
Does factoring out a negative change the answer?
The value doesn't change, but the form differs. Factoring −4x³ + 8x² as −4x²(x − 2) and as 4x²(−x + 2) are equal at every x. Standard practice favors pulling the negative into the GCF, so the first term inside parentheses is positive. That conventional form reduces sign errors when you factor a trinomial further.
What is the best way to check my factoring?
Multiply the factored form back out term by term and compare to the original. This catches division and exponent errors — if the result is 12x³ + 18x² from 6x²(2x + 3), the factoring is correct. To check completeness, inspect the remaining polynomial for any common factor besides 1. A numeric substitution like x = 10 costs seconds and catches gross errors, but only thorough inspection or another factoring pass confirms you pulled out the largest possible GCF.