PennyPages

LCM and GCF Calculator

Enter two whole numbers and get their greatest common factor and least common multiple together.

About the LCM and GCF Calculator

The greatest common factor of two numbers is the largest number that divides both exactly: 12 and 18 share the factors 1, 2, 3 and 6, so their GCF is 6. The least common multiple is the smallest number both divide into: the multiples of 12 and 18 first meet at 36. The two are linked — LCM equals the product of the numbers divided by their GCF (12 x 18 / 6 = 36) — which is how this page computes it.

The GCF is the tool for simplifying fractions (divide top and bottom by it) and the LCM is the tool for adding fractions with different denominators and for finding when repeating cycles line up again. Whole numbers only: decimals are rounded to the nearest whole number before the calculation. Nothing you enter leaves your browser.

Common questions

What are the GCF and LCM of 12 and 18?

GCF 6 and LCM 36: 6 is the largest number dividing both 12 and 18, and 36 is the smallest number both divide into.

How do you find the GCF of two numbers?

List the factors of each and take the largest they share — or divide both by common factors until none remain. The GCF of 12 and 18 is 6.

How do you find the LCM of two numbers?

Multiply the two numbers and divide by their GCF: 12 x 18 / 6 = 36. The formula works because the shared factors are counted twice in the product and the GCF removes one copy.

What is the GCF used for?

Simplifying fractions: divide the numerator and denominator by the GCF — 12/18 divided by 6 becomes 2/3. The LCM is used to give fractions a common denominator.

Put this tool on your site

Free to embed — your visitors use it without leaving your page.

PennyPages #072 · free forever · same input, same answer, every time