Factors & Multiples

How to Find the GCF (Greatest Common Factor, GCD, HCF)

How to Find the GCF (Greatest Common Factor, GCD, HCF) - featured image
Quick answerThe greatest common factor (GCF), also called the GCD or HCF, is the largest number that divides all your numbers exactly. List each number's factors and pick the biggest shared one, or multiply the shared prime factors. The GCF of 18 and 24 is 6.

Skip the manual work: use the GCF Calculator to check any answer with full steps.

GCF of 48 and 36 by prime factorsGCF of 48 and 36 by prime factors148 = 2 × 2 × 2 × 2 × 3.236 = 2 × 2 × 3 × 3.3Shared primes: 2 × 2 × 3.4Multiply: GCF = 12.

Method 1: List the factors

GCF of 18 and 24

  • Factors of 18: 1, 2, 3, 6, 9, 18
  • Factors of 24: 1, 2, 3, 4, 6, 8, 12, 24
  • Common: 1, 2, 3, 6, so the GCF is 6.

Method 2: Prime factors

Multiply the primes both numbers share, each at its lowest power.

GCF of 48 and 36: 48 = 2⁴ × 3 and 36 = 2² × 3². Shared: 2² and 3. 4 × 3 = 12.

Method 3: The Euclidean algorithm

Repeatedly replace the larger number with the remainder after dividing, until the remainder is 0. The last non-zero remainder is the GCF.

GCF of 252 and 105

  • 252 = 2 × 105 + 42
  • 105 = 2 × 42 + 21
  • 42 = 2 × 21 + 0

The GCF is 21. This method is the fastest for large numbers.

Using the GCF

  • Simplify fractions: 18/24 ÷ 6 gives 3/4.
  • Simplify ratios: 12 : 18 ÷ 6 gives 2 : 3.
  • Split things into equal groups: 18 apples and 24 oranges can be shared into at most 6 equal bags.

Check yours with the GCF calculator.

Frequently asked questions

Are GCF, GCD and HCF the same?

Yes, they are three names for the same number.

What is the GCF if the numbers share nothing?

It is 1. Such numbers are called coprime, for example 8 and 15.

Try it yourself

GCF Calculator

Find the greatest common factor, also called GCD or HCF, of two or more numbers. Shows prime factors and a Venn diagram.

Keep learning

John J. Porche
Writes and checks the worked examples on this site. See how we check our work.