GCF & LCM Calculator

Get the greatest common factor and least common multiple of two numbers — the workhorses of fraction simplification and common-denominator problems.

Updated November 13, 2026 ·

GCF & LCM formula

GCF comes from Euclid’s algorithm (repeatedly take remainders). LCM = (a × b) ÷ GCF.

Worked example

For 24 and 36 the GCF is 12, and the LCM is 24 × 36 ÷ 12 = 72.

Frequently asked questions

What are GCF and LCM used for?

GCF simplifies fractions (24/36 ÷ GCF 12 = 2/3); LCM finds common denominators for adding fractions and solves “when do both events coincide” problems.

How are GCF and LCM related?

For any two numbers: GCF × LCM = a × b. The calculator uses Euclid’s algorithm, the same method taught 2,300 years ago.

Is this gcf & lcm calculator free and private?

Yes — completely free with no sign-up, and every calculation runs in your browser. Nothing you type is transmitted or stored.