Education & Math

LCM Calculator

Find the least common multiple of two or more integers, with exact answers and Euclidean-algorithm steps.

01 · Set it up

Your inputs

Choose a quick value or enter your own. Example inputs are filled in to get you started.

Enter 2–20 integers; negative values use their absolute values.
02 · A little clarityEXAMPLE RESULT

Enter your measurements and calculate.

Calculated in your browser. Shared links include your entered values; only share information you intend to make public.

How to use

Enter integers separated by commas or spaces, then calculate. Read the exact LCM first and expand the steps to see each pairwise calculation. Use the GCF result to check the relationship between the two quantities.

For related tasks, try the Factoring Calculator.

Formula & how it works

LCM(a, b) = |a ÷ GCF(a, b) × b|. Apply this relation successively to more integers.

Worked examples

Example 1

For 12 and 18, GCF = 6. LCM = (12 ÷ 6) × 18 = 36.

Example 2

For 4, 6 and 10: LCM(4,6)=12, then LCM(12,10)=60.

Assumptions & practical notes

Calculations use exact integer arithmetic. Each input must be an integer of absolute value at most one billion.

A zero input makes the LCM zero by convention. Negative inputs are treated as positive magnitudes.

See our calculation methodology for unit definitions and testing practices.

References & measurement guidance

References explain the underlying mathematics. The examples and interactive calculations on this page are specific to CalcCommons.

Frequently asked questions

How is LCM different from GCF?

LCM is the smallest positive shared multiple for nonzero inputs. GCF is the largest positive shared divisor. For 12 and 18, they are 36 and 6 respectively.

Can I use this to add fractions?

Yes. The LCM of the denominators is the least common denominator. Rewrite the fractions with that denominator before adding.

Why does a zero input return zero?

We use the conventional extension LCM(a,0)=0. For positive nonzero inputs the usual smallest-positive-multiple definition applies.

Related calculators