GCF meaning
A factor of a number divides it with no remainder. The factors of 12 are 1, 2, 3, 4, 6 and 12. A common factor of two numbers divides both of them, and the greatest common factor is the largest such number. It is also called the greatest common divisor (GCD) or highest common factor (HCF).
For 18 and 24:
- Factors of 18: 1, 2, 3, 6, 9, 18
- Factors of 24: 1, 2, 3, 4, 6, 8, 12, 24
The common factors are 1, 2, 3 and 6, so GCF(18, 24) = 6. Every common factor divides the GCF, which is a quick way to check your answer.
Three ways to find the GCF
1. List the factors. Write all factors of each number and pick the largest shared one. Simple, but slow for big numbers.
2. Prime factorization. Break each number into primes and multiply the primes they share, each at its lowest power.
- 48 = 2⁴ × 3
- 180 = 2² × 3² × 5
- Shared primes at lowest power: 2² × 3 = 12
The prime factorization calculator builds the factor trees for you.
3. Euclid's algorithm. Divide the larger number by the smaller, then replace the pair with the smaller number and the remainder. Repeat until the remainder is 0. The last nonzero remainder is the GCF.
For 1071 and 462:
| Step | Division | Remainder |
|---|---|---|
| 1 | 1071 ÷ 462 = 2 | 147 |
| 2 | 462 ÷ 147 = 3 | 21 |
| 3 | 147 ÷ 21 = 7 | 0 |
So GCF(1071, 462) = 21. Euclid described this method over 2,000 years ago, and it is still what computers use because it is fast even for huge numbers.
GCF examples
| Numbers | Prime factors | GCF |
|---|---|---|
| 18, 24 | 2 × 3², 2³ × 3 | 6 |
| 36, 48 | 2² × 3², 2⁴ × 3 | 12 |
| 84, 126 | 2² × 3 × 7, 2 × 3² × 7 | 42 |
| 15, 28 | 3 × 5, 2² × 7 | 1 |
| 24, 36, 60 | 2³ × 3, 2² × 3², 2² × 3 × 5 | 12 |
For three or more numbers, find the GCF of the first two, then the GCF of that result with the next number. GCF(24, 36) = 12, and GCF(12, 60) = 12.
Where the GCF is used
Simplifying fractions. 84/126 divided top and bottom by 42 becomes 2/3 in one step. Using a smaller common factor works too, but takes several rounds. The fraction calculator simplifies automatically.
Splitting into equal groups. A teacher has 24 pencils and 36 erasers and wants identical kits with nothing left over. The largest number of kits is GCF(24, 36) = 12, each with 2 pencils and 3 erasers.
Tiling and cutting. A floor 48 by 180 inches can be covered with square tiles without cutting if the tile side divides both lengths. The biggest such tile is 12 inches, giving 4 × 15 = 60 tiles.
Factoring algebra. In 6x² + 9x, the GCF of the terms is 3x, so 6x² + 9x = 3x(2x + 3).
Simplifying ratios. 18:24 divided by 6 is 3:4.
GCF and LCM together
The GCF and the least common multiple are partners. For any two positive whole numbers,
For 18 and 24: 6 × 72 = 432 = 18 × 24. If you know one, you can get the other with a single division.
| GCF | LCM | |
|---|---|---|
| Question | Largest number dividing all | Smallest number all divide |
| From primes | Shared primes, lowest powers | All primes, highest powers |
| 18 and 24 | 6 | 72 |
Relatively prime numbers
When the GCF of two numbers is 1, they are called relatively prime, or coprime. 8 and 15 are coprime even though neither is prime. A fraction whose numerator and denominator are coprime, such as 8/15, is already in lowest terms.
Common mistakes
- Taking the highest powers of the primes. That builds the LCM, not the GCF.
- Including primes that only one number has. The GCF uses shared primes only.
- Stopping at a common factor that is not the greatest, such as 2 or 3 for 18 and 24.
- Saying the GCF is 0 when numbers share no factor. It is 1.
For quick answers with steps, use the GCF calculator. GCF and LCM explained has word problems for both.