Overview

The least common multiple, LCM, is the smallest number that both numbers divide into exactly. It's what you need for a common denominator when adding fractions.

Enter two whole numbers. You also get their greatest common factor.

Worked examples

InputsResult
First Number12Second Number18LCM(12, 18) = 36GCF = 6
Show 3 more examples
First Number8Second Number12LCM(8, 12) = 24GCF = 4
First Number7Second Number9LCM(7, 9) = 63GCF = 1
First Number15Second Number25LCM(15, 25) = 75GCF = 5

LCM by first number

With the calculator's starting values, the result is 36. The table shows how it changes with the first number.

First NumberLCM
618
872
1090
12starting value36
14126
16144
1818

Other inputs: Second Number: 18. Change them in the calculator above for your own numbers.

How it works

The LCM is the product of the two numbers divided by their greatest common factor. The GCF comes from the Euclidean algorithm.

The formula

LCM(a, b) = |a × b| ÷ GCF(a, b)

Practical tips

  • LCM(12, 18) is 36, and their GCF is 6.
  • To add 1/12 + 1/18, use 36 as the common denominator.
  • If two numbers share no factors, their LCM is their product. LCM(7, 9) = 63.

Frequently asked questions

How do I find the LCM of three numbers?

Find the LCM of two, then the LCM of that and the third.

What's the difference between LCM and GCF?

The LCM is the smallest shared multiple. The GCF is the largest shared factor.

Where is LCM used?

Adding fractions, scheduling repeating events, and gear or cycle problems.