Skip to main content
Calculator Fractions

Least Common Multiple Calculator

Calculate the LCM of numbers.

Factors & Denominators

Use the Least Common Multiple Calculator

Result
—

How Least Common Multiple Calculator Works?

The Least Common Multiple Calculator works in 4 steps: it reads 2 numbers, finds their greatest common factor (GCF), divides their product by the GCF, and prints the least common multiple (LCM). The tool reads the 2 numbers from the denominator fields of the fraction form.

  1. Enter the 2 numbers

    Type the first number in the first denominator box and the second number in the second denominator box. Set both numerators to 1, so 1/14 and 1/21 stand for the numbers 14 and 21.

  2. Find the GCF

    The calculator runs the Euclidean algorithm on 14 and 21: 21 = 1 × 14 + 7 and 14 = 2 × 7 + 0, so the GCF is 7.

  3. Divide the product by the GCF

    The product 14 × 21 = 294 is divided by 7. The result, 42, is the smallest number that both 14 and 21 divide into.

  4. Read the result

    The result panel shows LCD = 42, which is the LCM of 14 and 21. The second line shows 1/14 = 3/42 and 1/21 = 2/42, where 3 and 2 are the multipliers 42 ÷ 14 and 42 ÷ 21.

Least Common Multiple Calculator Formula

The least common multiple formula is LCM(a, b) = |a × b| ÷ GCF(a, b). The prime factor method gives the same value for 2 or more numbers.

GCF division rule

LCM(a, b) = (a × b) / GCF(a, b)

Multiply the 2 numbers and divide by their GCF. LCM(16, 20) = 320 ÷ 4 = 80.

Prime power rule

LCM = product of every prime at its highest exponent

Write each number as prime powers and keep the largest exponent of each prime. 12 = 2² × 3 and 45 = 3² × 5 give 2² × 3² × 5 = 180.

Coprime rule

LCM(a, b) = a × b, if GCF(a, b) = 1

Numbers with no shared factor have an LCM equal to their product, for example LCM(7, 13) = 91.

Three or more numbers

LCM(a, b, c) = LCM(LCM(a, b), c)

Reduce the list 1 pair at a time. LCM(6, 8, 10) = LCM(24, 10) = 120.

Worked example: LCM of 28 and 36

  1. Factor 28: 28 = 2² × 7.
  2. Factor 36: 36 = 2² × 3².
  3. Keep the highest power of each prime: 2², 3², and 7.
  4. Multiply: 4 × 9 × 7 = 252.
  5. Check with the GCF rule: GCF(28, 36) = 4, and 28 × 36 ÷ 4 = 1008 ÷ 4 = 252.

Least Common Multiple Calculator Conversion Table

The least common multiple conversion table lists 12 number pairs with their prime factors, the GCF, the LCM, and a product check.

NumbersPrime FactorsGCFLCMProduct ÷ GCF
4, 102²; 2 × 522040 ÷ 2 = 20
6, 152 × 3; 3 × 533090 ÷ 3 = 30
8, 122³; 2² × 342496 ÷ 4 = 24
9, 213²; 3 × 7363189 ÷ 3 = 63
16, 202⁴; 2² × 5480320 ÷ 4 = 80
18, 302 × 3²; 2 × 3 × 5690540 ÷ 6 = 90
25, 355²; 5 × 75175875 ÷ 5 = 175
12, 452² × 3; 3² × 53180540 ÷ 3 = 180
7, 137; 1319191 ÷ 1 = 91
24, 362³ × 3; 2² × 3²1272864 ÷ 12 = 72
30, 422 × 3 × 5; 2 × 3 × 762101260 ÷ 6 = 210
40, 642³ × 5; 2⁶83202560 ÷ 8 = 320

What is Least Common Multiple Calculator?

A Least Common Multiple Calculator is a tool that returns the smallest positive integer that 2 numbers both divide into with no remainder. The least common multiple (LCM) of 8 and 12 is 24: 24 ÷ 8 = 3 and 24 ÷ 12 = 2.

The LCM and the greatest common factor (GCF) are linked by 1 identity: LCM(a, b) × GCF(a, b) = a × b. For 18 and 30, the GCF is 6 and the LCM is 90, and 6 × 90 = 540 = 18 × 30. The calculator uses this identity to find the LCM in a few division steps.

The LCM of 2 fraction denominators is the least common denominator (LCD). The calculator labels the LCM as LCD for that reason, and the same value answers whole-number questions such as cycle timing, gear rotations, and schedule overlaps.

What are the uses of Least Common Multiple Calculator?

The Least Common Multiple Calculator has 6 main uses, including schedule alignment, gear timing, and fraction denominators.

  • Schedule alignment

    2 buses leave a station every 12 and 18 minutes. LCM(12, 18) = 36, so both buses leave together every 36 minutes.

  • Gear timing

    A 24-tooth gear meshes with a 36-tooth gear. The same 2 teeth meet again after LCM(24, 36) = 72 teeth: 3 turns of the small gear and 2 turns of the large gear.

  • Package matching

    Hot dogs come in packs of 10 and buns in packs of 8. LCM(10, 8) = 40, so 4 packs of hot dogs and 5 packs of buns match with no leftovers.

  • Fraction denominators

    The LCM of 9 and 21 is 63, so 4/9 + 2/21 uses the denominator 63: 28/63 + 6/63 = 34/63.

  • Rhythm patterns

    A 3-beat pattern and a 4-beat pattern line up again after LCM(3, 4) = 12 beats.

  • Number theory practice

    Students verify the identity LCM × GCF = a × b on pairs such as 25 and 35: 175 × 5 = 875 = 25 × 35.

Related Factors & Denominators Tools

View all 270 tools →