Greatest Common Factor (GCF)
Learn how to find the greatest common factor of two or more numbers using multiple methods.
Definition
The Greatest Common Factor (GCF) of two or more numbers is the largest number that divides evenly into all of them.
For example, for the numbers and :
- Factors of :
- Factors of :
- Common factors:
- GCF = 6 (the largest common factor)
The GCF is also called the Greatest Common Divisor (GCD) or Highest Common Factor (HCF).
Try it now
What is the GCF of and ?
Interactive Visual
Venn Diagram - GCF & LCM
Number A:
Number B:
Prime factors of 12:
223
Prime factors of 18:
233
GCF
6
2 × 3 = 6
LCM
36
2 × 2 × 3 × 3 = 36
How it works:
- • GCF = product of common prime factors (center of diagram)
- • LCM = product of all prime factors (entire diagram)
Find the greatest common factor using prime factorization.
Factor Tree
Number:
Composite
Prime
Enter a number to see its factor tree and prime factorization.
Interactive Sandbox
Expression Calculator
Try these:
History
No calculations yet
Practice Problems
16 problemsProblem 1 of 16
Easy
What is the GCF of and ?
Glossary
- Greatest Common Factor (GCF)
- The largest positive integer that divides evenly into two or more numbers
- Factor
- A number that divides evenly into another number (no remainder)
- Prime factorization
- Writing a number as a product of prime numbers
- Relatively prime
- Two numbers whose GCF is 1 (also called coprime)
- Common factor
- A factor that is shared by two or more numbers