GCD/LCM
Greatest common divisor
Use this tool
Greatest common divisor
How to use this tool
Enter two positive whole numbers and select GCD. The tool uses Euclid’s remainder algorithm to find their greatest common divisor and derives the least common multiple.
Worked example
For 48 and 36, the GCD is 12 and the LCM is 144. GCD is useful when simplifying fractions.
What to keep in mind
Use positive safe integers. LCM is a × b ÷ GCD and may exceed safe numeric precision even when both inputs are individually safe.