GCF and LCM Table

The greatest common factor (GCF), also called the greatest common divisor, is the largest number that divides two integers evenly. The least common multiple (LCM) is the smallest positive number that is a multiple of both. This page provides 1–12 reference grids for both, plus a calculator for any two numbers.

GCF and LCM Calculator

Enter two positive whole numbers to find their greatest common factor and least common multiple.

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

GCF (1–12) Grid

GCF123456789101112
1111111111111
2121212121212
3113113113113
4121412141214
5111151111511
6123216123216
7111111711111
8121412181214
9113113119113
101212521211012
111111111111111
121234161432112

LCM (1–12) Grid

LCM123456789101112
1123456789101112
2226410614818102212
33631215621249303312
444124201228836204412
55101520530354045105560
666612306422418306612
77142128354275663707784
888248402456872408824
9918936451863729909936
101010302010307040901011060
1111223344556677889911011132
121212121260128424366013212

How to Find GCF and LCM

  • Prime factorization: write each number as a product of primes. The GCF is the product of the shared prime factors at their lowest power; the LCM is the product of all prime factors at their highest power. For 12 = 2² × 3 and 18 = 2 × 3², GCF = 2 × 3 = 6 and LCM = 2² × 3² = 36.
  • Euclidean algorithm (GCF): repeatedly replace the larger number with the remainder of dividing it by the smaller, until the remainder is 0. The last non-zero remainder is the GCF.
  • Formula: GCF(a, b) × LCM(a, b) = a × b, so once you know one you can find the other: LCM(a, b) = (a × b) / GCF(a, b).

Common Uses

  • Simplifying fractions: divide numerator and denominator by their GCF. See the Fractions to Decimals Table.
  • Adding and subtracting fractions: the LCM of the denominators gives the least common denominator.
  • Scheduling and cycles: the LCM finds when two repeating events (e.g., buses arriving every 4 and 6 minutes) next coincide.

See also