🧮

LCM Calculator – Least Common Multiple (Two or More Numbers)

LCM Calculator

Enter positive integers separated by commas.

The Least Common Multiple (LCM) Calculator finds the smallest positive integer that is divisible by each of the given numbers. LCM is used extensively in arithmetic, fractions (finding common denominators), scheduling problems, and number theory. This tool supports two or more numbers and shows the complete prime factorisation method step by step.

How to Find LCM – Three Methods

1. Listing multiples: Write multiples of each number until a common multiple appears. Example: LCM(4,6) → multiples of 4: 4,8,12,16…; of 6: 6,12,18… → LCM = 12.

2. Prime factorisation (used by our calculator): Factor each number into primes, then take the highest power of each prime.

3. GCD formula: LCM(a,b) = |a × b| / GCD(a,b). This is fastest for two numbers.

Real‑World Applications of LCM

  • Fraction addition/subtraction: Finding a common denominator.
  • Scheduling: When two events repeat every m and n days, the next time they occur together is LCM(m,n).
  • Gear ratios and cycles: Determining when aligned cycles repeat.
  • Number theory: Solving Diophantine equations and modular arithmetic.
Understanding the Relationship Between LCM and GCD

For two positive integers a and b, the product of their LCM and GCD equals the product of the numbers themselves: LCM(a,b) × GCD(a,b) = a × b. This identity is extremely useful for computing LCM when GCD is known. For more than two numbers, the property generalises but is more complex; our calculator uses prime factorisation to ensure correctness.

Common LCM Pairs Reference Table

NumbersLCM
2, 36
4, 612
6, 918
8, 1224
10, 1530
12, 1836
15, 2060
24, 3672

Prime Factorisation Method Explained with an Example

To find LCM(12, 18, 24):
– Prime factors: 12 = 2² × 3¹; 18 = 2¹ × 3²; 24 = 2³ × 3¹.
– Take the highest power of each prime: 2³ (from 24) and 3² (from 18).
– Multiply: 2³ × 3² = 8 × 9 = 72. So LCM = 72.
Our calculator does this automatically and shows the intermediate factorisations.

Common Mistakes When Calculating LCM

  • Using GCD formula incorrectly: Forgetting that LCM(a,b) = |a×b| / GCD(a,b) works only for two numbers at a time.
  • Omitting a prime factor: Not taking the highest exponent leads to an under‑estimate.
  • Including zero or negative numbers: LCM is defined for positive integers. Our calculator rejects non‑positive inputs.
  • Confusing LCM with GCD: The LCM is always greater than or equal to each number; the GCD is smaller or equal.

Use this LCM calculator for homework, classroom exercises, or any real‑world problem that requires finding the least common multiple. The step‑by‑step prime factorisation output builds confidence and reinforces the mathematical method.

Step‑by‑Step Manual Example

Find LCM(4, 6, 8):

Prime factors: 4 = 2²; 6 = 2¹ × 3¹; 8 = 2³.

Highest powers: 2³, 3¹.

LCM = 2³ × 3 = 8 × 3 = 24.

Check: 24 ÷ 4 = 6, 24 ÷ 6 = 4, 24 ÷ 8 = 3. ✓

Frequently Asked Questions about LCM

What is LCM (Least Common Multiple)?
The LCM of two or more numbers is the smallest positive integer that is divisible by each of the numbers. For example, LCM(4,6) = 12 because 12 is the smallest number that 4 and 6 both divide.
How do you calculate LCM?
Common methods: 1) Listing multiples, 2) Prime factorisation, 3) Using the formula LCM(a,b) = |a×b| / GCD(a,b). Our calculator uses prime factorisation and shows every step.
What is the relationship between LCM and GCD?
For two numbers, LCM(a,b) × GCD(a,b) = a × b. This relationship helps compute LCM quickly when GCD is known.
Can I calculate LCM for more than two numbers?
Yes. Enter up to 10 numbers separated by commas. The calculator will find the LCM of all of them.