Solvezi.com
Home
Tools
Blog
About
Contact
  1. Home
  2. Number Theory
  3. LCM Calculator

LCM Calculator

Calculate the Least Common Multiple (LCM) of two or more numbers.

Related Tools

More in Number Theory

GCF CalculatorFactor CalculatorBig Number CalculatorPrime Number CheckerPrime Factorization CalculatorCo-Prime CheckerTwin Prime CheckerPerfect Number CheckerArmstrong Number CalculatorPalindrome Number CheckerHarshad (Niven) Number CheckerAutomorphic Number CheckerMagic Number Checker
Explore Other Categories

Share

https://www.solvezi.com/number-theory/lcm-calculator

Solvezi.com

Solve Easy
Privacy PolicyTerms
© 2026 Solvezi.com. All rights reserved.

Find the Least Common Multiple (LCM) of numbers

LCM(12, 18, 24)

Enter 2 or more positive integers separated by commas

Enter numbers and click Calculate LCM
to see the detailed solution here

What is the Least Common Multiple (LCM)?

The Least Common Multiple (LCM)is the smallest positive integer that is evenly divisible by two or more numbers. In simpler terms, it's the smallest number that appears in the multiplication tables of all the given numbers.

For example, the LCM of 4 and 6 is 12 because 12 is the smallest number that both 4 and 6 divide into evenly (12 ÷ 4 = 3, 12 ÷ 6 = 2).

Brute Force Method

List multiples of each number until you find a common one.

LCM(18, 26):
18: 18, 36, 54, 72, 90, 108, 126, 144, 162, 180, 198, 216, 234
26: 52, 78, 104, 130, 156, 182, 208, 234
LCM = 234

Prime Factorization

Break each number into primes, then multiply highest powers.

21 = 3 × 7
14 = 2 × 7
38 = 2 × 19
LCM = 2 × 3 × 7 × 19
LCM = 798

GCD Formula Method

LCM(a, b) = (a × b) ÷ GCD(a, b)

GCD(21, 14) = 7
LCM = (21 × 14) ÷ 7
LCM = 294 ÷ 7 = 42
LCM = 42

Step-by-Step Examples

Example 1
LCM(12, 18, 24)

1Prime factorization:

12 = 2² × 3
18 = 2 × 3²
24 = 2³ × 3

2Highest powers:

2³ × 3²

3Calculate:

8 × 9 = 72

LCM:
72
Example 2
LCM(4, 5, 10)

1Prime factorization:

4 = 2²
5 = 5
10 = 2 × 5

2Highest powers:

2² × 5

3Calculate:

4 × 5 = 20

LCM:
20
Example 3
LCM(15, 20)

1Prime factorization:

15 = 3 × 5
20 = 2² × 5

2Highest powers:

2² × 3 × 5

3Calculate:

4 × 3 × 5 = 60

Using GCD formula: (15 × 20) ÷ 5 = 60

LCM:
60
Example 4
LCM(6, 8, 12)

1Prime factorization:

6 = 2 × 3
8 = 2³
12 = 2² × 3

2Highest powers:

2³ × 3

3Calculate:

8 × 3 = 24

LCM:
24

Real-World Applications of LCM

Scheduling & Timing

Buses every 12, 18, 24 min align every 72 min (LCM).

Adding Fractions

LCM of denominators gives a common denominator for addition.

Music & Rhythms

Musical notes align at the LCM of their time signatures.

Manufacturing

Machine maintenance cycles align at the LCM of intervals.

Frequently Asked Questions

LCM vs. GCF (GCD) Comparison

Comparison table between LCM and GCF (GCD)
AspectLCM (Least Common Multiple)GCF (Greatest Common Factor)
DefinitionSmallest number divisible by all given numbersLargest number that divides all given numbers
FormulaLCM(a,b) = (a × b) ÷ GCF(a,b)GCF(a,b) = (a × b) ÷ LCM(a,b)
Example (12, 18)LCM = 36GCF = 6
Typical UseFinding common denominators for fractionsSimplifying fractions, factoring expressions