GCD and LCM Calculator

Find the greatest common divisor and least common multiple of a comma-separated list of integers.

Result

Enter your values to see the result.

How it works

Use the Euclidean algorithm on pairs of integers. For each pair, divide their product by the GCD to find the LCM when both integers are nonzero.

For 18, 24 and 30, the GCD is 6 and the LCM is 360.

Related calculators