Do Utility
Menu

LCM Calculator

Find the least common multiple of two or more numbers, plus the greatest common factor. See the prime factorization behind every answer, step by step.

Enter two or more whole numbers, separated by commas or spaces.

Least common multiple

Fill in the fields to see your result.

  • Nothing you type is stored or sent
  • Results update as you type
  • Free, no limits or sign-up

How it works

Every whole number can be written as a product of prime numbers. The LCM needs enough of each prime to build every number in your list — no more.

  1. Type two or more whole numbers, separated by commas or spaces.
  2. Read the least common multiple and the greatest common factor instantly.
  3. Open Show the working to see each prime factorization and how the LCM is built.

The method

Formula

LCM = product of each prime at its highest power

The GCF works the other way round: it takes each prime that appears in every number, at its lowest power.

Worked examples

Example

LCM of 12, 18 and 30

12 = 2² × 3, 18 = 2 × 3², 30 = 2 × 3 × 5.

Highest powers: 2² × 3² × 5 = 180. The GCF is 2 × 3 = 6.

Example

Adding fractions

To add 5/12 + 7/18, use the LCM of 12 and 18 as the common denominator: 36.

15/36 + 14/36 = 29/36.

LCM of common pairs

Numbers LCM GCF
4 and 6 12 2
6 and 8 24 2
8 and 12 24 4
9 and 12 36 3
12 and 18 36 6
15 and 20 60 5

Frequently asked questions

Quick answers to the questions people ask most.

What is the least common multiple?

The least common multiple (LCM) is the smallest positive number that every number in your list divides into evenly. The LCM of 4 and 6 is 12, because 12 is the first number both 4 and 6 go into.

How do I find the LCM of three or more numbers?

Type all of them, separated by commas. The calculator factors each number into primes and takes every prime at its highest power — that works for any count of numbers.

What is the difference between LCM and GCF?

The LCM is the smallest number all of them divide into; the greatest common factor (GCF) is the largest number that divides all of them. For 12 and 18, the LCM is 36 and the GCF is 6.

Where do I use the LCM?

Most often to add or subtract fractions — the LCM of the denominators is the least common denominator. It also answers timing questions, like when two repeating events happen on the same day again.

How do I find the LCM on a calculator?

Most basic calculators have no LCM button. Scientific models like Casio fx-991 have one in the number menu; otherwise, type your numbers here and you get the answer with the steps.