Small tools. Clear answers.
ƒ MATH Ready to calculate

LCM Calculator (Least Common Multiple)

Find the least common multiple of two or more positive whole numbers. Enter numbers separated by commas, spaces or new lines, then see the answer and each GCF-based step.

Let’s work it out

Enter 2–1,000 positive whole numbers separated by commas, spaces or new lines. Commas separate values: enter 2500, not 2,500, for one number.

◈ Calculated in your browser. Your inputs stay here.
EXAMPLE RESULT
—

Calculate to see your answer.

Calculation methods, precision limits and reproducible checks are explained in our methodology. Review the working and report a correction if a result does not match your inputs. See methods and checks.

01

How to use the LCM Calculator (Least Common Multiple)

  1. Enter 2 to 1,000 positive whole numbers, separated by commas, spaces or new lines. Use 2500 rather than 2,500 for a single number.
  2. Select Calculate to find their least common multiple and see the working.
  3. For three or more inputs, the calculator first finds the LCM of the first two numbers, then combines that result with each remaining number.

For two numbers, LCM(a,b) = (a ÷ GCF(a,b)) × b. Do not divide the product of three or more numbers by their shared GCF. GCF and GCD (greatest common divisor) refer to the same quantity.

02

Least Common Multiple formula

The least common multiple is the smallest positive whole number divisible by every input without a remainder. Start with two numbers, then repeat the operation with each additional number.

THE FORMULA LCM(a, b) = (a ÷ GCF(a, b)) × b
TRY IT ON PAPER

Least Common Multiple worked examples

Find LCM of 6 and 8

Find the smallest positive multiple shared by 6 and 8.

  1. GCF(6,8) = 2.
  2. LCM = (6 ÷ 2) × 8 = 24.

Answer: LCM(6,8) = 24.

Combine three numbers

Find LCM(12,18,30).

  1. GCF(12,18) = 6, so LCM(12,18) = 36.
  2. GCF(36,30) = 6, so LCM(36,30) = 180.

Answer: LCM(12,18,30) = 180.

Use coprime numbers

Find LCM(7,11).

  1. GCF(7,11) = 1.
  2. Multiply: (7 ÷ 1) × 11 = 77.

Answer: LCM(7,11) = 77.

Repeat the same number

Find LCM(6,6).

  1. GCF(6,6) = 6.
  2. LCM = (6 ÷ 6) × 6 = 6.

Answer: LCM(6,6) = 6.

Find a common denominator

Find LCM(6,10), for fractions with denominators 6 and 10.

  1. GCF(6,10) = 2.
  2. LCM = (6 ÷ 2) × 10 = 30.

Answer: Use 30 as the least common denominator.

Avoid the three-number product mistake

Find LCM(6,8,12).

  1. First find LCM(6,8) = 24.
  2. Then find GCF(24,12) = 12.
  3. LCM(24,12) = (24 ÷ 12) × 12 = 24.

Answer: The LCM is 24. Dividing 6 × 8 × 12 by their shared GCF would incorrectly give 288.

03

LCM Calculator (Least Common Multiple) FAQs

How does LCM differ from GCF?

GCF is the largest positive factor shared by the numbers. LCM is their smallest shared positive multiple. For 6 and 8, the GCF is 2 and the LCM is 24.

What if the numbers are coprime?

Two coprime numbers have GCF 1, so their LCM is their product. For example, LCM(7,11) = 77.

Can I find the LCM of more than two numbers?

Yes. This calculator accepts up to 1,000 values and combines them pairwise. LCM(6,8,12) is 24, not the product divided by the shared GCF.

Can I enter zero, negative numbers or decimals?

This tool uses positive whole numbers only. Zero, negative values and non-whole decimals are rejected rather than rounded into a different problem.

What are the precision limits?

Each input and the final LCM must be a positive safe integer, no greater than 9,007,199,254,740,991. An answer above that range produces an error. Commas separate numbers; do not use them as thousands separators.

Other ways to find LCM

Listing multiples works well for small numbers. For 6 and 8, compare 6, 12, 18, 24 with 8, 16, 24. The first match is 24.

Prime factorization uses each prime at its highest power across all inputs. Since 12 = 2² × 3 and 18 = 2 × 3², their LCM is 2² × 3² = 36. The calculator above uses GCF, rather than providing a selectable factorization mode.

Use LCM for repeating schedules

If two activities start together and repeat every 6 and 8 days, they next coincide after 24 days. This assumes both intervals stay fixed and share the same starting point.

Check that the answer is a common multiple

For LCM(6, 8, 12) = 24, the quotients are 24/6 = 4, 24/8 = 3 and 24/12 = 2. Each is an integer, so every input divides the result. The pairwise GCF method establishes that this common multiple is the least one; divisibility alone does not prove minimality.

ONE LESS THING TO WORK OUT

There’s a tool for that.

Explore all calculators ↗