GCF and LCM calculator
Type 2 to 6 whole numbers, separated by commas or spaces. We'll find the GCF and LCM and show each number's prime factors.
How do you find the GCF and LCM?
The GCF (greatest common factor) is the biggest number that divides all your numbers evenly. The LCM (least common multiple) is the smallest number they all divide into. For 12 and 18: the GCF is 6 and the LCM is 36. One way: write each number's prime factors. The GCF multiplies the factors they share; the LCM multiplies every factor at its highest power.
How we calculate this
GCF uses Euclid's method (repeatedly dividing and taking remainders). LCM = a Γ· GCF(a, b) Γ b, applied across all numbers. Prime factors are found by dividing by 2, 3, 4, 5 and so on. Works for whole numbers up to 1 billion. Saved only on this device.
Questions moms ask
Is GCF the same as HCF?
Yes. Greatest common factor (GCF), highest common factor (HCF) and greatest common divisor (GCD) all mean the same thing.
When do kids use the LCM?
To add fractions with different bottoms: the LCM is the lowest common denominator.
What's a prime number?
A number bigger than 1 whose only factors are 1 and itself, like 2, 3, 5, 7 and 11.
Is it saved?
Your last numbers are saved on this device.
Related tools
This tool gives an estimate, not medical advice. Every pregnancy and every baby is different. If you're worried about anything, talk to your doctor or midwife.