GCF & LCM Calculator

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

All math runs in your browser — nothing is uploadedReviewed & updated: Methodology

Positive integers, comma or space separated.

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