Math

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:

LCM(a, b) = (a × b) ÷ GCF(a, b)
NumbersGCFLCM
12 and 18636
18 and 27954
24 and 6012120
48 and 3612144

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

The GCF of 48 and 36 is 12.

For small numbers, list the factors of each and pick the largest shared one. For larger numbers, the Euclidean algorithm is faster.

Yes. Greatest common factor, greatest common divisor and highest common factor all mean the same thing.

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.

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).

It is 1, because two different prime numbers share no factor other than 1.

The GCF of any positive number and 0 is that number. For example, GCF(12, 0) = 12.

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.


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.

Try the GCF calculator

Greatest common factor and LCM

Go to calculator