Math

LCM calculator

Find the least common multiple of 2 to 6 whole numbers, and read every digit of the exact result.

Free to useNo sign-upCalculated in your browser

Least common multiple

A whole number from 1 to 1,000,000,000.

A whole number from 1 to 1,000,000,000.

Your numbers stay in this browser.

Least common multiple

Enter 2 to 6 whole numbers. The result is the smallest positive integer that each of them divides.

What the least common multiple is

The least common multiple of a set of whole numbers is the smallest positive integer that each of them divides. For 12 and 18, the multiples of 12 include 12, 24, 36, and 48. The multiples of 18 include 18, 36, and 54. The smallest number on both lists is 36.

OpenStax Prealgebra builds that common multiple from prime factors. This page uses the exact identity that connects the multiple to the greatest common factor.

The identity with the GCF

For two positive integers a and b,

LCM(a, b) = (a / GCF(a, b)) × b

The division happens first, so the product does not grow by a factor that will be cancelled. For 12 and 18, the greatest common factor is 6, and (12 / 6) × 18 = 36.

A third number is folded in the same way. LCM(4, 6) is 12, because GCF(4, 6) is 2 and (4 / 2) × 6 = 12. Then LCM(12, 10) is 60, because GCF(12, 10) is 2 and (12 / 2) × 10 = 60. That is LCM(4, 6, 10). The order of the inputs does not change the result. LCM(9, 9) is 9, because a number is a multiple of itself.

Two numbers that share no factor greater than 1 have a least common multiple equal to their product. 7 and 13 give 91. The full numeral is shown even when it is larger than the largest integer JavaScript can store exactly in a floating-point number. The arithmetic stays in exact integers and is never passed through that floating-point type.

A different question from the GCF

The GCF calculator finds the largest shared factor. This page finds the smallest shared multiple. They use the same exact-integer helpers, and the steps above show both numbers for the values you entered. Adding or reducing fractions is still the fraction calculator. Comparing two quantities as a ratio is the ratio calculator.

Frequently asked questions

Why can the LCM be larger than both numbers? It is a common multiple, so it is at least as large as the larger input. It is larger than both when neither input divides the other.

Does the page round a very large result? No. Every digit of the exact multiple is shown.

Are these numbers sent to analytics? No. Analytics may record that this calculator ran. The numbers and the multiple stay in this browser.

Sources & review

Last reviewed: . The formula is reproduced above so you can check the math independently.

How we check calculations and describe their limits

Exact integer arithmetic. The displayed multiple is not a rounded decimal and not a scientific-notation estimate.

Accessibility and student privacy

Our accessibility target is WCAG 2.1 AA. We use automated checks for keyboard operation, narrow layouts and readable alternatives to charts. Keyboard and screen reader behavior can vary by device and browser.Report an accessibility issue.

These tools have no ads, affiliate offers or sponsored content. No account is needed. Calculations run in your browser; your inputs and results are not sent to us or to analytics. Google Analytics may be used to measure site usage. See Privacy & analytics for details and how to turn it off.