GCF Calculator (Greatest Common Factor)
Last updated:
How to Use This Calculator
Step 1: Enter two or more positive whole numbers separated by commas or spaces.
Step 2: Click Calculate to see the GCF.
Step 3: Review the step-by-step Euclidean algorithm and the prime factorization of each number.
What Is the Greatest Common Factor?
The greatest common factor (GCF), also called greatest common divisor (GCD) or highest common factor (HCF), is the largest positive integer that divides every number in a set without leaving a remainder.
For example, the GCF of 12 and 18 is 6 — both numbers divide evenly by 6, and no larger integer works.
The GCF is used to reduce fractions to lowest terms, simplify ratios, and solve divisibility problems in number theory.
How the GCF Is Calculated
Euclidean algorithm: GCF(a, b) = GCF(b, a mod b), repeating until the remainder is 0.
Example: GCF(48, 18)
48 ÷ 18 = 2 remainder 12
18 ÷ 12 = 1 remainder 6
12 ÷ 6 = 2 remainder 0 → GCF = 6
For three or more numbers: GCF(a, b, c) = GCF(GCF(a, b), c)
Common GCF Pairs
| Numbers | GCF | Use Case |
|---|---|---|
| 12, 18 | 6 | Simplify 12/18 → 2/3 |
| 24, 36 | 12 | Reduce fraction 24/36 → 2/3 |
| 50, 100 | 50 | Scale 50:100 → 1:2 |
| 15, 25 | 5 | Reduce 15/25 → 3/5 |
| 48, 60, 84 | 12 | Multi-number GCF |
Examples
Example 1: GCF(48, 60) = 12 — useful for reducing 48/60 to 4/5.
Example 2: GCF(17, 23) = 1 — both are prime, so they share no common factor besides 1.
Example 3: GCF(100, 250, 400) = 50 — the largest number that divides all three.
Tips
GCF of 1 means coprime. Numbers share no factors except 1.
Prime factorization method — multiply the lowest power of each shared prime.
Always simplifies fractions. Divide numerator and denominator by their GCF.
For negatives, take absolute values — GCF is always positive.
Frequently Asked Questions
What is the difference between GCF and LCM?
How do I find the GCF by hand using prime factorization?
Can the GCF of two numbers be larger than either number?
What is the GCF of two prime numbers?
How is the Euclidean algorithm faster than prime factorization?
Can I find the GCF of decimal numbers?
Related Calculators
LCM Calculator (Least Common Multiple)
Free LCM calculator. Find the least common multiple of two or mor...
Fraction Calculator
Free fraction calculator. Add, subtract, multiply, or divide two ...
Prime Number Checker
Free prime number checker. Check if any number is prime with step...
Random Number Generator
Free random number generator. Generate one or multiple random int...