LCM Calculator
The smallest number that every input divides into — worked out by prime factorization, with a listing check you can verify by eye.
2 numbers recognised
Two to four whole numbers between 1 and 100,000.
12 is the first number that appears in the times table of every input — found by taking each prime at its highest needed power.
Prime-factor each number
- 4
- 2²
- 6
- 2 × 3
Take each prime at its highest power
The LCM must be divisible by every number, so each prime appears as many times as its most demanding factorization requires.
Prime In 4 In 6 Use 2 2² 2 2² 3 — 3 3 Multiply those together
LCM = 2² × 3 = 12Number Its multiples up to the LCM 4 4, 8, 12 6 6, 12 Every list lands on 12 — and on nothing smaller.
Works instantly in your browser — nothing is uploaded, and the URL keeps your numbers so you can share the exact worked example.
Listing vs factorization
For small numbers, listing multiples works fine: 4 → 4, 8, 12… and 6 → 6, 12… meet at 12. For bigger numbers the lists get long fast, which is why this calculator uses prime factorization — it jumps straight to the answer by asking, for each prime, how many copies the most demanding number needs.