What the least common multiple is
The least common multiple (LCM) is the smallest positive number that is a multiple of both integers. For 4 and 6, the common multiples are 12, 24, 36… so the LCM is 12. It is the formula LCM = a × b ÷ GCD.
That formula works because multiplying a and b counts every shared prime factor twice. Dividing by the greatest common divisor removes the duplication exactly once, leaving the smallest number that still contains all the prime factors of both inputs. Factoring both numbers with the prime factorization calculator and taking the highest power of each prime gives the same result.
How to use this calculator
Enter two integers and the calculator returns their least common multiple along with the GCD it used. To find that greatest common divisor on its own, use the GCF calculator.
Decimal entries are rounded to whole numbers and negative values are treated as positive, since the least common multiple is defined for positive integers. If the two numbers share no factors — 7 and 9, for example — the GCD is 1 and the LCM is simply their product, 63.
Why the LCM matters
The LCM is most useful for adding or subtracting fractions: it gives the least common denominator. It also appears in scheduling problems — for example, finding when two repeating events line up again.
Using the LCM rather than the plain product of the denominators keeps the numbers small and often avoids a simplification step at the end. In scheduling, the same idea answers questions such as when two buses running every 4 and 6 minutes will next depart together: after 12 minutes, the LCM of their intervals. Once fractions share a denominator the sum often reduces, so finish with the fraction simplifier.
Frequently asked questions
- What is the LCM of 4 and 6?
- 12. It is the smallest number that both 4 and 6 divide into evenly.
- How is the LCM calculated?
- Multiply the two numbers and divide by their greatest common divisor: LCM = a × b ÷ GCD.
- What is the difference between LCM and GCF?
- The LCM is the smallest shared multiple; the GCF is the largest shared factor. They are related by a × b = LCM × GCF.
- Why is the LCM useful for fractions?
- The LCM of the denominators is the least common denominator, which lets you add or subtract fractions.
- What is the LCM if one of the numbers is zero?
- It is undefined in practice, which is why this calculator requires two non-zero integers. Zero is a multiple of every number, so no smallest positive common multiple exists once zero is involved.