Greatest Common Factor (GCF) Calculator
GCF Calculator
How to Find the Greatest Common Factor
The Greatest Common Factor (GCF) of two or more numbers is the largest positive integer that divides each of the numbers without leaving a remainder.
Method 1: Euclidean Algorithm (used above)
- Divide the larger number by the smaller. Note the remainder.
- Replace the pair (larger, smaller) with (smaller, remainder).
- Repeat until the remainder is 0. The last non-zero divisor is the GCF.
Method 2: Listing Factors
- List all factors of each number
- Identify the factors that appear in all lists (common factors)
- Select the largest common factor — this is the GCF
Method 3: Prime Factorization
- Find the prime factorization of each number
- Identify which prime factors appear in all factorizations
- For each common prime factor, take the lowest exponent
- Multiply these prime factors raised to their lowest exponents
GCF = product of (common prime factors)lowest exponent
Example: GCF(12, 18) using prime factorization
- 12 = 2² × 3¹
- 18 = 2¹ × 3²
- Common primes: 2 and 3 — take the lowest exponent of each
- GCF = 2¹ × 3¹ = 6
Frequently Asked Questions
What is the Greatest Common Factor (GCF)?
The GCF is the largest positive integer that divides two or more numbers without leaving a remainder. Also called GCD (Greatest Common Divisor) or HCF (Highest Common Factor).
What are coprime numbers?
Two or more numbers are coprime (or relatively prime) if their GCF is 1. Example: GCF(8, 15) = 1.
What are other names for GCF?
The GCF is also known as GCD (Greatest Common Divisor, math) and HCF (Highest Common Factor, British education). All three terms are equivalent.
Related Calculators
Popular GCF Calculations
Top greatest common factor calculations: