LCM Calculator
The LCM Calculator finds the Least Common Multiple (LCM). Simply enter your numbers (unitless) to calculate your Least Common Multiple and pairwise GCD values. The LCM is the smallest number that all your given numbers divide into evenly. This calculator also calculates pairwise GCD values during each step of the process.
This calculator is for informational purposes only. Verify results with appropriate professionals for important decisions.
Use this LCM calculator to find the smallest number that is a multiple of all your given numbers. Enter two or more whole numbers, click Calculate, and view the result with a helpful chart.
What Is Least Common Multiple
The Least Common Multiple, or LCM, is the smallest positive number that is a multiple of two or more given numbers. For example, the multiples of 4 are 4, 8, 12, 16, and so on. The multiples of 6 are 6, 12, 18, 24, and so on. The smallest number that appears in both lists is 12, so the LCM of 4 and 6 is 12. This idea is useful when you need to find a common point where different repeating patterns line up.
How Least Common Multiple Is Calculated
Formula
LCM(a, b) = |a x b| / GCD(a, b)
Where:
- a, b = the two input numbers (unitless)
- GCD(a, b) = greatest common divisor of a and b (unitless)
- For more than two numbers: LCM(a, b, c, ...) = LCM(LCM(a, b), c, ...)
To find the LCM, you first find the Greatest Common Divisor (GCD) of two numbers. The GCD is the largest number that divides both numbers evenly. Once you have the GCD, you multiply the two numbers together and then divide by the GCD. This works because the product of two numbers always equals their GCD times their LCM. When you have more than two numbers, you find the LCM of the first two, then find the LCM of that result with the next number, and keep going until all numbers are used.
Why Least Common Multiple Matters
Knowing how to find the LCM helps you solve many types of math problems in school and in daily life. It is commonly used when adding fractions with different bottom numbers, planning schedules that repeat at different intervals, and working with number patterns that need to line up.
Why Finding the Correct LCM Is Important for Math Problems
Finding the wrong LCM can lead to mistakes in fraction problems, scheduling errors, or incorrect answers on tests. If you guess the LCM instead of calculating it properly, you may get a number that is too large or not actually a multiple of all the given numbers. This calculator helps you avoid those errors by computing the exact LCM using a proven method.
For Scheduling and Time Planning
The LCM is often used to find when two or more events will happen at the same time. For example, if a bus arrives every 12 minutes and a train arrives every 18 minutes, the LCM of 12 and 18 is 36. This means both vehicles will arrive together every 36 minutes. This same idea works for any repeating schedule or cycle in daily life.
For Working with Fractions
When adding or subtracting fractions with different denominators, you need a common denominator. The LCM of the denominators gives you the least common denominator, which keeps the numbers as small as possible. Using the LCD instead of a larger common denominator makes the rest of the math simpler and reduces the chance of making errors.
For Very Large Numbers
When working with very large numbers, multiplying two numbers first and then dividing can create a number so big that it causes problems. This calculator divides by the GCD first, which keeps the numbers smaller during the calculation. For most everyday uses with smaller numbers, any method gives the same correct answer.
LCM vs GCD
The LCM and GCD are related but measure different things. The GCD is the largest number that divides into your given numbers, while the LCM is the smallest number that your given numbers divide into. A common mistake is to mix up which one you need. If you are looking for a shared factor, use GCD. If you are looking for a shared multiple, use LCM.
Calculation logic verified using publicly available standards.
View our Accuracy & Reliability Framework →