How is it calculated?
The GCD is found with the Euclidean algorithm: the larger number is divided by the smaller and the process repeats with the remainder until it is zero. The LCM is found step by step with LCM = a × b ÷ GCD(a, b).
Example
For 12, 18 and 30 the GCD is 6 and the LCM is 180.
Frequently asked questions
What are they used for in daily life?
The GCD helps split things into equal groups (sharing 24 apples and 36 pears equally); the LCM tells you when repeating events happen together (every 4 and every 6 days).