Skip to main content

LCM Calculator

  • Runs in your browser: what you type is not uploaded
  • Free, no sign-up
  • Formula explained below

About LCM Calculator

The LCM Calculator finds the least common multiple of a list of whole numbers — the smallest positive number that every value divides into evenly. It handles two or more numbers at once and also shows their greatest common factor.

The LCM is essential for adding or comparing fractions, scheduling repeating events, and any problem where cycles need to line up.

Formula

lcm(a, b) = |a · b| ⁄ gcd(a, b)
  • a, b — two whole numbers
  • gcd(a, b) — their greatest common divisor

For more than two numbers, the LCM is built up pairwise: lcm(a, b, c) = lcm(lcm(a, b), c).

How to use the LCM Calculator

  1. Type two or more whole numbers, separated by commas, spaces or new lines.
  2. The least common multiple appears instantly.
  3. The greatest common factor is shown alongside it.
  4. Decimals and zeros are flagged, since the LCM needs non-zero integers.

Good to know

  • The LCM of two numbers is never smaller than the larger of the two.
  • If the numbers share no common factor, their LCM is simply their product.
  • LCM × GCF equals the product of the two numbers (for a pair of numbers).

Frequently asked questions about the LCM Calculator

What is the least common multiple?

The smallest positive whole number that each of your numbers divides into with no remainder.

How is the LCM used with fractions?

To add or subtract fractions you convert them to a common denominator, which is the LCM of the original denominators.

Why must the numbers be whole?

Multiples are defined for integers. Decimals have no meaningful least common multiple.

What is the LCM of two coprime numbers?

If two numbers share no common factor other than 1, their LCM is just their product.