LCM Calculator
Find the least common multiple of two or more whole numbers. Enter numbers separated by commas, spaces, or new lines.
Results
LCM Calculator
Use this LCM Calculator to find the least common multiple of two or more whole numbers. The least common multiple, often shortened to LCM, is the smallest positive number that is a multiple of all the numbers entered.
This calculator is useful for math homework, fraction operations, comparing repeating patterns, scheduling problems, number theory practice, and checking arithmetic work. Enter numbers separated by commas, spaces, or new lines, then calculate the LCM along with the greatest common factor, prime factorization, first common multiples, and calculation details.
What This LCM Calculator Calculates
This calculator analyzes the whole numbers entered by the user and finds the smallest positive common multiple shared by all of them. It also shows supporting values that make the result easier to understand and verify.
- Least common multiple of two or more numbers
- Numbers checked in the calculation
- Greatest common factor of the entered numbers
- First common multiples
- Input numbers used
- Prime factorization of each number
- Calculation details for checking the result
How to Use the LCM Calculator
- Enter two or more whole numbers in the numbers field.
- Separate the numbers using commas, spaces, or new lines.
- Make sure all values are valid whole numbers greater than zero.
- Click the Calculate button to find the least common multiple.
- Review the LCM, GCF, first common multiples, prime factorization, and calculation details.
- Use the Reset button to clear the fields and start a new calculation.
LCM Formulas and Rules Used
The least common multiple can be found using prime factorization or by using the relationship between LCM and GCF. For more than two numbers, the calculator applies the process across all entered values.
| Concept | Formula or Rule | What It Means |
|---|---|---|
| Least common multiple | LCM = smallest positive common multiple | The smallest number that all entered numbers divide into evenly |
| Multiple of a number | n × 1, n × 2, n × 3, … | The list of numbers created by multiplying a number by whole numbers |
| LCM using GCF | LCM(a, b) = |a × b| / GCF(a, b) | Finds the LCM of two numbers using their greatest common factor |
| Prime factorization method | Use each prime factor at its highest power | The LCM is built from the greatest exponent of every prime factor found |
| LCM of multiple numbers | LCM(a, b, c) = LCM(LCM(a, b), c) | Finds the LCM step by step when more than two numbers are entered |
| GCF relationship | GCF divides the entered numbers evenly | The GCF helps compare shared factors while the LCM compares shared multiples |
Example LCM Calculation
Suppose you want to find the least common multiple of 12, 18, and 30.
First, write the prime factorization of each number:
- 12 = 22 × 3
- 18 = 2 × 32
- 30 = 2 × 3 × 5
Now take each prime factor using the highest power that appears:
- Highest power of 2 is 22
- Highest power of 3 is 32
- Highest power of 5 is 5
Multiply those together:
LCM = 22 × 32 × 5
LCM = 4 × 9 × 5 = 180
So, the least common multiple of 12, 18, and 30 is 180.
Assumptions and Limitations
This LCM Calculator is designed for positive whole numbers. The result depends on the values entered by the user. Zero, negative numbers, decimals, fractions, and non-numeric entries may not be valid for this calculator because standard LCM calculations are normally applied to positive integers.
Very large numbers may create longer prime factorizations or larger LCM results. For classroom assignments, exams, programming, formal mathematics, or advanced number theory work, confirm whether your required method is listing multiples, prime factorization, the GCF relationship, or another approved approach.
Last updated: June 24, 2026
Method source: Standard arithmetic rules for multiples, greatest common factors, prime factorization, and least common multiples
Editorial standards: AjaxCalculators Editorial Policy
LCM Calculator FAQs
What is LCM?
LCM stands for least common multiple. It is the smallest positive number that is a multiple of all the numbers being compared.
How do you find the LCM of two numbers?
You can find the LCM by listing multiples, using prime factorization, or using the formula LCM(a, b) = |a × b| / GCF(a, b).
What is the difference between LCM and GCF?
The LCM is the smallest common multiple shared by numbers, while the GCF is the greatest common factor that divides the numbers evenly. LCM looks at multiples, and GCF looks at factors.
Can this calculator find the LCM of more than two numbers?
Yes. You can enter two or more whole numbers separated by commas, spaces, or new lines. The calculator then finds the least common multiple across all entered values.
Why is LCM useful for fractions?
LCM is useful for finding a common denominator when adding or subtracting fractions. The least common denominator is usually the LCM of the denominators.
Is LCM the same as the first common multiple?
Yes. The LCM is the first, or smallest, positive common multiple shared by the entered numbers.
Found an Issue?
If you notice an incorrect result, unclear wording, missing assumption, or calculation issue, please contact us so the AjaxCalculators can review and improve this page.