GCF Calculator
Find the Greatest Common Factor (GCF) of two or more numbers. Also known as GCD or HCF.
How to Use
- Enter two or more whole numbers in the input field
- Separate numbers with commas or spaces (e.g., "18, 27" or "8 12 20")
- Click "Calculate" or press Enter
- View the GCF along with the step-by-step factorization solution
What is GCF Calculator?
The Greatest Common Factor (GCF), also known as the Greatest Common Divisor (GCD) or Highest Common Factor (HCF), is the largest positive integer that divides each of the given numbers without leaving a remainder.
For example, the GCF of 18 and 27 is 9, because 9 is the largest number that divides both 18 and 27 evenly (18 ÷ 9 = 2 and 27 ÷ 9 = 3).
The GCF is commonly used in simplifying fractions, finding common denominators, and solving various mathematical problems involving divisibility.
Formula
List all factors of each number, find the common factors, and select the greatest one.
GCD(a, b) = GCD(b, a mod b), repeat until remainder is 0.
Find the prime factorization of each number, then multiply the common prime factors.
Examples
Factors of 18: 1, 2, 3, 6, 9, 18
Factors of 27: 1, 3, 9, 27
Common factors: 1, 3, 9
GCF = 9
Factors of 8: 1, 2, 4, 8
Factors of 12: 1, 2, 3, 4, 6, 12
Factors of 20: 1, 2, 4, 5, 10, 20
Common factors: 1, 2, 4
GCF = 4