LCM Calculator - Least Common Multiple Calculator

Free online LCM Calculator. Calculate the Least Common Multiple (LCM) of two or more numbers with step-by-step solutions using prime factorization and GCD.

Results

Calculated
Result
—

About this calculator

Free online LCM Calculator. Calculate the Least Common Multiple (LCM) of two or more numbers with step-by-step solutions using prime factorization and GCD.

How to use

Enter your values in the fields above and click Calculate to see your results. Click Clear to reset all fields.

What the LCM Is and When You Need It

The least common multiple (LCM) of two or more whole numbers is the smallest positive number that every one of them divides into evenly. It's the mirror image of the greatest common factor (GCD), which finds the largest number that divides evenly into your numbers rather than the smallest number they all divide into. LCM shows up any time you need a shared unit of "how often something repeats": adding or comparing fractions with different denominators, lining up repeating schedules (two buses that loop every 12 and 18 minutes will be back at the stop together every LCM(12, 18) minutes), or sizing gears and production batches that need to complete whole cycles together.

Use this calculator whenever you need an exact smallest-common-multiple answer rather than an estimate — homework involving fraction addition, scheduling problems, or engineering ratios where "close enough" isn't good enough. It works with any list of two or more positive whole numbers; it isn't meant for decimals, negative numbers, or zero, since the LCM is only defined for positive integers.

The Method: Prime Factorization

This calculator finds the LCM by prime factorization rather than guessing and checking multiples. Each number is broken into its prime factors (for example, 12 = 2² × 3). Then, for every prime that appears in any of the numbers, the calculator takes the highest power of that prime across the whole list, and multiplies those highest powers together. For just two numbers this is equivalent to the shortcut LCM(a, b) = (a × b) ÷ GCD(a, b), and for more than two numbers the calculator applies that pairwise formula repeatedly (LCM of the first two, then LCM of that result with the third number, and so on) — both routes always agree.

Worked Example

Enter 12, 18, 30. Prime factorizations: 12 = 2² × 3, 18 = 2 × 3², 30 = 2 × 3 × 5. Taking the highest power of each prime that appears anywhere — 2² (from 12), 3² (from 18), and 5¹ (from 30) — gives 2² × 3² × 5 = 4 × 9 × 5 = 180. You can check this with the pairwise shortcut too: GCD(12, 18) = 6, so LCM(12, 18) = (12 × 18) ÷ 6 = 36; then GCD(36, 30) = 6, so LCM(36, 30) = (36 × 30) ÷ 6 = 180, matching the factorization method. Enter the same three numbers above to see this exact breakdown.

Common Mistakes

  • Mixing up LCM and GCD — the LCM is always the larger of the two results (or equal to it), never smaller than the biggest input number.
  • Missing the shortcut case: if one number is already a multiple of another (like 6 and 18), the LCM is simply the larger number — no calculation needed.
  • Entering decimals, zero, or negative numbers — the LCM is defined only for positive whole numbers, so the calculator will reject anything else.
  • Assuming adding another number to the list always makes the LCM bigger by a lot — it only grows when that number contributes a prime factor (or a higher power of one) that wasn't already covered by the rest of the list.

Frequently Asked Questions

What's the difference between LCM and GCD?
The greatest common divisor (GCD) is the largest number that divides evenly into all of your numbers, while the least common multiple (LCM) is the smallest number that all of your numbers divide evenly into. For 12 and 18, the GCD is 6 (the biggest shared factor) and the LCM is 36 (the smallest shared multiple) — they're related by LCM(a, b) = (a × b) ÷ GCD(a, b).
How do I find the LCM of three or more numbers?
Find the LCM of the first two numbers, then find the LCM of that result and the next number, and repeat until every number in the list has been included. Equivalently, prime-factorize every number and multiply together the highest power of each prime that appears anywhere in the list — this calculator shows both the running pairwise result and the full prime-factorization breakdown.
Why is the LCM used to add fractions with different denominators?
To add fractions like 1/12 + 1/18, both fractions need a common denominator — and the smallest one that works is the LCM of 12 and 18, which is 36. Using the LCM (rather than just multiplying the denominators together, 12 × 18 = 216) keeps the numbers as small as possible and avoids extra simplification at the end.
What is the LCM of two numbers with no common factors?
If two numbers are coprime (their GCD is 1), their LCM is simply their product. For example, LCM(7, 9) = 63, because 7 and 9 share no prime factors, so the smallest number divisible by both is 7 × 9 itself.

Related calculators: GCD Calculator, Greatest Common Factor Calculator, Prime Factorization Calculator, and Fraction Simplifier.

Practical Guide for LCM Calculator - Least Common Multiple Calculator

LCM Calculator - Least Common Multiple Calculator is most useful when the inputs reflect the situation you are actually planning around, not a best-case estimate. Treat the result as a decision aid: it gives you a structured way to compare assumptions, spot outliers, and decide what to verify next. For Math work, the most important review lens is formula choice, units, rounding, weighting, and the exact meaning of each input.

Start with a baseline run using values you can defend. Then change one assumption at a time and watch which output moves the most. If one input dominates the result, spend your verification time there first. If several inputs have similar influence, use a conservative scenario and an optimistic scenario to create a practical range instead of relying on a single exact number.

Before acting on the result, verify the result with a manual calculation or a second method when the output affects grades, budgets, or engineering work. This is especially important when the calculator supports a purchase, project plan, performance target, or operational decision. The calculator can make the math consistent, but the quality of the conclusion still depends on current data, clear units, and assumptions that match your real constraints.

When the output looks surprising, slow down and inspect each input in order. A small change in one high-leverage field can move the final number more than several low-leverage fields combined. For LCM Calculator - Least Common Multiple Calculator, that means you should first confirm the value with the greatest scale, then confirm the value with the greatest uncertainty, then rerun the calculator with conservative and optimistic assumptions. This sequence turns the calculator from a single answer into a practical decision range.

Review Checklist

  • Confirm every input uses the unit and time period requested by the calculator.
  • Run a low, expected, and high scenario so the answer has a useful range.
  • Check whether rounding or a missing decimal place changes the decision.
  • Update the calculation after each new value is known or whenever the formula structure changes.