Math & Education
LCM & GCF Calculator
Find least common multiple, greatest common factor, and prime factors.
Your inputs
Adjust the values
Enter up to 20 positive whole numbers. Prime factorizations are shown for quick verification.
Greatest common factor
12
About this tool
A straightforward lcm & gcf calculator
Find least common multiple, greatest common factor, and prime factors. The Euclidean algorithm finds common factors and reduced products determine the least common multiple.
Results are exact while they remain within JavaScript’s safe-integer range. Inputs are processed in your browser, and changing a value updates the result immediately.
How it works
Use the LCM & GCF Calculator in three steps
- 1Enter your values
Enter up to 20 positive whole numbers separated by spaces or commas.
- 2Check the setup
Choose the units or calculation mode that matches your situation.
- 3Use the result
See the LCM, GCF, and a prime factorization for each number.
Common questions
LCM & GCF Calculator FAQ
How does the LCM & GCF Calculator work?
The Euclidean algorithm finds common factors and reduced products determine the least common multiple.
What information do I need?
Enter up to 20 positive whole numbers separated by spaces or commas.
How accurate is the result?
Results are exact while they remain within JavaScript’s safe-integer range.