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
Factor → fewer/smaller (factors fit inside the number). Multiple → more/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.
- 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).
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.
Math educators and engineers building free, accurate calculators with step-by-step solutions, visual diagrams and AI insights.
Related articles
Prime Factorization Explained: From Factor Trees to Cryptography
What is prime factorization, how do you do it with a factor tree, and why does it matter? A complete, beginner…
What Are Prime Numbers? A Complete Beginner's Guide
A clear beginner's guide to prime numbers: the definition, why 1 isn't prime, how to test for primes, famous p…
Factors vs Multiples: A Clear Explanation
Factors and multiples are opposites. Learn the difference with simple examples, a memory trick, and how factor…