TinyCalc

GCD & LCM

Greatest common divisor and least common multiple of two integers.

Resulttinycalc.net
LCM(a, b) = |a × b| ÷ GCD(a, b)

How it works

The greatest common divisor is found with Euclid's algorithm — repeatedly replace the larger number with the remainder of the division — and the least common multiple follows as a × b ÷ GCD. For 24 and 36, the GCD is 12 and the LCM is 72. Useful for simplifying fractions and aligning repeating schedules.

Related calculators