Premium Upgrade

Go beyond quick answers and unlock the full analysis.

Get advanced steps, deeper insights, and pro-level tools that turn calculations into clear decisions.

View Premium
GCD and LCM (Free)
Find the greatest common divisor and least common multiple of two integers.
Frequently Asked Questions

What is the greatest common divisor (GCD)?

The GCD of two integers is the largest positive integer that divides both without a remainder. For example, GCD(48, 18) = 6.

What is the least common multiple (LCM)?

The LCM is the smallest positive integer divisible by both numbers. LCM(4, 6) = 12. It is useful for adding fractions with different denominators.

How does the Euclidean algorithm find the GCD?

The Euclidean algorithm repeatedly divides the larger number by the smaller and takes the remainder, until the remainder is zero. The last non-zero remainder is the GCD.