Skip to main content
HSCalculadora

LCM Calculator

Find the least common multiple of numbers.

Two or more whole numbers, separated by commas.

Results update as you type.

Least common multiple
—
Greatest common factor—

How it works

The least common multiple of a set of numbers is the smallest value that each of them divides into without a remainder, the first point at which their separate multiples all line up. It is the natural counterpart to the greatest common factor, and it is what you need whenever quantities repeating at different intervals have to synchronise. The lcm calculator returns it for any list of whole numbers and shows the greatest common factor beside it. For 4, 6 and 8, the smallest number every value divides into is 24, so the LCM is 24 while the GCF is 2. Rather than listing multiples of each number until a common one appears, the tool computes the LCM from the greatest common divisor: for two numbers it multiplies them and divides by their GCD, then applies the same step pairwise across the whole list. That shortcut is exact and fast, so an lcm calculator can handle large numbers that would be impractical to list out by hand. The most common use is adding or comparing fractions, where the LCM of the denominators gives the smallest common denominator; scheduling repeating events and aligning gear or cycle counts are others. Students, engineers and planners rely on this lcm calculator for the smallest shared multiple.

Formula

lcm(a, b) = |a × b| ÷ gcd(a, b), applied across all numbers

For two numbers, every common multiple is a multiple of the smallest one, and multiplying the pair double-counts exactly the factor they share. Dividing the product by their greatest common divisor removes that duplicated factor, leaving the least common multiple. Applying this pairwise across a list, combining the running LCM with each next number, extends it to any set, so 4, 6 and 8 yield 24.

Source:Standard arithmetic

We review all our tools from time to time to ensure accuracy.

Worked example

Numbers:4, 6, 8
The smallest number divisible by 4, 6 and 8 is 24, so the LCM is 24 (their GCF is 2).

How to use this calculator

  1. 1

    Enter your values

    Enter numbers.

  2. 2

    Adjust the options

    Fine-tune any options to match your situation.

  3. 3

    Read your result

    Least common multiple updates instantly as you type — no button to press.

Frequently asked questions

When do I need the least common multiple?

Most often when adding or comparing fractions with unlike denominators: the LCM of the denominators is the smallest common denominator, which keeps the numbers as small as possible. It also solves timing problems, since when two events repeat at different intervals the LCM tells you when they next coincide. Aligning gear teeth, packaging counts and recurring schedules are other everyday uses for the least common multiple.

What is the difference between LCM and GCF?

The least common multiple is the smallest number that all your values divide into, while the greatest common factor is the largest number that divides all of them. LCM looks upward to shared multiples; GCF looks downward to shared factors. For 4, 6 and 8 the LCM is 24 and the GCF is 2. The two are connected, since for any pair of numbers their product equals their LCM times their GCF.

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

Take the LCM of the first two numbers, then find the LCM of that result with the next number, and repeat through the list. Working pairwise like this reaches the smallest multiple shared by them all. For 4, 6 and 8 the process gives 24. The calculator does every step for you, so you can enter a long list of whole numbers and read the answer at once.

Can the LCM be one of the numbers?

Yes. When one number is a multiple of all the others, that number is itself the least common multiple. For 4 and 8, since 8 is already divisible by 4, the LCM is 8 rather than something larger. In general the LCM is at least as big as the largest number in the set and never smaller, because it has to be divisible by every value present.

How is the LCM used to add fractions?

Find the LCM of the denominators and rewrite each fraction over that common denominator, then add the numerators. Using the least common multiple rather than just multiplying the denominators keeps the numbers smaller and often avoids simplifying later. For denominators of 4, 6 and 8, the LCM is 24, so each fraction is converted to twenty-fourths before the numerators are combined.