Concepts

LCM vs GCF: What's the Difference? (With Examples)

The GCF is the largest number that divides into your numbers; the LCM is the smallest number your numbers divide into. One looks down to shared factors, the other looks up to shared multiples.

Mixing them up is one of the most common math mistakes. Here is a simple way to keep them straight, plus the elegant formula that connects the two.

Definitions at a glance

  • GCF (Greatest Common Factor) = the biggest number that divides all inputs. Also called GCD or HCF.
  • LCM (Least Common Multiple) = the smallest number that all inputs divide into.

For 12 and 18: GCF = 6, LCM = 36.

A memory trick

Factorfewer/smaller (factors fit inside the number). Multiplemore/bigger (multiples grow beyond it). So the GCF is small and the LCM is large.

When to use each

  • Use the GCF to simplify fractions, split items into equal groups, or reduce a ratio. Try the GCD Calculator.
  • Use the LCM to add fractions (common denominator) or align repeating cycles. Try the LCM Calculator.

The formula that links them

For any two numbers, LCM(a, b) × GCF(a, b) = a × b. For 12 and 18: 36 × 6 = 216 = 12 × 18. Knowing one gives you the other instantly.

Key takeaways
  • GCF = largest shared factor; LCM = smallest shared multiple.
  • GCF ≤ smallest input; LCM ≥ largest input.
  • LCM × GCF = product of the two numbers.
  • Use GCF to simplify, LCM to combine (e.g. add fractions).

GCD Calculator

Compare the GCF and LCM side by side.

Open the GCD Calculator

Frequently asked questions

Is GCF the same as GCD?

Yes — GCF (Greatest Common Factor), GCD (Greatest Common Divisor) and HCF (Highest Common Factor) all mean the same thing.

Which is bigger, the LCM or the GCF?

The LCM is always greater than or equal to the GCF. The GCF is at most the smallest input, while the LCM is at least the largest.

How do LCM and GCF relate?

They multiply to the product of the two numbers: LCM(a, b) × GCF(a, b) = a × b.

The LCM Calculator Team

Math educators and engineers building free, accurate calculators with step-by-step solutions, visual diagrams and AI insights.