GCF and LCM Calculator
Find both the greatest common factor and least common multiple of two numbers.
Get the greatest common factor and least common multiple of two numbers at once.
The math behind it
The GCF is found with the Euclidean algorithm; the LCM follows from LCM × GCF = a × b.
Worked example
12 and 18 → GCF 6, LCM 36.
FAQ
How are they related?
Their product equals the product of the two numbers: GCF × LCM = a × b.