lcmlab. A little clarity for your math.
LESS GUESSWORK. MORE AHA.

LCM Calculator
with Steps

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.

✓ Free step-by-step solutions✓ No sign-up✓ Made for learning
01 / YOUR NUMBERSLet's work it out

Enter 2–20 whole numbers, separated by commas or spaces.
Up to 1 billion each. Commas separate numbers, not thousands.

Try one:
Exact math. Clear steps. A little less homework stress.
02 / YOUR ANSWERReady to calculate
LEAST COMMON MULTIPLE
180

LCM(12, 18, 30) = 180

The smallest positive number all three numbers divide into evenly.
GREATEST COMMON FACTOR6
THE QUICK CHECK180 ÷ 12 = 15 ✓
THE ANSWER IS JUST THE START

Here's how we got there.

Different methods. Same aha moment.

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.

Try this example or learn all four methods.

A QUICK REFRESHER

What does LCM
actually mean?

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 ↗
LET'S TAKE 4 AND 6

Multiples of 4 4   8   12   16   20

Multiples of 6 6   12   18   24   30

First meeting point? 12. That's the LCM.

How the calculator works

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.

Inputs and special cases

Mathematical background: OpenStax, Prealgebra 2e: prime factorization and LCM.

MAKE IT CLICK

A little practice goes a long way.

Build your confidence with a fresh set of LCM questions.

GOOD QUESTIONS

A few things you might be wondering.

How do I find the LCM of three or more numbers?

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.

What's the difference between LCM and GCF?

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.

Can I solve a question from a photo?

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.

Can I use this for fractions?

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.

What happens if I enter zero?

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.

Your numbers stay yours.

Calculations and image recognition run in your browser. This app does not store images, numbers, or a calculation history on a server. Recognition software and language data are downloaded from jsDelivr. Fonts load through Google Fonts. These providers receive standard connection information such as your IP address. Shared links include the numbers in the URL. Hosting may process standard access logs. No advertising or analytics scripts are installed.