FLXCode LCM Calculator

FLXCode apps

Appearance

LCM Calculator

Type two or more numbers. You get the least common multiple, worked out by prime factors and by the GCF, with the multiples listed when they are short.

Example

60

The least common multiple of 4, 6, 10 is 60.

Prime factor method

  • 4 = 2²
  • 6 = 2 × 3
  • 10 = 2 × 5
  • Every prime that shows up, highest power: 2² × 3 × 5 = 60

Using the GCF

  • LCM(4, 6) = 4 × 6 ÷ GCF = 24 ÷ 2 = 12
  • LCM(12, 10) = 12 × 10 ÷ GCF = 120 ÷ 2 = 60

Multiples up to 60

NumberMultiples
44, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60
66, 12, 18, 24, 30, 36, 42, 48, 54, 60
1010, 20, 30, 40, 50, 60

No ads. No account. Nothing you type or record is uploaded. We count page events with a daily code. Check it.

Problem or idea? Email us

Worked examples

NumbersLCMNote
4, 6, 1060The default: three numbers, 60
4, 612The textbook pair
8, 1224Shares a factor of 4
7, 963Coprime: the LCM is the product
12, 15, 2060Common denominator for 1/12 + 1/15 + 1/20
21, 642Order does not matter

Three ways to find it

  1. List multiples of each number until one shows up in all the lists. Fine for small numbers, and the tool lists them when the answer is short.
  2. Prime factors: take each prime at its highest power. Works for any size and shows why the answer is what it is.
  3. The GCF formula: LCM(a, b) = a × b ÷ GCF(a, b). Fast, because the GCF comes from Euclid's method without any factoring.

LCM or GCF?

The LCM is always at least as big as the biggest input. The GCF is always at most the smallest. Use the LCM when things line up in the future: buses leaving every 4, 6 and 10 minutes all leave together every 60 minutes. Use the GCF when you cut things into equal pieces or simplify a fraction.

Word problems that mean LCM

  • "When will they meet again?" for repeating schedules and laps.
  • "Smallest number divisible by 2, 3, 4, 5, 6" (that is 60).
  • A common denominator for adding fractions. The factor calculator helps if you need to check a denominator.

Numbers this uses

  • Input: 2 to 12 whole numbers above 0, each up to 1,000,000,000,000,000 (1e15), separated by commas, spaces or semicolons.
  • Result: exact, in BigInt, with no upper limit on size. The multiples table appears only when each list has 20 terms or fewer.
  • A 0 in the list is an error, because 0 has no positive common multiple.

For the prime pieces behind each number, see the prime factorization calculator.

Nothing you type is uploaded. We count events without cookies (details).

FAQ

What is the least common multiple?

The smallest positive number that every number in the list divides into evenly. The LCM of 4 and 6 is 12: the multiples of 4 are 4, 8, 12 and of 6 are 6, 12, so 12 is the first one in both lists.

How do I find the LCM with prime factors?

Factor each number, then take every prime that appears, each with its highest exponent, and multiply. 4 = 2², 6 = 2 × 3, 10 = 2 × 5. Highest powers: 2², 3, 5. So the LCM is 4 × 3 × 5 = 60.

How do I find the LCM from the GCF?

For two numbers, LCM = a × b ÷ GCF. For 4 and 6 the GCF is 2, so the LCM is 24 ÷ 2 = 12. For three or more, do it pair by pair: LCM(4, 6) = 12, then LCM(12, 10) = 60.

How do I add fractions with the LCM?

Use the LCM of the denominators as the common denominator. 1/4 + 1/6: the LCM of 4 and 6 is 12, so it becomes 3/12 + 2/12 = 5/12. Using the LCM rather than the product keeps the numbers small.

What is the LCM of two prime numbers?

Their product. LCM(7, 11) = 77. More generally, whenever two numbers share no factor (their GCF is 1), the LCM is just the product, like 8 and 15 giving 120.

What if one number divides another?

The LCM is the bigger one. LCM(5, 20) = 20, since 20 is already a multiple of 5.

Can the LCM be very big?

Yes. It can be as large as the product of all the numbers. The tool uses BigInt, so LCM(99999989, 99999971) is shown in full. Each input is limited to 15 digits and at most 12 numbers.

Are my numbers saved or sent?

No. The LCM is worked out in your browser. What you type is not put in the address bar, not stored and not counted. We only count whether you entered two numbers or more.

More from FLXCode

Share LCM Calculator