Math

LCM Calculator

Find the least common multiple of two or more numbers. Shows prime factorization method step by step.

Quick Answer

The LCM is the smallest positive number divisible by all given numbers. LCM(12, 18) = 36. Find it by taking the highest power of each prime factor across all numbers.

Enter Numbers

Examples:

Results

LCM(12, 18) =

36

Prime Factorization Method

12 = 2^2 × 3

18 = 2 × 3^2

Take the highest power of each prime factor, then multiply:

LCM = 36

About This Tool

The LCM Calculator finds the least common multiple of two or more positive integers. The LCM is the smallest positive number that is evenly divisible by all the input numbers. It is a fundamental concept in arithmetic, algebra, and number theory with applications in scheduling, fractions, and engineering.

How the Prime Factorization Method Works

Break each number into its prime factorization. Then take the highest power of each prime that appears in any of the factorizations and multiply them together. For example, 12 = 2^2 × 3 and 18 = 2 × 3^2. The highest power of 2 is 2^2 and the highest power of 3 is 3^2, so LCM = 4 × 9 = 36.

LCM and GCF Relationship

For two numbers a and b: LCM(a,b) × GCF(a,b) = a × b. This relationship provides an efficient way to calculate LCM when you already know the GCF. The calculator uses this property internally via the Euclidean algorithm for fast computation.

Working with Fractions

The most common use of LCM in everyday math is finding a common denominator when adding or subtracting fractions. To add 1/4 + 1/6, find LCM(4,6) = 12, then convert: 3/12 + 2/12 = 5/12. The LCM gives you the least common denominator, keeping numbers as small as possible.

Scheduling Applications

LCM solves scheduling overlap problems. If Bus A comes every 12 minutes and Bus B every 18 minutes, they arrive together every LCM(12,18) = 36 minutes. The same logic applies to shift schedules, maintenance cycles, and event planning.

Frequently Asked Questions

What is the LCM of two numbers?
The LCM (Least Common Multiple) is the smallest positive number that both numbers divide into evenly. For example, LCM(4,6) = 12 because 12 is the smallest number divisible by both 4 and 6.
How do I find the LCM of more than two numbers?
Find the LCM of the first two numbers, then find the LCM of that result with the third number, and so on. LCM(4,6,8) = LCM(LCM(4,6), 8) = LCM(12, 8) = 24.
What is the relationship between LCM and GCF?
For two numbers a and b: LCM(a,b) = (a × b) / GCF(a,b). This formula provides a quick way to calculate LCM if you know the GCF.
When is LCM equal to the product of the two numbers?
LCM(a,b) = a × b when the two numbers share no common factors (their GCF is 1). For example, LCM(7,13) = 91 = 7 × 13 because 7 and 13 are coprime.
What is the LCM used for in real life?
Finding common denominators for fractions, scheduling recurring events, synchronizing cycles, gear ratios in engineering, and signal processing in electronics.

Was this tool helpful?