50% off Plus--d--h--m

LCM Calculator

Type two or more whole numbers to get their least common multiple as you type. Switch between prime factors, listing multiples and the formula with the GCF to see how it is found, and use it as the common denominator for fractions.

  • No account needed
  • Free, no limits
  • Nothing is uploaded

How it works

  1. 01

    Type the numbers

    Two to ten positive whole numbers, one in each box, such as 8, 12 and 20.

  2. 02

    Read the LCM

    The least common multiple appears at once: the smallest number that each of them divides exactly.

  3. 03

    See how it is found

    By prime factors with their highest powers, by listing multiples, or by a × b ÷ GCF, two numbers at a time.

The smallest number they all go into

The least common multiple, shown three ways

The least common multiple (LCM) of two or more whole numbers is the smallest positive number that each of them divides with no remainder; British schools often call it the lowest common multiple. The multiples of 4 are 4, 8, 12, 16… and those of 6 are 6, 12, 18…, so the LCM of 4 and 6 is 12. It is the number you need to add fractions with different denominators: for 1/4 + 1/6 the least common denominator is 12.

Prime factors: write each number as a product of primes, then multiply every prime that appears, each with its highest power. 8 = 2³, 12 = 2² × 3 and 20 = 2² × 5, so the LCM is 2³ × 3 × 5 = 120. Listing multiples: write the multiples of each number until one appears in every list; this is clear for small numbers and long for large ones. Using the GCF: for two numbers, LCM = a × b ÷ GCF(a, b); for 12 and 18 that is 216 ÷ 6 = 36. With more numbers, repeat it: the LCM of the first two, then the LCM of that and the next.

The most common mistake is to multiply the numbers together. That gives a common multiple, but not always the least: 4 × 6 = 24, while the LCM is 12. It is the least only when the numbers are coprime, like 7 and 9 (63). Another mix-up is taking the lowest powers of the primes, which gives the greatest common factor instead.

The calculator takes positive whole numbers up to 30 digits. Prime factors are shown for numbers up to 18 digits, and multiples are listed when each list has at most 40 numbers; the GCF method works for any size. Zero, negative numbers and decimals get a message instead of an answer. Everything runs in your browser and nothing is uploaded.

FAQ

Questions, answered

Maths revision that sticks

PocketNote turns your maths notes into flashcards and practice questions you can study anywhere.