least common multiple calculator

LCM Calculator

Find the least common multiple for two or more integers. Enter values separated by commas, spaces, or semicolons.

Tip: You can use negative numbers too. The LCM is reported as a non-negative value.

What Is the Least Common Multiple?

The least common multiple (LCM) of two or more integers is the smallest positive number that each of those integers can divide evenly. In plain language, it is the first shared value in their multiplication tables.

For example, the LCM of 4 and 6 is 12 because: 12 is a multiple of 4 (4 × 3) and also a multiple of 6 (6 × 2), and there is no smaller positive number with that property.

How to Use This Least Common Multiple Calculator

  • Enter at least two integers in the input field.
  • Separate values with commas, spaces, or semicolons.
  • Click Calculate LCM.
  • Read the final answer and the step-by-step pairwise calculations.

This calculator uses the efficient relationship between the greatest common divisor and least common multiple: LCM(a, b) = |a × b| ÷ GCD(a, b).

Quick Examples

Example 1: LCM of 8 and 12

Multiples of 8: 8, 16, 24, 32, ...
Multiples of 12: 12, 24, 36, ...
First common multiple: 24.

Example 2: LCM of 6, 10, and 15

A fast pairwise method works well: first LCM(6, 10) = 30, then LCM(30, 15) = 30. So the least common multiple is 30.

Common Methods for Finding LCM

1) Listing Multiples

Write out multiples of each number until you find the first overlap. Great for small numbers, but inefficient for larger values.

2) Prime Factorization

Break each number into prime factors. Use each prime with the highest power found among the numbers, then multiply those factors together.

Example: 12 = 2² × 3, 18 = 2 × 3².
LCM = 2² × 3² = 36.

3) Using GCD Formula (What This Tool Uses)

For two numbers: LCM(a, b) = |a × b| / GCD(a, b). For more than two numbers, apply that formula repeatedly from left to right.

LCM vs GCD: What’s the Difference?

  • LCM is the smallest shared multiple.
  • GCD (greatest common divisor) is the largest shared factor.
  • They are connected by: LCM(a, b) × GCD(a, b) = |a × b| for non-zero integers.

Real-World Uses of LCM

  • Scheduling: finding when repeating events line up again.
  • Fractions: getting a common denominator to add or compare fractions.
  • Manufacturing cycles: syncing machine intervals.
  • Computer science: periodic task coordination and modular arithmetic workflows.

Frequently Asked Questions

Can the LCM be negative?

No. By convention, the least common multiple is non-negative (typically positive unless zero is involved).

What if one number is zero?

This calculator returns 0 when any input is 0. In many classroom definitions, LCM is discussed mainly for positive integers, but computational tools often define LCM with zero this way for practical consistency.

Can I enter more than two numbers?

Yes. Enter as many integers as you need, and the calculator will compute the combined LCM.

Use this tool anytime you need a quick and reliable least common multiple result for homework, teaching, engineering checks, or everyday math.

🔗 Related Calculators