To find the greatest common factor of two or more monomials, factor each one into a numeric coefficient part and a variable part, take the greatest common divisor of the coefficients, then take the smallest exponent on every variable that appears in all of them. Multiply those two results, and that product is the GCF. The method works because the GCF of monomials is itself a monomial — a single term — which is the condition most students miss when they start copying polynomial GCF habits.

You'll see this written as GCF or GCD depending on the textbook; both mean the same thing for monomials. Below is the full procedure, six worked examples at increasing difficulty, three failure cases that account for most lost points on quizzes, and the exponent rule explained from the definition rather than memorized.

Prime factorization of the coefficient is the step students skip

Every monomial has two independent parts, and the GCF computation treats them independently. The coefficient is the number in front — the 12 in 12x³y. The variable part is everything after it. Split the monomial in your head before you do anything else, because mixing the two parts together is where errors begin.

Take the coefficients to prime factorization. For 84, you get 2² × 3 × 7. For 126, you get 2 × 3² × 7. This is ordinary integer GCF work, and the standard Euclidean algorithm or a factor tree both get you there. Writing the primes in exponent form is what makes the comparison mechanical rather than guesswork.

Compare the prime lists and keep only the primes that appear in every coefficient, each raised to the smaller of its two exponents. On 84 and 126, the shared primes are 2 and 3 and 7. The smaller exponents are 2¹, 3¹, and 7¹, so the coefficient GCF is 42. Check it: 84 ÷ 42 = 2 and 126 ÷ 42 = 3, and 2 and 3 share no factor.

If a coefficient is negative, drop the sign before factoring. The GCF of −18x² and 24x is positive 6x, because greatest common factor is defined on magnitudes. Textbooks differ on whether to pull a negative GCF when factoring expressions, but the GCF itself is conventionally reported as positive.

The variable part uses the smallest exponent, and here is why

For variables, the rule is the opposite of what intuition suggests. You want the smallest exponent, not the largest. That's because the GCF must divide every monomial evenly, and x² divides x⁵ (giving x³) but x⁵ does not divide x².

The verification is quick. If you claim the GCF of x⁵ and x² is x⁵, then dividing x² by x⁵ gives x⁻³, which is not a monomial with a nonnegative exponent. The GCF has to produce a whole-number quotient in every case, so the smaller exponent wins. For x⁵ and x², the GCF is x².

Only variables present in all the monomials survive. If one monomial has a y and another does not, y is not part of the GCF even if the exponent is favorable. This trips people up constantly, because the eye wants to include every variable it sees.

The full variable rule: for each variable appearing in every monomial, take the minimum exponent. Variables missing from even one monomial get exponent zero, which means they drop out entirely (x⁰ = 1). That's the whole mechanism.

The six-step procedure in the order you actually perform it

The steps below are sequenced so that each one produces a small checkable result, which keeps a long problem from collapsing at the end. Follow the order; skipping step 4 is the single most common cause of a wrong final term.

1: Split each monomial into coefficient and variable parts. 2: Prime-factor every coefficient, writing primes in exponent form. 3: Multiply the shared primes using their smallest exponents — this is the numeric GCF. 4: List the variables common to all monomials, and for each take the smallest exponent. 5: Multiply the numeric GCF from step 3 by every variable term from step 4. 6: Verify by dividing each original monomial by your answer; every quotient must come out as a monomial with no fraction and no negative exponent.

Step 6 is not optional. On a four-term problem, one division error upstream is invisible until you check, and the check takes about fifteen seconds per term. If any quotient has a negative exponent or a fraction, your GCF is too large; if any quotient still shares a factor with the others, your GCF is too small.

Failure handling: if step 3 gives you 1, the coefficients are coprime and the numeric part drops out — the GCF is purely variable, or if there are no shared variables either, the GCF is 1. Write 1 rather than leaving the answer blank, because 1 is a legitimate GCF and graders count it.

Worked example one: 12x³y² and 18x²y⁵

Split the monomials first: 12 and x³y² versus 18 and x²y⁵. Prime-factor the coefficients: 12 = 2² × 3, and 18 = 2 × 3².

The shared primes are 2 and 3. Smaller exponents give 2¹ × 3¹ = 6. That's the coefficient GCF.

