How to use the GCD and LCM Calculator
- Enter two or more positive whole numbers.
- Press Calculate.
Formula
Euclid: GCD(a, b) = GCD(b, a mod b), until the remainder is 0.
LCM(a, b) = a × b ÷ GCD(a, b). For more numbers, apply it pairwise.
Examples
- GCD(84, 126, 210) = 42; LCM = 1,260.
- Adding 1/12 + 1/18 uses LCM(12, 18) = 36 as the common denominator.
Frequently asked questions
Are GCD, GCF and HCF the same thing?
Yes. They are three names for the largest number that divides all the given numbers.