Home
Number 1
Number 2
Number 3
Display the prime factorization of each number.
Display the Greatest Common Divisor (GCD) as well.
Display the step-by-step calculation.

What Is the Least Common Multiple (LCM)?

The Least Common Multiple (LCM) of two or more integers is the smallest positive integer that is divisible by all of the given numbers. It is also known as the lowest common denominator when working with fractions. The LCM is used in many areas of mathematics, including fraction arithmetic, number theory, and solving equations.

There are several ways to find the LCM:

  • Prime Factorization Method: Find the prime factors of each number, then multiply the highest power of each prime factor together.
  • Listing Multiples Method: List the multiples of each number until a common multiple is found.
  • GCD Method: Use the relationship: LCM(a, b) = (a × b) ÷ GCD(a, b).

This calculator uses the prime factorization method and displays a complete step-by-step breakdown of the calculation.

How Does the LCM Calculator Work?

The calculator follows these steps:

Step 1: For each input number, find its prime factorization.

Step 2: Identify all prime factors that appear in any of the numbers.

Step 3: For each prime factor, take the highest exponent that appears across all numbers.

Step 4: Multiply these prime factors together to get the LCM.

Step 5: Optionally, calculate the GCD using the relationship: LCM × GCD = Product of all numbers.

For example, to find the LCM of 12, 18, and 24:

  • Prime factorization: 12 = 2² × 3, 18 = 2 × 3², 24 = 2³ × 3
  • Highest powers: 2³ (from 24) and 3² (from 18)
  • LCM = 2³ × 3² = 8 × 9 = 72

Why Use This LCM Calculator?

  • Multiple Numbers: Calculate LCM for 2 or more numbers (up to 10).
  • Prime Factorization: See the prime factorization of each number.
  • Step-by-Step: Follow the calculation process step by step.
  • GCD Included: Optionally see the Greatest Common Divisor as well.
  • Free & Private: No registration, no data storage.

Applications of LCM

  • Fraction Arithmetic: Finding the lowest common denominator for adding and subtracting fractions.
  • Number Theory: Understanding the structure and relationships between numbers.
  • Algebra: Solving equations and simplifying expressions.
  • Real-World: Scheduling events that repeat at different intervals.
  • Computer Science: Algorithm design and optimization problems.

❓ LCM Calculator FAQ

What is the Least Common Multiple (LCM)?

The Least Common Multiple (LCM) of two or more integers is the smallest positive integer that is divisible by all of the given numbers. For example, the LCM of 4 and 6 is 12.

How do I find the LCM using prime factorization?

1. Find the prime factorization of each number. 2. Identify all prime factors. 3. For each prime factor, take the highest exponent that appears. 4. Multiply these prime factors together. The result is the LCM.

What is the difference between LCM and GCD?

LCM (Least Common Multiple) is the smallest number divisible by all given numbers. GCD (Greatest Common Divisor) is the largest number that divides all given numbers. They are related: LCM(a,b) × GCD(a,b) = a × b.

How do I calculate LCM using the GCD method?

For two numbers: LCM(a,b) = (a × b) ÷ GCD(a,b). For more than two numbers, calculate LCM iteratively: LCM(a,b,c) = LCM(LCM(a,b), c).

What is the LCM of two prime numbers?

The LCM of two distinct prime numbers is their product. For example, LCM(3, 5) = 3 × 5 = 15. If the numbers are the same prime (e.g., 3 and 3), the LCM is that prime (3).

What is the LCM of 12 and 18?

12 = 2² × 3, 18 = 2 × 3². LCM = 2² × 3² = 4 × 9 = 36. The LCM of 12 and 18 is 36.

What is the LCM of 4, 5, and 6?

4 = 2², 5 = 5, 6 = 2 × 3. LCM = 2² × 3 × 5 = 4 × 3 × 5 = 60. The LCM of 4, 5, and 6 is 60.

Can the LCM be equal to one of the numbers?

Yes. If one number is a multiple of all the other numbers, then the LCM is that number. For example, LCM(3, 6, 12) = 12.

What is the LCM of 1 and any number?

The LCM of 1 and any number n is n. Since 1 divides every number, the smallest common multiple is always the other number.

How do I find the LCM of large numbers?

Use the prime factorization method or the GCD method. For very large numbers, you can use this calculator, which handles numbers up to 10⁹ efficiently.

What is the relationship between LCM and GCF?

For any two numbers a and b: LCM(a,b) × GCF(a,b) = a × b. This relationship is useful for finding one value if the other is known.

How is LCM used in fractions?

The LCM is used to find the lowest common denominator (LCD) when adding or subtracting fractions. The LCD is the LCM of the denominators.

What is the LCM of 0 and any number?

LCM is defined for positive integers. For 0 and any positive integer n, the LCM is 0 in some definitions, but typically LCM is considered only for positive integers greater than 0.

How many numbers can I input?

You can input up to 10 numbers. Simply click the "Add Number" button to add more fields.

What is the maximum value this calculator can handle?

The calculator can handle integers up to 10⁹ (1,000,000,000). For larger numbers, JavaScript's number precision may affect the results.

Does this calculator show the prime factorization?

Yes. When you enable the "Show Prime Factorization" option, the calculator displays the prime factorization of each input number and the LCM's prime factorization.

What is the difference between LCM and LCD?

LCM (Least Common Multiple) and LCD (Least Common Denominator) are essentially the same concept. LCD is specifically the LCM of the denominators of fractions, used to combine fractions.

How do I calculate LCM using the listing method?

List the multiples of each number until a common multiple is found. For example, multiples of 4: 4, 8, 12, 16, 20, 24... Multiples of 6: 6, 12, 18, 24... The first common multiple is 12, which is the LCM.

Is this calculator free to use?

Yes, this LCM calculator is completely free to use. No registration or personal data storage is required. All calculations are performed in your browser.