LCM Calculator
Find the least common multiple (LCM) of two or more numbers instantly. Get the exact answer and see how to calculate it using prime factorization, listing multiples, the ladder method, or the GCF formula.
LCM calculator inputs
Separate 2–20 integers with commas, spaces, or new lines. Do not use thousands separators. Results update as you type.
Default LCM(12, 18, 30) = 180. Browser-only BigInt math. Integers are not uploaded to EverydayTools.
Advertisement
What Is the Least Common Multiple (LCM)?
The least common multiple of two or more positive integers is the smallest positive number divisible by every number in the set. LCM(4, 6) = 12 because 12 is the first number that both 4 and 6 divide evenly.
How to Use the LCM Calculator
- Enter two or more integers, separated by commas, spaces, or new lines.
- Read the LCM and GCF as you type, or press Calculate LCM.
- Open a method tab to see prime factorization, listing, the ladder, or the GCF formula.
- Copy the result or a share link. Clear returns to 12, 18, 30.
How to Find the LCM Step by Step
Using Prime Factorization
Factor each number. Keep the highest exponent of each prime. For 12, 18, and 30: 12 = 2^2 × 3, 18 = 2 × 3^2, 30 = 2 × 3 × 5. Highest powers: 2^2 × 3^2 × 5 = 180.
By Listing Multiples
List multiples of 4 (4, 8, 12, …) and of 6 (6, 12, …). The first shared value is 12. The calculator stops listing when the LCM would be larger than 10,000 and still reports the exact GCF-based answer.
Using the Ladder or Division Method
Write the numbers in a row. Divide by a prime that hits at least two of them. Bring undivided numbers down. When no such prime remains, multiply the side primes and the last row (skip 1). For 12, 18, 30 that product is 180.
Using the GCF Formula
For two nonzero integers, LCM(a, b) = |a / GCF(a, b) × b|. LCM(12, 18) = 12 / 6 × 18 = 36. For three or more numbers, reduce pairwise: LCM(6, 8, 10) = LCM(LCM(6, 8), 10) = 120.
LCM Formula
LCM(a, b) = |a × b| / GCF(a, b) applies to two nonzero integers. a and b are the inputs; GCF is their greatest common factor. The calculator divides before it multiplies so the intermediate value stays exact. For a list, LCM(a, b, c) = LCM(LCM(a, b), c). The two-number product identity is not applied to an entire list at once.
LCM Examples and Answers
| Inputs | LCM | Note |
|---|---|---|
| 4, 6 | 12 | First shared multiple of 4 and 6 |
| 8, 12 | 24 | Also 2³ × 3 |
| 12, 18 | 36 | LCD for 1/12 + 1/18 |
| 6, 8, 10 | 120 | Pairwise: LCM(6,8)=24, then LCM(24,10) |
| 12, 18, 30 | 180 | 2² × 3² × 5 |
| 16, 32 | 32 | LCM is the larger power of 2 |
| 7, 11 | 77 | Coprime, so LCM is the product |
| 24, 36 | 72 | GCF 12; 24/12 × 36 = 72 |
LCM for Fractions and Common Denominators
The LCM of the denominators is the lowest common denominator for those denominators. 1/4 + 1/6 uses LCM(4, 6) = 12, so 3/12 + 2/12 = 5/12. Reducing the fractions first can shrink the LCD. Finish the arithmetic on the Fraction Calculator.
LCM vs. GCF
| LCM | GCF | |
|---|---|---|
| Meaning | Smallest common multiple | Greatest common factor |
| Typical use | Common denominators, repeating cycles | Simplifying fractions, grouping |
| 12 and 18 | 36 | 6 |
For nonzero a and b, GCF × LCM = |a × b|. Compute the factor on the GCF Calculator.
When Do You Use LCM?
- Adding or comparing fractions with different denominators.
- Finding when two repeating schedules next line up (every 15 and 20 minutes → 60 minutes).
- School exercises that ask for the smallest shared multiple.
- Comparing repeating numerical cycles, such as two clocks or two list lengths.
Common LCM Mistakes
- Multiplying the numbers and skipping shared factors (LCM(6, 8) is 24, not 48).
- Confusing LCM with GCF.
- Using the lowest prime powers instead of the highest.
- Stopping after two numbers when a third input still does not divide the candidate.
- Treating the LCD as the sum of the fractions.
- Entering decimals in an integer-only calculator.
Frequently Asked Questions
- What is the LCM of 12 and 18?
- LCM(12, 18) = 36. GCF(12, 18) = 6, and 12 / 6 × 18 = 36.
- How do you calculate LCM step by step?
- Factor each number and keep the highest prime powers, list multiples until the first shared value, use a division ladder, or apply LCM(a, b) = |a / GCF(a, b) × b| and reduce pairwise for longer lists.
- Can I find the LCM of three or more numbers?
- Yes. This page accepts 2 to 20 integers. LCM(a, b, c) = LCM(LCM(a, b), c). LCM(12, 18, 30) = 180.
- What is the difference between LCM and GCF?
- LCM is the smallest common multiple. GCF is the greatest common factor. For 12 and 18 the LCM is 36 and the GCF is 6.
- How do I find LCM using prime factorization?
- Write each number as primes. Multiply the highest power of each prime. 12 = 2² × 3, 18 = 2 × 3² → 2² × 3² = 36.
- Is LCM the same as the lowest common denominator?
- The LCD of given denominators is their LCM. The LCD is not the sum of the fractions. 1/4 + 1/6 uses LCD 12 and equals 5/12.
- Does the order of numbers affect LCM?
- No. LCM(12, 18, 30) = LCM(30, 12, 18) = 180. Duplicates also leave the result unchanged.
- Can LCM be calculated with negative numbers?
- Yes. This page uses absolute values, so LCM(−6, 8) = 24.
- What happens when one input is zero?
- This page uses LCM(0, n) = 0 and LCM(0, 0) = 0. There is no positive common multiple of 0 and 0.
- Can LCM be calculated for very large numbers?
- Yes, within 40 digits per integer and 20 inputs. The GCF-based answer stays exact. Prime and ladder steps stop above 1 trillion; listing stops when the LCM would exceed 10,000.
Advertisement
Sources, Methodology and Limits
EverydayTools maintains this page. It was last reviewed on 13 October 2026. LCM is computed with BigInt Euclidean GCF and pairwise reduction. Prime and ladder steps are omitted above the documented size limits. Listing stops at an LCM of 10,000. This is not a computer-algebra system.