GCF & LCM CALCULATOR
Find the greatest common factor and least common multiple of two or more numbers, with prime factorizations shown.
In short
Find the greatest common factor and least common multiple of two or more numbers, with each number's full prime factorization shown. Runs entirely in your browser.
| Greatest common factor (GCF) | 12 |
| Least common multiple (LCM) | 360 |
| 24 | 2^3 × 3 |
| 36 | 2^2 × 3^2 |
| 60 | 2^2 × 3 × 5 |
How to find the GCF and LCM
- 1
Type two or more positive whole numbers, separated by commas or spaces.
- 2
The calculator finds the greatest common factor (GCF) and least common multiple (LCM) across all of them at once.
- 3
Check the prime factorization table to see exactly where each shared factor comes from.
Questions
- What's the difference between GCF and LCM?
- The GCF (greatest common factor, also called GCD) is the largest number that divides evenly into every number in your list — useful for simplifying fractions. The LCM (least common multiple) is the smallest number that every number in your list divides evenly into — useful for finding a common denominator or syncing repeating cycles.
- How is the GCF actually calculated here?
- Using the Euclidean algorithm, which repeatedly replaces the larger of two numbers with the remainder of dividing it by the smaller, until the remainder hits zero — the last nonzero value is the GCF. It's extended across more than two numbers by applying it pairwise and folding the result into the next number.
- Why does the prime factorization matter here?
- It's the most intuitive way to see why the GCF and LCM are what they are — the GCF is the product of every prime factor shared across all numbers at its lowest shared power, while the LCM is the product of every prime factor that appears at its highest power across any of the numbers.
- Can I use this for more than two numbers?
- Yes — enter as many as you like, comma or space separated. The GCF and LCM are both computed across the entire list at once, not just pairwise between the first two.
Related tools
- Prime Number Checker & GeneratorCheck whether a number is prime, or generate every prime up to a limit or the first N primes.
- Scientific Notation CalculatorAdd, subtract, multiply, and divide in scientific notation and convert to engineering, E notation, or decimal.
- Grade CalculatorAdd up every assignment's points to find your overall grade percentage and what it takes to hit a target grade.
- Quadratic Equation SolverSolve ax² + bx + c = 0 for x, with real, repeated, or complex roots, plus the discriminant and vertex.
- Percentage CalculatorFind X% of Y, what percent X is of Y, or the change between two numbers.
- Number to Words ConverterConvert any number into written-out English words, for checks, legal documents, and invoices.
- Ratio CalculatorSimplify a ratio to lowest terms, convert it to 1 : n and percentages, split a total, or scale it to a target value.
- Rule of Three CalculatorSolve direct and inverse proportions: enter three values and find the fourth.
Updated