How to Find the GCD and LCM

🔢Free GCD and LCM Calculator
Find the greatest common divisor and least common multiple of two numbers.
Open tool →

Euclidean algorithm

Divide the larger by the smaller, replace the larger by the remainder and repeat until the remainder is zero. The last divisor is the GCD.

Get the LCM

Multiply the numbers and divide by the GCD. For 12 and 18, the GCD is 6 and the LCM is 36.

Why it matters

The GCD simplifies fractions and the LCM gives common denominators.

Frequently asked questions

What if the numbers share nothing?

Then the GCD is 1.

Does it work for more than two numbers?

Yes, apply it step by step.

🔢Free GCD and LCM Calculator
Find the greatest common divisor and least common multiple of two numbers.
Open tool →

Related guides