A worked LCM example
LCM of 12 and 18
12 = 2² × 3 and 18 = 2 × 3². Take the highest power of each prime: 2² × 3² = 36. Check: 36 ÷ 12 = 3 and 36 ÷ 18 = 2.
Small numbers. Common ground.
Enter 2–20 whole numbers for an exact answer and clear working. Photo input for printed questions is available in beta.
Enter 2–20 whole numbers, separated by commas or spaces.
Up to 1 billion each. Commas separate numbers, not thousands.
Drag across the image to select your question, then crop. You can also set the crop bounds below.
Compare these candidates with your image. Question labels are excluded. Select only the operands in your question, or type the numbers manually.
⌑ Processed on your device. Images aren't uploaded. First use downloads the recognition engine. For multiple questions, upload a cropped screenshot.
LCM(12, 18, 30) = 180
12 = 2² × 3 and 18 = 2 × 3². Take the highest power of each prime: 2² × 3² = 36. Check: 36 ÷ 12 = 3 and 36 ÷ 18 = 2.
The least common multiple is the smallest positive number that each of your numbers divides into evenly. Think of it as the first place their multiples meet.
Find your common ground ↗Multiples of 4 4 8 12 16 20
Multiples of 6 6 12 18 24 30
For positive whole numbers, the calculation uses LCM(a, b) = a ÷ GCF(a, b) × b. For a longer list, it combines two numbers at a time. Exact integer arithmetic preserves the full answer. You can explore the GCF and prime factors separately.
Mathematical background: OpenStax, Prealgebra 2e: prime factorization and LCM.
Build your confidence with a fresh set of LCM questions.
Factor each number into primes, then take the highest power of every prime that appears. Or calculate the LCM of the first two numbers and combine that answer with the next number, continuing through the list.
LCM is the smallest positive shared multiple. GCF is the largest positive factor shared by your numbers. GCF is also called GCD or HCF. For two positive integers, LCM × GCF equals their product.
Yes. Upload a clear image of one printed LCM question. Recognition runs in your browser. Check and edit the detected numbers before calculating. Handwriting and word problems may not be recognized reliably.
To find a least common denominator, enter the positive denominators of your fractions. For 1/4 and 1/6, enter 4 and 6: the LCD is 12. This tool does not calculate the LCM of fractional values.
This calculator uses the convention LCM(a, 0) = 0. In this case, there is no positive common multiple. Negative numbers and decimal inputs are not supported.