LCM and GCF Calculator
Find the least common multiple and greatest common factor.
Result
GCF = 6
LCM = 180
- Numbers: 12, 18, 30.
- GCF so far with 18 → 6.
- GCF so far with 30 → 6.
- LCM so far with 18 → 36.
- LCM so far with 30 → 180.
Formula
GCF via Euclidean algorithm; LCM(a,b) = |a·b| / GCF(a,b)
How it works
Enter two or more whole numbers. Results update as you type.
Common wrong answer
Swapping LCM and GCF, or ignoring zeros.