LCM Calculator

Find the LCM of any two positive integers with our free calculator. See GCF, step-by-step multiples, and learn how the least common multiple works interactively.

Find least common multiple

About This Calculator

The LCM (Least Common Multiple) Calculator helps you find the smallest positive integer that is divisible by two given numbers. Also known as the lowest common multiple or smallest common multiple, the LCM is a fundamental concept in number theory used for adding and subtracting fractions, solving ratio problems, and understanding divisibility rules.

Our calculator uses the formula LCM(a, b) = |a × b| / GCF(a, b), where GCF is computed using the Euclidean algorithm. Along with the LCM, you also get the greatest common factor (GCF) and the first 10 multiples of each number displayed in a clear format. This step-by-step approach helps students understand the relationship between multiples, factors, and the connection between LCM and GCF.

How to Use This Calculator

Enter any two positive integers in the input fields above and click "Calculate LCM". The calculator will instantly compute the least common multiple, greatest common factor, and display the first ten multiples of each number. You can also bookmark a calculation by sharing the URL — all input values are saved in the page link.

Regional Notes

The LCM calculation method is universal — the Euclidean algorithm and the LCM formula are the same in all countries including India, the United States, the United Kingdom, and globally. No region-specific adjustments are needed since LCM is a pure mathematical concept. This calculator supports any positive integers up to very large values (limited only by JavaScript number precision).

Frequently Asked Questions

What is the least common multiple (LCM)?

The least common multiple (LCM) of two or more numbers is the smallest positive integer that is divisible by all the numbers. For example, the LCM of 4 and 6 is 12 because 12 is the smallest number that both 4 and 6 divide evenly.

How is LCM calculated?

The LCM can be calculated using the formula LCM(a, b) = |a × b| / GCF(a, b). First, find the greatest common factor (GCF) using the Euclidean algorithm, then divide the product of the two numbers by the GCF. For example, LCM(12, 18) = (12 × 18) / 6 = 216 / 6 = 36.

What is the difference between LCM and GCF?

The LCM (least common multiple) is the smallest positive number that both numbers divide into, while the GCF (greatest common factor) is the largest positive number that divides both numbers. For 12 and 18: LCM = 36 (the smallest multiple they share) and GCF = 6 (the largest factor they share). They are related by the formula LCM × GCF = product of the two numbers.

When is LCM used in real life?

LCM is commonly used when adding or subtracting fractions with different denominators — finding a common denominator is essentially finding the LCM of the denominators. LCM is also used in scheduling problems (e.g., finding when two repeated events will coincide), gear ratio calculations, and in solving number theory problems in competitive mathematics.

Can LCM be calculated for more than two numbers?

Yes, the LCM of three or more numbers can be calculated by finding the LCM of the first two numbers, then finding the LCM of that result with the third number, and so on. For example, LCM(4, 6, 8) = LCM(LCM(4, 6), 8) = LCM(12, 8) = 24.

What happens if I enter 0 or negative numbers?

The LCM is typically defined for positive integers only. Our calculator validates that both inputs are positive integers (greater than or equal to 1). If you enter 0, a negative number, or a non-numeric value, the calculator will disable the calculate button or return without a result.

Is the LCM calculation the same everywhere?

Yes, LCM is a universal mathematical concept with the same formula and definition in India, the US, the UK, and all countries worldwide. The Euclidean algorithm for finding the GCF (and consequently the LCM) is standard across all mathematics curricula globally.

How do you find LCM by listing multiples?

To find LCM by listing multiples, write out the multiples of each number until you find a common one. For example, multiples of 4: 4, 8, 12, 16, 20, 24... Multiples of 6: 6, 12, 18, 24... The first common multiple is 12, so LCM(4, 6) = 12. Our calculator does this automatically by showing the first 10 multiples of each number.