Least Common Multiple Calculator

Enter positive integers
Least Common Multiple (LCM) Result Greatest Common Factor (GCF) Result

Least Common Multiple Calculator

The least common multiple calculator can compute the least common multiple (LCM) and the greatest common factor (GCF) of multiple positive integers at the same time.

What Is the Greatest Common Divisor (GCD)?

The greatest common divisor, also called the greatest common factor (GCF), is the largest of the common divisors (factors) shared by two or more integers. For example, the common divisors of 12 and 18 are 1, 2, 3, and 6, of which the largest is 6, so the GCD of 12 and 18 is 6.

What Is the Least Common Multiple (LCM)?

The least common multiple is the smallest multiple shared by two or more integers. For example, the multiples of 4 and 6 are:

  • Multiples of 4: 4, 8, 12, 16, 20, ...
  • Multiples of 6: 6, 12, 18, 24, ...

Of these, the common multiples are 12, 24, ..., and the least common multiple is 12.

How to Use the LCM Calculator?

  1. Enter numbers: type the numbers you want to compute in the positive-integer input box. You can enter multiple numbers separated by spaces, commas, or line breaks. Examples: 12 18; 12,15,25,35; 8\n12\n20 (\n represents a line break).
  2. Run the calculation: click the "Calculate" button or press Enter. The LCM and GCF are displayed in the areas below.
  3. Use an example: click the "Example" button to auto-fill a random set of sample numbers.
  4. Reset: click the "Reset" button to clear all inputs and results. The input box is focused automatically for entering new data.