Now the variables. Both monomials contain x and both contain y, so both survive the "present in all" filter. The smaller exponent on x is 2, and the smaller exponent on y is 2. The variable GCF is x²y².

Multiply: 6x²y². Check by division — 12x³y² ÷ 6x²y² = 2x, and 18x²y⁵ ÷ 6x²y² = 3y³. Both quotients are clean monomials, and 2x and 3y³ share nothing further.

Worked example two: three monomials with an absent variable

Consider 8a²b, 20a³b²c, and 12ab³. Three monomials, three variables, one of them only partly present.

Coefficients: 8 = 2³, 20 = 2² × 5, 12 = 2² × 3. The only prime in all three is 2, and the smallest exponent is 2², so the coefficient GCF is 4.

Variables: a appears in all three with exponents 2, 3, and 1 — minimum is 1, so a¹ = a. B appears in all three with exponents 1, 2, and 3 — minimum is 1, so b. C appears only in 20a³b²c, so c is excluded entirely.

The GCF is 4ab. Verify: 8a²b ÷ 4ab = 2a, 20a³b²c ÷ 4ab = 5a²bc, and 12ab³ ÷ 4ab = 3b². The exclusion of c is the whole point of this example — c would have been wrong, and it's the mistake most often made on three-term problems.

Worked example three: the coprime-coefficient case

Try 9m⁴n and 14m²n³. Coefficients 9 = 3² and 14 = 2 × 7 share no prime, so the numeric GCF is 1. Variables: m appears in both with minimum exponent 2, and n appears in both with minimum exponent 1. The GCF is m²n.

The answer looks strange to students who expect a number in front. It's correct, and it's worth writing as m²n rather than 1m²n, since the coefficient 1 is understood. Dividing back: 9m⁴n ÷ m²n = 9m², and 14m²n³ ÷ m²n = 14n².

If a problem produces a GCF of 1 overall — coprime coefficients and no shared variable, such as 7x and 11y — state that the GCF is 1 and note that the monomials are relatively prime. That phrasing earns credit on written responses where a bare "1" may be marked incomplete.

Negative coefficients and fractional-looking results

Negative coefficients are handled by magnitude. For −24x⁴y² and 36x²y⁵, the coefficient GCF is 12 and the variable GCF is x²y², giving 12x²y². The sign is dropped during computation and the answer is positive. Some curricula teach pulling out a negative GCF when factoring a whole expression — a GCF of −12x²y² in that framing — so check which convention your course uses before a quiz.

A GCF cannot be larger than the smallest monomial in absolute value, and it cannot contain a variable with an exponent higher than the smallest exponent among the inputs. Those two bounds catch nearly every over-large answer before you finish writing it.

What about coefficients with a common factor but awkward values, like 105 and 84? Prime-factor both: 105 = 3 × 5 × 7, and 84 = 2² × 3 × 7. Shared primes 3 and 7 give 21. Division confirms: 105 ÷ 21 = 5 and 84 ÷ 21 = 4. The prime method beats guessing on numbers this size, and the Euclidean algorithm is faster still on larger coefficients.

Where the procedure breaks and how the failure looks

The classic failure is taking the largest exponent by mistake. If a student answers x⁵ for the GCF of x⁵ and x², the division check immediately exposes it: x² ÷ x⁵ = x⁻³. Negative exponents are not permitted in a GCF of monomials over the integers, so the answer is wrong by inspection.

The second failure is including a variable that appears in only one monomial. On 8a²b, 20a³b²c, and 12ab³, an answer of 4abc looks plausible and fails the moment you divide 8a²b by 4abc, which leaves a c in the denominator. Any quotient containing a variable that wasn't in the original monomial is a red flag.

The third failure is arithmetic on the coefficients. Prime factorization of 126 as 2 × 63 instead of 2 × 3² × 7 loses the second 3 and shrinks the GCF. The guard is always the same: divide back, and if both quotients still share a factor, you stopped early.

How this connects to factoring polynomials, and where students stall

GCF of monomials is the first move in factoring any polynomial. On 12x³y² + 18x²y⁵, you find 6x²y² and rewrite the expression as 6x²y²(2x + 3y³). The monomial skill is the same skill; the polynomial framing just adds parentheses.

