Skip to content

LCM calculator with steps (lowest common multiple)

Free TutorAura tool · no sign-up · Updated

Type two or more whole numbers to find their lowest common multiple (LCM), the smallest number that every one of them divides into exactly. The calculator shows each number as a product of prime factors and explains how the LCM is built from them, so you can do the same in an exam. It also gives the highest common factor (HCF) and, for two numbers, the Venn diagram many teachers use.

Loading the tool

How the LCM is found

  1. Write each number as a product of prime factors, for example 12=22×312 = 2^2 \times 3 and 18=2×3218 = 2 \times 3^2.
  2. List every prime that appears in any of the numbers.
  3. Take each prime with its highest power: 222^2 and 323^2.
  4. Multiply them: LCM=22×32=36\text{LCM} = 2^2 \times 3^2 = 36.

For small numbers you can also list multiples (12, 24, 36, … and 18, 36, …) until one appears in both lists, but prime factors are quicker for large numbers and are what exams usually expect.

Worked example: 12, 18 and 30

  • 12=22×312 = 2^2 \times 3
  • 18=2×3218 = 2 \times 3^2
  • 30=2×3×530 = 2 \times 3 \times 5

Highest powers: 222^2, 323^2 and 55. So the LCM is 4×9×5=1804 \times 9 \times 5 = 180. Check: 180÷12=15180 \div 12 = 15, 180÷18=10180 \div 18 = 10 and 180÷30=6180 \div 30 = 6, all whole numbers.

When you need the LCM

SituationWhy the LCM helps
Adding fractionsThe LCM of the denominators is the lowest common denominator
"When will they next happen together?"Buses every 12 and 18 minutes next leave together after 36 minutes
Packs and groupsThe smallest number you can split into groups of 12 or of 18

See our guide on how to find the LCM for more methods and exam-style questions.

Common mistakes

  • Taking the lowest powers. That gives the HCF, not the LCM.
  • Multiplying the numbers together. 12×18=21612 \times 18 = 216 is a common multiple, but not the lowest.
  • Missing a prime that appears in only one number, like the 5 in 30.

LCM and HCF together

For two numbers, HCF×LCM=\text{HCF} \times \text{LCM} = the product of the numbers. For 12 and 18: 6×36=216=12×186 \times 36 = 216 = 12 \times 18. It's a handy check, but it only works for two numbers. The calculator shows both answers; for the HCF method, see the HCF calculator.

Frequently asked questions

What is the LCM of 12 and 18?

36. 12 = 2² × 3 and 18 = 2 × 3², so the LCM is 2² × 3² = 36.

How do you find the LCM of three numbers?

Write each as a product of primes, then multiply every prime that appears, each with its highest power. The calculator accepts up to ten numbers.

Is the LCM the same as the lowest common denominator?

When the numbers are denominators, yes: the lowest common denominator of fractions is the LCM of their denominators.

Is my data sent anywhere?

No. The calculation happens in your browser.

Sources

  1. National curriculum in England: mathematics programmes of study. Department for Education.
  2. Common Core State Standards for Mathematics. Common Core State Standards Initiative.