LCM Calculator (Least Common Multiple)

Find the least common multiple of two or more numbers using prime factorization, with the GCF and a step-by-step table. The LCM is the smallest positive number that every input divides. Example: with numbers 12 18 30, the result is Least common multiple (LCM) = 180; Prime-power form = 2^2 × 3^2 × 5.

Last updated · By · Runs in your browser, nothing is uploaded

Result

Step-by-Step Solution

Enter your values above to see the full working.

How do you use the LCM Calculator (Least Common Multiple)?

Enter two or more positive whole numbers. The calculator factors each into primes, takes every prime at its highest power and multiplies them to give the least common multiple. It also reports the GCF and verifies the result.

What formula does the LCM Calculator (Least Common Multiple) use?

The LCM is the smallest positive number that every input divides. With prime factorizations, LCM = ∏ p^(max exponent) over all primes appearing. For two numbers, LCM(a, b) = a × b ÷ GCD(a, b), which is how it is computed pairwise for longer lists.

Worked example: Numbers 12 18 30

For 12, 18 and 30: 12 = 2² × 3, 18 = 2 × 3² and 30 = 2 × 3 × 5. The highest powers are 2², 3² and 5, so the LCM is 4 × 9 × 5 = 180.

With the default values the calculator returns Least common multiple (LCM) = 180; Prime-power form = 2^2 × 3^2 × 5; Greatest common factor = 6; Numbers = 12, 18, 30.

Where Is This Calculation Used?

The LCM is the common denominator when adding fractions, and it answers repeating-cycle questions: if one bus comes every 12 minutes, another every 18 and a third every 30, all three meet again after 180 minutes.

What are the most common mistakes with the LCM Calculator (Least Common Multiple)?

  • Multiplying all the numbers instead of using the least common multiple.
  • Using the lowest exponent (that gives the GCF, not the LCM).
  • Forgetting a prime that appears in only one of the numbers.

What Is the Tested Example for the Default Values?

This example is computed by the same code that powers the calculator above, so you can compare it with your own numbers or a textbook answer.

Input: Numbers12 18 30
Least common multiple (LCM)180
Prime-power form2^2 × 3^2 × 5
Greatest common factor6
Numbers12, 18, 30

Where Can You Verify These Formulas?

The definitions and formulas on this page follow standard references. Check them against these sources:

Built and maintained by S. Dilshan. Found a mistake? Email [email protected] with the page address.

Frequently Asked Questions

How do you find the LCM of three numbers?

Factor each number, take every prime at its highest exponent and multiply. Alternatively combine pairwise with LCM(a, b) = a × b ÷ GCD(a, b).

What is the LCM of two coprime numbers?

Their product. LCM(8, 15) = 120.

What is the relationship between LCM and GCF?

For two numbers, GCF × LCM equals the product of the numbers. This does not extend directly to three or more numbers.