The stall happens when the GCF contains a variable and the remaining polynomial has a lower degree in that variable. Students pull the GCF correctly and then can't see why the leftover term has no x, or has x¹ when they expected x³. It's because subtraction of exponents is happening, and a term like 12x³ ÷ 6x² leaves exactly x¹.

Edge case worth knowing: when the GCF equals one of the monomials entirely. For 6x²y and 18x⁴y³, the GCF is 6x²y, which is the first monomial. Dividing gives 1 and 3x²y². That's fine and correct, but it surprises people who assume the GCF must be strictly smaller than every input.

A second edge case: monomials with a coefficient of 1 written invisibly, as in xy² and x³y. Treat the coefficient as 1 and the prime list as empty, so the numeric GCF is 1, and the variable GCF is xy. The answer is xy, not 1xy.

Comparing the two methods: prime factorization versus the Euclidean algorithm

Both methods are legitimate, and which one to use depends on how large the coefficients are and whether you're working by hand or with a calculator. The table below compares them on the dimensions that actually decide the choice.

Dimension Prime factorization Euclidean algorithm
Best for coefficient size Small to moderate, up to about 200 Large, four digits and beyond
Steps on 84 and 126 Factor trees, then exponent comparison Three division steps: 126 ÷ 84, 84 ÷ 42
Error risk Miscounting exponents Misreading a remainder
Handles three coefficients at once Yes, directly Requires pairing, then combining
Shows shared structure Yes — you see the shared primes No — just the final number
Typical teaching order Introduced around grade 6 Introduced when factoring quadratics

Verdict: use prime factorization when you need to see why the number is the GCF or when a teacher expects the work shown, and switch to the Euclidean algorithm when the coefficients run past three digits or you're doing several problems under time pressure. For a two-coefficient problem like 84 and 126, the Euclidean algorithm is faster; for a three-coefficient problem, prime factorization avoids the pairing bookkeeping.

FAQ

Can the greatest common factor of monomials ever be larger than one of them?

No. The GCF divides each monomial evenly, so it can equal the smallest input but never exceed it in absolute value. On 6x²y and 18x⁴y³, the GCF is 6x²y — exactly equal to the first monomial. An answer larger than the smallest input is always an error, and that single check catches a lot of mistakes before a grader sees them.

Why is the GCF of x⁵ and x² equal to x² and not x⁵?

Because the GCF must divide both terms with no negative exponents left over. Dividing x² by x⁵ gives x⁻³, which isn't allowed, while dividing x⁵ by x² gives x³ cleanly. The smaller exponent is the only one that works in both directions. Students who remember "smallest exponent wins" without the division justification tend to flip the rule under exam pressure.

What is the GCF of 12x²y and 18xy² if I only need the numeric part?

The numeric GCF alone is 6. Prime-factor 12 as 2² × 3 and 18 as 2 × 3², take the shared primes at their smaller exponents, and you get 6. Some problems ask only for the coefficient GCF, especially in integer-arithmetic units before variables appear, so read the question carefully before adding variable terms to your answer.

Do I include a variable that appears in only two of three monomials?

No. A variable must appear in every monomial to be part of the GCF. On 8a²b, 20a³b²c, and 12ab³, the variable c appears only in the middle term, so it drops out and the GCF is 4ab. Including c produces an answer that fails the division check on the other two terms.

How do I check my GCF answer in under a minute?

Divide each original monomial by your candidate GCF. Every quotient must be a monomial with no fractions and no negative exponents, and the quotients must share no common factor among themselves. If both conditions hold, the answer is correct. The check is mechanical and takes roughly fifteen seconds per term, which is far cheaper than discovering the error later.

Is the GCF of monomials the same as the LCM?

No, and they're often taught side by side precisely because they invert each other. The GCF takes the smallest exponent on shared variables and the smallest shared prime exponents; the LCM takes the largest exponent on every variable and the largest prime exponents. Mixing the two rules on a test is a common swap, so label which one the question asks before you start.

What if the coefficients are coprime but the variables are shared?

The GCF is then purely variable. With 9m⁴n and 14m²n³, the coefficients 9 and 14 share no prime, so the numeric part is 1, but m²n is a genuine common factor and the full GCF is m²n. Write it without the 1, since an understood coefficient of 1 is standard notation.