Math

GCF and LCM Calculator

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

Parameters Live Compute
Calculated Output
GCF 6
LCM 36
Formula: LCM = (a × b) ÷ GCF
Step-by-Step Breakdown
1. Values used:
2. First number = 12
3. Second number = 18
4.
5. GCF = 6
6. LCM = 36
Did this calculator solve your problem today?
Report issue to loopingon.com
Sponsored

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.

Frequently Asked Questions

How are they related?

Their product equals the product of the two numbers: GCF × LCM = a × b.

Advertisement