Since 2010 · Powering 2M+ tool runs every month
Since 2010
Add to Chrome

My Toolbox

Automatic Mode

No saved tools yet.

Go Premium
Related tools
Common Factor CalculatorGreatest Common Factor CalculatorFactor CalculatorPrime Factor CalculatorPrime Factorization CalculatorDivisibility Test CalculatorIs it a Prime Number?
Home Page > Math > Basic Math Operations

Least Common Multiple (LCM) Calculator

Calculate the LCM of two or more numbers with interactive prime factorization visualization, step-by-step solutions, and multiple calculation methods.

Free to useNo sign-up requiredUpdated Jan 2026
Least Common Multiple CalculatorTry it now — free ▼

Embed Least Common Multiple Calculator Widget

Video Guide: Understanding and Calculating the Least Common Multiple (LCM)

About Least Common Multiple Calculator

The Least Common Multiple (LCM) Calculator finds the smallest positive integer that is divisible by all your input numbers. With interactive prime factorization visualization, step-by-step solutions, and multiple calculation methods, this tool helps you understand the concept deeply while getting accurate results instantly.

What is the Least Common Multiple (LCM)?

The Least Common Multiple, often abbreviated as LCM, is the smallest positive integer that is a multiple of two or more given numbers. In other words, it is the smallest number that all the given numbers divide into evenly.

For example, the LCM of 4 and 6 is 12 because:

  • Multiples of 4: 4, 8, 12, 16, 20, 24...
  • Multiples of 6: 6, 12, 18, 24, 30...
  • Common multiples: 12, 24, 36... The smallest is 12

LCM Formulas

Using Prime Factorization

Prime Factorization Method
$$\text{LCM}(a, b) = \prod p_i^{\max(e_i, f_i)}$$

Where $p_i$ are the prime factors and $e_i$, $f_i$ are their powers in each number.

Using GCD (Greatest Common Divisor)

LCM-GCD Relationship
$$\text{LCM}(a, b) = \frac{|a \times b|}{\text{GCD}(a, b)}$$

This formula leverages the relationship that LCM × GCD = a × b.

Methods to Calculate LCM

Prime Factorization Method

  1. Find the prime factorization of each number
  2. List all unique prime factors
  3. Take the highest power of each prime
  4. Multiply all prime powers together

Listing Multiples Method

  1. List the multiples of each number
  2. Identify common multiples
  3. Select the smallest common multiple

Division Method (Ladder)

  1. Write numbers in a row
  2. Divide by smallest prime that divides at least one
  3. Repeat until all quotients are 1
  4. Multiply all divisors used

Using GCD Method

  1. Find GCD of the numbers using Euclidean algorithm
  2. Apply formula: LCM = (a × b) / GCD
  3. For multiple numbers, calculate pairwise

Why is LCM Important?

  • Adding/Subtracting Fractions: LCM helps find a common denominator when working with fractions that have different denominators
  • Scheduling Problems: Determine when recurring events with different periods will coincide
  • Gear Ratios: Calculate when gears with different tooth counts will realign
  • Music Theory: Find common time signatures and rhythmic patterns
  • Number Theory: Foundation for understanding divisibility and modular arithmetic

LCM vs GCD: Understanding the Difference

  • LCM (Least Common Multiple): The smallest number that all given numbers divide into
  • GCD (Greatest Common Divisor): The largest number that divides all given numbers
  • Relationship: LCM(a,b) × GCD(a,b) = a × b

You can also use our Greatest Common Factor Calculator to find the GCD.

How to Use This Calculator

  1. Enter Numbers: Type two or more positive integers separated by commas or spaces
  2. Use Examples: Click any example button to try common number combinations
  3. Calculate: Click "Calculate LCM" to see the result
  4. Review Steps: Explore the detailed prime factorization and step-by-step solution
  5. Understand Visually: See how prime factors combine with the interactive visualization

Frequently Asked Questions

What is the Least Common Multiple (LCM)?

The Least Common Multiple (LCM) is the smallest positive integer that is divisible by all the given numbers. For example, the LCM of 4 and 6 is 12, because 12 is the smallest number divisible by both 4 and 6.

How do you calculate LCM using prime factorization?

To find LCM using prime factorization: 1) Find the prime factorization of each number, 2) Identify all unique prime factors, 3) For each prime factor, take the highest power that appears in any number, 4) Multiply these prime powers together to get the LCM.

What is the relationship between LCM and GCD?

For two numbers a and b, LCM(a,b) × GCD(a,b) = a × b. This means LCM = (a × b) / GCD. This relationship provides an efficient way to calculate LCM when you know the GCD.

Can the LCM be one of the input numbers?

Yes, if one number is a multiple of another, the larger number is the LCM. For example, LCM(3, 9) = 9 because 9 is already a multiple of 3.

Related Calculators

Further Reading

Reference this content, page, or tool as:

"Least Common Multiple Calculator" at https://MiniWebtool.com/least-common-multiple-calculator/ from MiniWebtool, https://MiniWebtool.com/

by miniwebtool team. Updated: Jan 13, 2026

You can also try our AI Math Solver GPT to solve your math problems through natural language question and answer.

Basic Math Operations:

Math SolverWhat would you like to solve?

Math Solver

Try
Browse expression examples

Choose an example to fill the input, edit its numbers, then Solve. log uses base 10; use ln for the natural logarithm.

Numbers & factors

Fractions & division

Powers, roots & logs

Algebra & equations

Calculus

Geometry & trigonometry

Top & Updated:

Multiple Fraction CalculatorMöbius Function CalculatorMultiplication CalculatorView all →
Home Page > Math > Basic Math Operations > Least Common Multiple Calculator