GCF & LCM Calculator

Enter two or more integers to find their greatest common factor (GCF) and least common multiple (LCM).

Reviewed & updated:

Positive integers, comma or space separated.

Results are estimates for general information only and are not professional financial, medical, tax, or legal advice. Read the full disclaimer.

How it works

GCF via Euclid's algorithm. LCM(a, b) = |a·b| / GCF(a, b).

Example

GCF(12, 18) = 6. LCM(12, 18) = 36.

Frequently asked questions

Is GCF the same as HCF?
Yes — GCF and HCF (highest common factor) are identical.
Why is LCM useful?
Adding fractions requires a common denominator — the LCM of the denominators.
Do negatives matter?
Sign is ignored — GCF and LCM are defined as non-negative.
More than two numbers?
Yes — apply GCF/LCM pairwise across the list.

More in Math

You might also need

Tools from other categories that people commonly pair with the GCF & LCM Calculator.

Browse related categories