LCM Calculator

The smallest number that a whole list of numbers divides into evenly.

Works with any number of positive whole numbers, not just two.

Least common multiple
24

The smallest number that all your inputs divide into evenly — commonly used for adding fractions with different denominators.

A worked example

The LCM of 4, 6 and 8 is 24 — the smallest number all three divide into evenly.

Frequently asked questions

Why is LCM useful for adding fractions?

To add fractions with different denominators, you need a shared denominator first — the LCM of the denominators is the smallest number that works, avoiding unnecessarily large numbers in the calculation.

Does this work for more than two numbers?

Yes — enter any number of comma-separated values and it finds the smallest number that all of them divide into evenly.