LCM Calculator (Least Common Multiple)

Find the least common multiple (LCM) of two or more numbers using prime factorization or recursion.

An LCM calculator finds the least common multiple of two or more positive integers using the GCD relationship and prime factorization, which is essential for finding common denominators.

Enter two or more positive integers, separated by commas or spaces. Click Calculate to find their least common multiple (LCM). The result uses the GCD relationship and is useful for finding common denominators or aligning schedules.

Examples

LCM of 12 and 18

Multiples of 12: 12, 24, 36, 48... Multiples of 18: 18, 36, 54... LCM is 36.

Frequently Asked Questions

Why is LCM useful?
LCM is essential for finding a Common Denominator when adding or subtracting fractions with different denominators.
Ad Space

Quick Tips

  • Use the LCM to find a common denominator when adding or subtracting fractions.
  • Double-check your inputs — small errors in numbers lead to large errors in results.
  • For more than two numbers, the calculator chains the pairwise LCM automatically.

An LCM calculator finds the least common multiple of two or more positive integers using the GCD relationship and prime factorization, which is essential for finding common denominators.

How to Use This Calculator

Enter two or more positive integers, separated by commas or spaces. Click Calculate to find their least common multiple (LCM). The result uses the GCD relationship and is useful for finding common denominators or aligning schedules.

Understanding the Formula

LCM(a, b) = |a × b| / GCD(a, b).

Examples

LCM of 12 and 18

Multiples of 12: 12, 24, 36, 48... Multiples of 18: 18, 36, 54... LCM is 36.

Frequently Asked Questions

Why is LCM useful?

LCM is essential for finding a Common Denominator when adding or subtracting fractions with different denominators.

Assumptions & Limitations

  • Inputs must be positive integers; decimals and fractions are not supported.
  • Limited to real numbers; complex number operations are not supported.
  • The result grows quickly for many inputs — very large LCM values are displayed in full but may be unwieldy.