📐 LCM & GCF Calculator
Calculate the Least Common Multiple (LCM) and Greatest Common Factor (GCF) for 2-6 numbers. Enter numbers separated by commas — the calculator also shows the prime factorization.
LCM (Least Common Multiple)
72
GCF (Greatest Common Factor)
6
Prime factorizations
The LCM and GCF calculator finds the least common multiple and the greatest common factor of two up to six numbers and shows their prime factorization. It is a clear aid for fraction problems, division tasks and any number theory practice.
How the calculator works and what it’s for▾
What LCM and GCF mean
The greatest common factor (GCF) is the largest number that divides all the given values evenly. The least common multiple (LCM) is the smallest number that is a multiple of all of them.
For 12 and 18, the GCF is 6 and the LCM is 36. The two ideas often go hand in hand when adding or reducing fractions.
How the calculation works
The tool breaks each number into its prime factors. The GCF is built from the shared primes at their lowest powers, and the LCM from all primes at their highest powers.
Showing the prime factorization keeps the process transparent, so you can see how the result was reached rather than just a final figure.
Where you need them
The LCM is used to find a common denominator for fractions, while the GCF reduces fractions to their simplest form.
The same ideas help with synchronizing schedules, splitting things into equal parts and many programming tasks.
Tips
You can enter more than two numbers at once, which speeds up larger problems.
If the GCF is 1 the numbers are coprime, and in that case their LCM is simply their product.
🔄 Reviewed June 2026
Frequently asked questions
Related calculators
Ratio Calculator
Simplify and solve ratios
Password Generator
Create a strong random password
Days Between Dates
Days, weeks and months between two dates
Work Hours Calculator
Calculate work hours, breaks and balance
Business Days Calculator
Count working days between two dates
Tip Calculator
Calculate the tip and split the bill