Mathematics
LCM & GCD Calculator
Find the Least Common Multiple and Greatest Common Divisor of numbers
How to Use
- Type a list of integers separated by commas or spaces into the box above.
- Results update instantly — no button press needed.
- The LCM is the smallest number divisible by all your inputs.
- The GCD (also called HCF) is the largest number that divides all your inputs evenly.
Formula
GCD(a, b)
Euclidean algorithm: divide repeatedly until remainder = 0 LCM(a, b)
= |a × b| / GCD(a, b) LCM(a,b,c)
= LCM(LCM(a,b), c) — applied iteratively