LCM Calculator - Least Common Multiple Finder Online

Ottimizzazione del motore di ricerca
  1. Home
  2. Math Tools
  3. LCM Calculator
Share: Report

LCM Calculator

100% free · Runs 100% in your browser · Nothing is uploaded · No signup needed

Did you know? The LCM tells you when two repeating cycles line up again \u2014 handy for schedules, gear teeth and repeating events. The result updates live as you type.

Your numbers are processed locally in your browser and are never sent to any server.

Di LCM Calculator

What Is the Least Common Multiple?

The least common multiple, usually shortened to LCM, is the smallest positive number that two or more numbers all divide into evenly. Take the numbers 4 and 6. The multiples of 4 are 4, 8, 12, 16, 20, 24, 28, 32, and so on. The multiples of 6 are 6, 12, 18, 24, 30, 36, and so on. The numbers 12 and 24 appear in both lists, so they are common multiples, and 12 is the smallest of them. That makes 12 the least common multiple of 4 and 6. The idea is simple, but it sits behind a surprising amount of everyday maths, from adding fractions to working out when two repeating events next fall on the same day. Our free LCM calculator does the listing for you instantly, shows the worked multiples, and gives you the answer with the steps so you can check the result yourself.

How to Find the LCM by Listing Multiples

Listing multiples is the most direct way to find an LCM, and it is the method our calculator shows. Start with the first number and write out its multiples by adding the number to itself again and again. Do the same for the second number. Then scan both lists for the first number that appears in each. That shared number is the LCM. For small numbers this takes seconds, but the lists grow quickly when the numbers get bigger, which is why a calculator helps. Take 8 and 12 as an example. The multiples of 8 are 8, 16, 24, 32, 40, 48. The multiples of 12 are 12, 24, 36, 48, 60, 72. The first match is 24, so LCM(8, 12) = 24. Notice that 48 is also a common multiple, but it is not the least one. Every multiple of the LCM is also a common multiple, so 48, 72, and 96 are common multiples of 8 and 12 too, yet only 24 is the least. When one number divides the other exactly, the LCM is simply the larger number. The multiples of 5 are 5, 10, 15, 20, 25, and the multiples of 10 are 10, 20, 30, so their first shared value is 10. That shortcut saves a lot of listing, and our calculator applies it automatically.

Worked Examples

Example 1: find LCM(15, 20). Multiples of 15 are 15, 30, 45, 60. Multiples of 20 are 20, 40, 60. The first number in both lists is 60, so LCM(15, 20) = 60. You can check it by dividing: 60 divided by 15 is 4, and 60 divided by 20 is 3, with no remainder either time. Example 2: find LCM(9, 12). Multiples of 9 are 9, 18, 27, 36. Multiples of 12 are 12, 24, 36. The first match is 36, so LCM(9, 12) = 36. Example 3: find LCM(7, 11). Because 7 and 11 are both prime numbers with no common factor other than 1, their LCM is simply their product: 7 times 11 equals 77. The same rule works for any two numbers that share no common factor. The method also extends to three numbers. For LCM(6, 10, 15), list the multiples of each: 6 gives 6, 12, 18, 24, 30; 10 gives 10, 20, 30; 15 gives 15, 30. The first value in all three lists is 30, so LCM(6, 10, 15) = 30. If you need the greatest common divisor as well, try our GCD and LCM calculator or the dedicated GCD calculator.

Learning maths is easier when every step is visible, and the same is true of building a website. If you run a study blog, a tutoring page, or a small business site, FistHost shared hosting starts at just $0.99/month and includes a free domain with the annual plan, so your own site costs less than a notebook. Pair it with a cheap domain from fisthost.com/domains and you can publish your notes, homework help, or class resources online the same day.

The Prime Factorization Method

