How to find the greatest common factor
- Write each number as a product of prime factors (for example 24 = 2³ × 3).
- Find the primes that appear in every number.
- For each shared prime, take the lowest power that appears.
- Multiply those prime powers together. The result is the GCF. If no prime is shared, the GCF is 1.
What is the greatest common factor?
The greatest common factor (GCF) of a set of whole numbers is the largest number that divides into each of them with no remainder. The factors of 24 are 1, 2, 3, 4, 6, 8, 12, 24, and the factors of 36 are 1, 2, 3, 4, 6, 9, 12, 18, 36. The numbers on both lists are 1, 2, 3, 4, 6, 12, so the GCF of 24 and 36 is 12.
GCF vs GCD vs HCF: what's the difference?
There is no difference in the maths. GCF (greatest common factor), GCD (greatest common divisor) and HCF (highest common factor) all name the same number. Your textbook's choice usually depends on where you live: GCF is the usual term in US middle school, HCF is used in the UK, India and Australia, and GCD shows up in algebra, number theory and computer science. This calculator works as a GCD calculator and an HCF calculator too.
How do you find the GCF?
1. List the factors
Write every factor of each number, then circle the largest one they share. This is the easiest method for small numbers. For 24 and 36 the common factors are 1, 2, 3, 4, 6, 12, and the greatest is 12. It gets slow for big numbers because the lists get long.
2. Prime factorization
Break each number into primes, keep only the primes that appear in every number, and use the lowest power of each. For 24 = 2³ × 3, 36 = 2² × 3² and 60 = 2² × 3 × 5, the shared primes are 2 (lowest power 2²) and 3 (lowest power 3¹). So the GCF is 2² × 3 = 4 × 3 = 12. Compare this with the LCM, which uses the highest power of every prime.
3. The Euclidean algorithm
For two numbers, divide the larger by the smaller and keep the remainder. Then divide the old divisor by that remainder, and repeat until the remainder is 0. The last non-zero remainder is the GCF. It is the fastest method for large numbers.
GCF(a, b) = GCF(b, a mod b), and GCF(a, 0) = a Here is GCF(180, 48):
180 = 48 × 3 + 3648 = 36 × 1 + 1236 = 12 × 3 + 0
The remainder reached 0, so GCF(180, 48) = 12.
Common GCF answers
| Numbers | GCF | LCM |
|---|---|---|
| 8, 12 | 4 | 24 |
| 12, 18 | 6 | 36 |
| 14, 21 | 7 | 42 |
| 15, 25 | 5 | 75 |
| 16, 24 | 8 | 48 |
| 18, 24 | 6 | 72 |
| 20, 30 | 10 | 60 |
| 24, 36 | 12 | 72 |
| 36, 48 | 12 | 144 |
| 8, 15 | 1 | 120 |
| 12, 18, 24 | 6 | 72 |
| 24, 36, 60 | 12 | 360 |
What is the GCF used for?
- Simplifying fractions: divide the top and bottom by their GCF to reach lowest terms in one step. Since GCF(24, 36) = 12, 24/36 = 2/3.
- Splitting things into equal groups: a teacher has 24 pencils and 36 erasers and wants identical kits with nothing left over. The most kits possible is GCF(24, 36) = 12, and each kit gets 2 pencils and 3 erasers.
- Simplifying ratios: divide every part of a ratio by the GCF, so 24:16 becomes 3:2. The ratio calculator does this for you.
- Factoring in algebra: pull out the GCF of the terms, for example 12x + 18 = 6(2x + 3).
Common mistakes
- Mixing up GCF and LCM. The GCF is never bigger than your smallest number. If your answer is bigger, you probably found the LCM.
- Using the highest power of a prime. For the GCF, take the lowest power that appears in every number.
- Forgetting that 1 is always a common factor. If two numbers share no prime, the GCF is 1, not 0.
Want every factor of a single number? Use the factor calculator.
Frequently asked questions
What is the greatest common factor?
The greatest common factor (GCF) is the largest whole number that divides evenly into every number in a set. For 24 and 36 the GCF is 12, because 12 is the biggest number on both factor lists.
Are GCF, GCD and HCF the same thing?
Yes. GCF (greatest common factor), GCD (greatest common divisor) and HCF (highest common factor) are three names for the same number. GCF is common in US schools, HCF in the UK and India, and GCD in higher maths and programming.
How do you find the GCF of three numbers?
Find the primes that all three numbers share and multiply them using the lowest power of each. For 24 = 2³ × 3, 36 = 2² × 3² and 60 = 2² × 3 × 5, the shared part is 2² × 3, so the GCF is 12. You can also work two at a time: GCF(24, 36) = 12, then GCF(12, 60) = 12.
What does it mean if the GCF is 1?
If the GCF is 1, the numbers share no factors other than 1 and are called relatively prime (or coprime). For example, 8 and 15 are relatively prime even though neither one is a prime number.
What is the difference between GCF and LCM?
The GCF is the largest number that divides into all the numbers, while the LCM is the smallest number they all divide into. For 12 and 18 the GCF is 6 and the LCM is 36. For two numbers, GCF × LCM = the product of the numbers: 6 × 36 = 216 = 12 × 18. Try the LCM calculator.
Can the GCF be bigger than the smallest number?
No. The GCF can never be larger than the smallest number in the set, because it has to divide into that number. It equals the smallest number when that number divides all the others, such as GCF(6, 18, 30) = 6.
How do I use the GCF to simplify a fraction?
Divide the numerator and denominator by their GCF. For 24/36, the GCF is 12, so 24/36 = 2/3 in one step. The fraction calculator simplifies answers this way automatically.
Last reviewed November 27, 2026 by the ChalkStation team.