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.
GCF 6 and LCM 36: 6 is the largest number dividing both 12 and 18, and 36 is the smallest number both divide into.
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.
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.
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.