LCM Calculator

Find the Least Common Multiple (LCM) of multiple numbers easily.

What is it?

LCM (Least Common Multiple) is the smallest positive number that is a multiple of all the numbers you enter. It's commonly used to add or compare fractions with different denominators.

Formula

LCM(a, b) = (a × b) ÷ GCD(a, b)

Formula Explanation

The product of two numbers always equals their LCM multiplied by their GCD, so dividing the product by the GCD isolates the LCM — this formula extends to more than two numbers by applying it pairwise across the list.

Example Calculation

For 4 and 6: GCD = 2, so LCM = (4 × 6) ÷ 2 = 12.

How to Use

  1. Enter your numbers separated by commas (e.g. 4, 6, 8).
  2. Click Calculate LCM.
  3. View the LCM and GCD (HCF) of the numbers.

Benefits

  • Handles any number of values at once, not just pairs.
  • Computes GCD (HCF) alongside LCM in a single step.
  • Removes manual prime-factorization work.

Use Cases

  • Finding a common denominator to add or compare fractions.
  • Solving scheduling problems, like when two repeating events next coincide.
  • Simplifying ratios or step sizes in manufacturing and design.

What Your Result Means

The LCM is the smallest number that all your entered values divide into evenly. The GCD (HCF) is the largest number that divides evenly into all of them — together they describe how the numbers relate multiplicatively.

Tips

  • For fractions with different denominators, the LCM of the denominators gives you the smallest common denominator to use.
  • If all your numbers are already multiples of one of them, that number is the LCM.
  • Prime numbers have an LCM equal to their simple product, since they share no common factors.

Common Mistakes

  • Confusing LCM (smallest common multiple) with GCD (largest common divisor) — they answer opposite questions.
  • Assuming LCM of two numbers is always their product — that's only true when the GCD is 1.
  • Entering zero or negative numbers, which are not valid for LCM calculations.

FAQs

Where is LCM used in real life?

LCM is commonly used to find a common denominator when adding or comparing fractions, and to solve scheduling problems (like when two repeating events coincide).

What is the relationship between LCM and GCD?

For two numbers, LCM × GCD equals the product of the two numbers — this calculator computes both simultaneously.

Can I calculate LCM for more than two numbers?

Yes, enter as many numbers as you like, separated by commas, and the calculator finds the LCM across all of them.

What is the LCM of two prime numbers?

Since two distinct prime numbers share no common factors besides 1, their LCM is simply their product.

Why is LCM useful for adding fractions?

Using the LCM of the denominators as the common denominator keeps the numbers as small as possible, avoiding unnecessarily large intermediate values.

Only positive whole numbers are valid inputs for LCM and GCD calculations.

Last updated: July 25, 2026