GCF and LCM Calculator

Find both the greatest common factor and least common multiple of two numbers.

GCF 6
LCM 36

Formula: LCM = (a × b) ÷ GCF

Step-by-step with your numbers:
1. Values used:
2. First number = 12
3. Second number = 18
4.
5. GCF = 6
6. LCM = 36
Did we solve your problem today?

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.