LCM Calculator

Calculate the least common multiple of two or more positive integers.

Category: Calculators

When to use?

Use it when you need a shared cycle or common denominator, such as finding when several repeating schedules overlap or choosing a common denominator for fractions.

How to use

  • Enter two or more integers separated by commas, spaces, or line breaks.
  • The least common multiple is calculated automatically.
  • Copy or share the result.

Input Explanation

Enter at least two positive integers. Zero, negative numbers, and decimals are not valid for this calculator.

Calculation Basis

For two values, LCM(a, b) = |a × b| ÷ GCD(a, b). For more values, the same formula is applied pair by pair.

Usage Examples

  • Common denominators - Find the smallest denominator that works for several fractions.
  • Repeating schedules - Calculate when multiple cycles will meet again.

Examples

  • LCM(12, 18, 24) = 72
  • LCM(3, 4, 6) = 12, so events repeating every 3, 4, and 6 days align every 12 days
  • Denominators 8, 12, and 18 share the least common denominator 72

Cautions

  • Very large inputs can exceed JavaScript safe-integer precision.

FAQ

How is LCM different from GCD?

GCD is the greatest shared divisor, while LCM is the smallest shared multiple. For two positive integers, LCM × GCD = a × b.

Can I enter more than two numbers?

Yes. The calculator reduces the list by calculating the LCM of two numbers at a time.

Related Tools

  • GCD Calculator - Calculate the greatest common divisor of two or more positive integers using the Euclidean algorithm.
  • Fraction ↔ Decimal Converter - Convert fractions to decimals and decimals to simplified fractions.
  • Modulo Calculator - Calculate a mod b and compare mathematical modulo with the JavaScript remainder operator.
  • Percentage Calculator - Find what percentage a part is of a whole, or calculate a percentage of a value.
  • Discount Calculator - Enter the original price and discount rate to find the final price and the amount saved.
  • Ratio Calculator - Simplify the ratio of two values, or solve for the unknown in a proportion.