Math calculator

Least Common Multiple Calculator

Find the earliest positive multiple shared by two nonzero integers. Formula and least common multiple remain visible in one place for independent verification.

Least Common Multiple inputs

Calculation inputs

Example from start to finish

Because gcd(18, 24) = 6, the product relationship gives lcm(18, 24) = |18 × 24| ÷ 6 = 72. Listing multiples reaches the same answer but takes longer for large values. This Least Common Multiple example can be compared with common factors.

Mathematical foundation

The least common multiple is the smallest positive number divisible by each starting integer. In prime-factor language it keeps every required prime, using the largest exponent found in either number.

Reading least common multiple correctly starts with the mathematical structure described here.

Steps without the calculator

Either compare prime factorizations or first find the GCF. Multiplying and then dividing by the GCF removes the shared factor counted twice in the raw product.

Boundaries and common traps

Zero has no positive least multiple under the usual calculator convention, so this tool asks for nonzero integers. Negative signs do not change the positive LCM. If the Least Common Multiple assumptions do not fit, consider factorization method.

Reversing the displayed steps offers a quick independent check on this least common multiple result.

Situations that fit the model

Repeated schedules meet at an LCM. A task repeating every 18 days and another repeating every 24 days coincide every 72 days, assuming they start together.

Reading sensitivity and precision

The input labels—first integer and second integer—encode the model used on this page. Write those labels beside source values when transferring a problem from paper or a spreadsheet. That small step catches transposed quantities and mixed units before they become a polished-looking least common multiple.

Inputs with many shared factors usually produce an LCM far below their raw product; coprime inputs produce the full absolute product. A one-field trial makes this relationship visible without reworking the entire example.

Choose rounding after considering how the result will be used. Comparison may need only a few significant digits, while a later multi-step calculation benefits from carrying more. In either case, retain the page's formula with the least common multiple so the underlying definition remains visible.

LCM answers a shared-multiple question, not a shared-divisor question. The difference is easy to hear in context: synchronization points to multiples, while equal grouping points to factors. The distinction determines whether this page fits the original question.

If the number moves into a spreadsheet, give its cell a least common multiple heading and retain the source values first integer and second integer nearby. Context matters more than extra displayed digits.

Answers to common follow-ups

Why divide the product by the GCF?

The product contains the shared prime factors twice; the LCM needs their highest powers only once.

Can an LCM equal one input?

Yes. If one integer divides the other, the larger absolute value is already a common multiple.

Does order affect the answer?

No. Swapping the two integers leaves the LCM unchanged.