LCM calculator

Calculate the least common multiple of two or more non-negative integers. Separate numbers with spaces or semicolons and get an exact integer result.

Your inputs stay herePUFFINMINT

Set your data

Set your data

Enter 2–100 non-negative integers separated by spaces or semicolons, up to 30 digits each. Exact large-integer arithmetic. GCD(0,0)=0 by convention; LCM with zero is zero.

Result

Enter your data and run the tool. Your result will appear here.

The values you enter stay on this page. Reloading or closing it clears them.

We count which tools are used most, without including entered values or file contents in the statistics. Privacy

How to use the tool

  1. Fill in these fields: Non-negative integers separated by spaces.
  2. Select “Calculate” to obtain the result.
  3. Enter 2–100 non-negative integers separated by spaces or semicolons, up to 30 digits each.
  4. Exact large-integer arithmetic.
  5. GCD(0,0)=0 by convention; LCM with zero is zero.
  6. Follow the LCM calculation for each pair.
  7. Show all steps · Copy steps

Method and principles

Formula (a ≠ 0, b ≠ 0)

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

Practical example

If events repeat every 12, 18 and 30 minutes and start together, their LCM of 180 is the number of minutes until they next coincide.

Input
  • Non-negative integers separated by spaces: 12 18 30
Result
12 × 18 6 = 36 , 36 × 30 6 = 180

Favorites