How to Find the Greatest Common Factor (GCF): 3 Methods
4 min read · Updated November 27, 2026
The greatest common factor (GCF) of two numbers is the largest number that divides both of them exactly. For example, the GCF of 48 and 36 is 12. You can find it by listing factors, by prime factorization or with the Euclidean algorithm. The GCF is also called the greatest common divisor (GCD) or highest common factor (HCF).
What is the greatest common factor?
A factor of a number divides it with no remainder. A common factor of two numbers divides both. The greatest of those is the GCF. You can check any pair of numbers with the GCF calculator.
Method 1: How do you find the GCF by listing factors?
List every factor of each number, then pick the largest one they share. This works well for small numbers.
- Factors of 48: 1, 2, 3, 4, 6, 8, 12, 16, 24, 48
- Factors of 36: 1, 2, 3, 4, 6, 9, 12, 18, 36
- Common factors: 1, 2, 3, 4, 6, 12
The largest common factor is 12, so GCF(48, 36) = 12.
Method 2: How do you find the GCF by prime factorization?
Break each number into prime factors, then multiply the primes they share, using the lowest power of each.
- 48 = 24 × 3
- 36 = 22 × 32
- Shared primes at their lowest powers: 22 × 3 = 4 × 3 = 12
Method 3: How do you find the GCF with the Euclidean algorithm?
Divide the larger number by the smaller one and keep the remainder. Repeat with the smaller number and the remainder until the remainder is 0. The last non-zero remainder is the GCF. This is the fastest method for big numbers.
Example: GCF(252, 105)
- 252 = 2 × 105 + 42
- 105 = 2 × 42 + 21
- 42 = 2 × 21 + 0
The last non-zero remainder is 21, so GCF(252, 105) = 21.
How do you find the GCF of three numbers?
Find the GCF of the first two numbers, then find the GCF of that result and the third number. For 24, 36 and 60: GCF(24, 36) = 12, and GCF(12, 60) = 12. So the GCF of 24, 36 and 60 is 12.
How do you find the least common multiple (LCM)?
The LCM is the smallest number that both numbers divide into. Once you know the GCF, use this formula:
| Numbers | GCF | LCM |
|---|---|---|
| 12 and 18 | 6 | 36 |
| 18 and 27 | 9 | 54 |
| 24 and 60 | 12 | 120 |
| 48 and 36 | 12 | 144 |
What is the GCF used for?
- Simplifying fractions: divide the top and bottom by the GCF. 48/36 becomes 4/3 after dividing both by 12.
- Equal grouping: split 48 apples and 36 oranges into 12 identical baskets, each with 4 apples and 3 oranges.
- Factoring: pull the GCF out of an expression, such as 12x + 18 = 6(2x + 3).
To work with ratios in the same way, see the ratio calculator.
Frequently asked questions
What is the GCF of 48 and 36?
The GCF of 48 and 36 is 12.
What is the easiest way to find the GCF?
For small numbers, list the factors of each and pick the largest shared one. For larger numbers, the Euclidean algorithm is faster.
Is GCF the same as GCD and HCF?
Yes. Greatest common factor, greatest common divisor and highest common factor all mean the same thing.
What is the difference between GCF and LCM?
The GCF is the largest number that divides both numbers. The LCM is the smallest number that both numbers divide into. For 12 and 18, the GCF is 6 and the LCM is 36.
What is the greatest common multiple?
There is no greatest common multiple, because multiples go on forever. People usually mean the greatest common factor (GCF) or the least common multiple (LCM).
What is the GCF of two prime numbers?
It is 1, because two different prime numbers share no factor other than 1.
What is the GCF of a number and 0?
The GCF of any positive number and 0 is that number. For example, GCF(12, 0) = 12.
How do you use the GCF to simplify a fraction?
Divide the numerator and denominator by their GCF. For 48/36, the GCF is 12, so the fraction simplifies to 4/3.
Related calculators
Source for further reading: Khan Academy: math lessons. Examples use small numbers for practice. Last updated November 2026.
Written by Muhammad Faiq Jaffar
Muhammad Faiq Jaffar is a WordPress developer, technical SEO specialist and digital marketer with 4+ years of experience building, optimizing and marketing websites through SEO, Meta Ads and social media marketing. He created Calculator Zone and checks each calculator against worked examples. Connect on LinkedIn. General information only, see our disclaimer.
Check your answer
Use the GCF calculator to find the GCF of any numbers, or the proportion calculator for proportion problems.
Written by Muhammad Faiq Jaffar
Muhammad Faiq Jaffar is a WordPress developer and technical SEO specialist from Karachi, Pakistan, with 4+ years of experience building and optimizing websites. He created Calculator Zone and checks each calculator against worked examples. Connect on LinkedIn. General information only, see our disclaimer.