GCF & LCM calculator

Find the greatest common factor or least common multiple of two or more numbers.

Numbers

GCF (Greatest Common Factor)

The largest number that divides both numbers evenly. GCF(24,36) = 12.

LCM (Least Common Multiple)

The smallest number both divide into. LCM(24,36) = 72.

Relationship

GCF(a,b) × LCM(a,b) = a × b. So LCM = (a×b)/GCF.

Methods

Prime factorization: GCF uses minimum powers, LCM uses maximum powers. Euclidean algorithm: GCF(a,b) = GCF(b, a mod b).

Popular GCF & LCM problems
Related calculators