๐Ÿ”—

LCM & GCF Calculator

Least common multiple and greatest common factor.

Enter your details

Results

GCF โ€”
LCM โ€”

How to use the LCM & GCF Calculator

GCF via Euclid's algorithm; LCM = aร—b รท GCF.

How LCM and GCF are found

GCF via Euclid's algorithm (repeated remainders โ€” fast even for huge numbers). LCM = a ร— b รท GCF. Example: GCF(12, 18) = 6, so LCM = 12ร—18รท6 = 36.

Where they're used

LCM gives the smallest common denominator for adding fractions; GCF simplifies them. Both appear constantly in algebra homework, scheduling problems ("when do two cycles align?") and gear-ratio math. See also our fraction calculator.

Frequently Asked Questions

Adding fractions with different denominators โ€” the LCM is the smallest common denominator.

Related Calculators