GCF Calculator
Find the greatest common factor of two or more whole numbers
Separate positive whole numbers with commas, spaces or new lines.
Greatest common factor
How we calculated it
About the GCF Calculator
The greatest common factor is the largest positive integer that divides every number in a set without remainder. It is useful for simplifying fractions, factoring expressions and dividing quantities into equal groups.
GCF is sometimes called GCD, greatest common divisor. The terms refer to the same core idea in ordinary integer arithmetic.
How to Use the GCF Calculator
- Enter two or more integers.
- Calculate the greatest common factor.
- Review the prime-factor or Euclidean breakdown when you need to verify the result.
- Use the GCF to simplify ratios or fractions by dividing every relevant term by the same factor.
How the Calculation Works
Prime-factorization method keeps only primes shared by all inputs, using the smallest exponent appearing in each.
For two integers, the Euclidean algorithm repeatedly replaces the larger pair with a division remainder until the remainder becomes zero; the last non-zero remainder is the GCF.
Worked examples
GCF Calculator Worked Examples
Default
The GCF of 48, 72 and 120 is 24. Their LCM is 720.
Simplifying
The GCF of 100 and 75 is 25, so 75/100 simplifies to 3/4.
No common factor
17 and 31 are both prime, so their GCF is 1.
Greatest common factors
The GCF divides every number exactly.
| Numbers | GCF | LCM |
|---|---|---|
| 48, 72, 120 | 24 | 720 |
| 12, 18 | 6 | 36 |
| 100, 75 | 25 | 300 |
| 17, 31 | 1 | 527 |
| 56, 98, 140 | 14 | 1,960 |
| 36, 60, 84 | 12 | 1,260 |
How the calculator works
The greatest common factor (also called the greatest common divisor) is the largest whole number that divides every input with no remainder. The calculator uses the Euclidean algorithm: replace the larger number with the remainder of dividing it by the smaller, and repeat until the remainder is 0. It then repeats across the list and shows the LCM too.
Using the GCF
The GCF simplifies fractions and ratios: 48/72 divided top and bottom by 24 becomes 2/3. It also helps split things into equal groups, such as cutting boards of 48, 72 and 120 cm into the longest equal pieces with no waste (24 cm). For any two numbers, GCF × LCM = the product of the numbers.
Common Mistakes
- Stopping at a common factor. Check that no larger factor works.
- Confusing GCF with LCM. The GCF is never larger than the smallest number.
- Entering decimals. GCF is for whole numbers.
Result guide
Understanding Your GCF Calculator Result
The GCF is the largest size by which every input can be divided evenly. That makes it useful for reducing fractions and ratios to their simplest form or dividing quantities into the largest equal groups with no remainder.
Before you rely on the answer
Assumptions and Limitations
- Inputs are integers.
- The positive greatest common factor is requested.
- Sign is normally ignored when finding the magnitude of the GCF.
Practical tip
Using This Result in Practice
For large numbers, the Euclidean algorithm is often faster than fully factoring both inputs. In grouping problems, interpret the GCF as a possible group size only when the quantities represent compatible items or units.
Related calculations
Useful Calculations to Continue With
If you need the smallest common multiple instead, use the LCM Calculator.
If you want every factor of a single number, use the Factor Calculator.
Common questions
GCF Calculator FAQ
What is the GCF?
The largest number that divides all the inputs.
Is GCF the same as GCD?
Yes.
What is the Euclidean algorithm?
Repeatedly replacing numbers with remainders until one is zero.
How do I simplify a fraction?
Divide the top and bottom by their GCF.
What if the GCF is 1?
The numbers are coprime.
