Least common multiple calculator
Find the smallest number two whole numbers both divide into.
Try it
Inputs
Result
The result appears here as you type.
About Least common multiple calculator
A least common multiple calculator finds the smallest positive number that both of two whole numbers divide into exactly. The least common multiple is useful for adding fractions with different denominators, scheduling repeating events and finding when cycles line up. Enter two whole numbers greater than zero, and the calculator returns the least common multiple and the greatest common divisor used to find it.
The calculation uses the fact that the product of two numbers equals their greatest common divisor times their least common multiple. The calculator finds the divisor first, then divides the product by it.
How to use Least common multiple calculator
- Enter the first whole number, greater than zero.
- Enter the second whole number.
- Read the least common multiple.
- Check the greatest common divisor shown, which the calculator used internally.
- Use the result to set a common denominator or to find when two cycles coincide.
The formula
The least common multiple equals the product of the two numbers divided by their greatest common divisor. For 12 and 18, the product is 216 and the divisor is 6, so the least common multiple is 36. Both 12 and 18 divide exactly into 36.
This method is much faster than listing multiples, especially for large numbers.
Practical uses
Adding one third and one fourth needs a common denominator of 12, which is the least common multiple of 3 and 4. Two buses leaving a stop every 12 and 18 minutes meet again every 36 minutes.
Use the least common multiple for timing problems, scheduling and any situation where two repeating events need to match.
Frequently asked questions
Can I use zero?
The least common multiple with zero is zero by convention, but this calculator requires positive numbers.
What if one number divides the other?
The larger number is the least common multiple, since the smaller divides it exactly.
Is it the same as the greatest common divisor?
No. The divisor is the largest number dividing both, while the multiple is the smallest number both divide into.
Related tools
Tools that pair well with this one.