Skip to content

About the GCD and LCM Calculator

Greatest common divisor and least common multiple of two or more whole numbers.

How to use it

Examples

Questions

How is it calculated?
gcd by Euclid’s algorithm; lcm(a, b) = |a × b| ÷ gcd(a, b)
What does it assume?
Signs are ignored. gcd(0, 0) is 0, and the lcm is 0 whenever one number is 0.
Is my input uploaded?
No. Everything is calculated in your browser tab and nothing is uploaded or stored.

Free and runs in your browser. Sign in only if you want to save your work.