For larger numbers, listing multiples becomes slow, and prime factorization is the faster route. Break each number into its prime factors, then take the highest power of each prime that appears and multiply them together. For 12 and 18: 12 equals 2 squared times 3, and 18 equals 2 times 3 squared. The highest power of 2 is 2 squared, which is 4, and the highest power of 3 is 3 squared, which is 9. Multiply 4 by 9 and you get 36, so LCM(12, 18) = 36. Check it: 36 divided by 12 is 3, and 36 divided by 18 is 2. Another example: 24 equals 2 cubed times 3, and 36 equals 2 squared times 3 squared. Take the highest powers, 2 cubed and 3 squared, and multiply: 8 times 9 equals 72, so LCM(24, 36) = 72. This method is the one mathematicians prefer, because it works just as well for numbers in the hundreds or thousands, where listing multiples would fill a page. Our calculator uses the efficient method behind the scenes and still shows you the multiples, so you get both the speed and the working.

LCM and GCD: The Shortcut Formula

There is a neat link between the LCM and the greatest common divisor, or GCD, of the same two numbers: LCM(a, b) equals a times b divided by GCD(a, b). For 12 and 18, the GCD is 6. Multiply 12 by 18 to get 216, divide by 6, and the answer is 36, which matches the factorization method exactly. For 20 and 30, the GCD is 10. Multiply 20 by 30 to get 600, divide by 10, and the answer is 60. This formula is handy when you already know the GCD, and it is a good way to double-check an answer found by listing multiples. Related tools that use the same ideas include our fraction calculator, ratio calculator, and prime number checker.

Where the LCM Is Used in Real Life

The most common use of the LCM is adding and subtracting fractions with different denominators. To add 1/4 and 1/6, you need a common denominator, and the LCM of 4 and 6 is 12. Convert each fraction: 1/4 equals 3/12, and 1/6 equals 2/12, so the sum is 5/12. Without the LCM you could still use 24 as a common denominator, but the fractions would be bigger and need simplifying at the end. The LCM also answers timing questions. If one bus leaves every 12 minutes and another leaves every 18 minutes, and they both leave together now, they will next leave together after 36 minutes, because 36 is the LCM of 12 and 18. The same logic applies to flashing lights, machine gears, and repeating work shifts. In music, the LCM helps line up rhythms that repeat after different numbers of beats. In baking and cooking, it helps scale recipes so that two ingredients measured in different pack sizes come out even.

Common Mistakes to Avoid

  • Confusing LCM with GCD: the GCD is the largest number that divides both numbers, while the LCM is the smallest number both numbers divide into. For 12 and 18, the GCD is 6 and the LCM is 36.
  • Stopping at the first common multiple that is not the least: 48 is a common multiple of 8 and 12, but 24 is smaller, so 24 is the LCM.
  • Forgetting that the LCM is never smaller than the larger number: if your answer is smaller than either input, it is wrong.
  • Assuming the LCM is always the product: the product is only the LCM when the two numbers share no common factor. For 12 and 18, the product is 216, but the LCM is 36.

Frequently Asked Questions

What is the LCM of 1 and any number? The number itself. The multiples of 1 are every whole number, so the first one shared with any number is that number. What is the LCM of two prime numbers? Their product, because primes share no common factor other than 1. Can the LCM be zero? No, the LCM is defined for positive whole numbers and is always positive. Is the LCM the same as the smallest common multiple? Yes, the two phrases mean exactly the same thing.

Maths tools like this one are free forever on FistHost, and so is the advice that comes with them. If you want a place to share your own worked examples, start a site on FistHost hosting from $0.99/month with a free domain on the annual plan. Students, teachers, and small businesses all get the same fast, reliable hosting, and you can check domain prices first at fisthost.com/domains. For more number work, try our percentage calculator, scientific calculator, cube root calculator, and exponent calculator.

User Reviews

No reviews yet. Be the first to review this tool!

Write a Review

★★★★★

Captcha

Reviews are protected by captcha and moderated before they appear.


Speed

Small Price, Serious Speed

Fast SSD hosting from $0.99/mo
Free domain included

See Plans
Domains Find Your Perfect Domain Search top extensions · at honest prices Search Domains