Skip to content

Alerts Center

New quiz added: Multiplication Tables — try it now

Fractions lesson updated with new practice worksheets

This month's resource pack is now live

View All Alerts

Messages

Tip: Create a free account to save your quiz progress

New here? Check out our Getting Started guide

New Sudoku puzzles added this week

View All Messages

Factors, Multiples & Primes

Methods for Finding the GCF / HCF

There are three common methods for finding the GCF. The best choice depends on the size of the numbers and how quickly you need the answer.

Choosing the right method is not just a classroom exercise — it mirrors a real trade-off computer scientists face constantly. Listing factors is easy to explain but hopelessly slow for large numbers; prime factorization is elegant, but factoring very large numbers is itself famously hard (the security of RSA encryption, which protects much of the internet, relies on exactly how hard it is). The ladder method sidesteps factoring entirely by using repeated division instead — which is why it, in the more general form called the Euclidean Algorithm, is the method real software actually uses to compute GCFs of enormous numbers in a fraction of a second.

Method 1 – Listing Factors

This is the most direct method of the three — it doesn’t need any prime knowledge at all, which makes it the natural starting point when you’re first learning about the GCF. The trade-off is that it gets slow and error-prone once the numbers get bigger, which is exactly why Methods 2 and 3 exist.

Step by Step

  1. List every factor of the first number, from smallest (1) to largest (the number itself).
  2. List every factor of the second number the same way.
  3. Compare the two lists and pick out every number that appears in both — these are the common factors.
  4. The largest number in that common list is the GCF.
Listing factors without missing any — the factor-pair trick: test whole numbers starting at 1, and for each one that divides evenly, write down both it and its matching pair (number ÷ test value). Stop once your test number reaches the square root of the number — every pair from then on just repeats one you’ve already found in reverse.
48: 1×48, 2×24, 3×16, 4×12, 6×8  —  (7 doesn’t divide 48, and 7²=49>48, so stop)
Reading off both numbers in every pair gives the complete factor list: 1, 2, 3, 4, 6, 8, 12, 16, 24, 48.
Example 1 — GCF(18, 24) by listing

Factors of 18: 1, 2, 3, 6, 9, 18

Factors of 24: 1, 2, 3, 4, 6, 8, 12, 24

Common factors: 1, 2, 3, 6 — the largest is 6.

GCF = 6
Example 2 — GCF(48, 60), a slightly bigger case

Factors of 48 (using the factor-pair trick up to √48≈6.9): 1, 2, 3, 4, 6, 8, 12, 16, 24, 48

Factors of 60 (using the factor-pair trick up to √60≈7.7): 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60

Common factors: 1, 2, 3, 4, 6, 12 — the largest is 12.

GCF = 12

Notice how much longer both lists already are with numbers this size — that growing effort is exactly why Methods 2 and 3, below, become the more practical choice as numbers get larger.

Method 2 – Prime Factorization

Instead of listing every factor, this method breaks each number down into its prime building blocks, then compares those. It scales far better than listing factors, and it’s especially efficient once you need the GCF of three or more numbers at once.

Step by Step

  1. Find the prime factorization of each number — use a factor tree or repeated division by small primes (2, 3, 5, 7…) until only primes remain.
  2. Write each factorization in exponent form (e.g. 2² × 3³).
  3. Identify every prime that appears in both factorizations — ignore any prime that only shows up in one of them.
  4. For each shared prime, take whichever exponent is lower (smaller) between the two numbers.
  5. Multiply those lower powers together — the result is the GCF.
Why the lower power? The GCF has to divide both original numbers exactly. If a prime appears, say, 2² in one number but only 2¹ in the other, then using 2² in your answer would create a number that doesn’t divide evenly into the number that only has one factor of 2. Taking the smaller exponent is what guarantees the result still divides both numbers.
Example 1 — GCF(36, 48) by prime factorization

36 = 2² × 3²   48 = 2⁴ × 3¹

PrimeIn 36In 48Lower power used
22²2⁴2²
33²3¹3¹
GCF = 2² × 3 = 4 × 3 = 12
Example 2 — GCF(84, 90), where some primes don’t match

84 = 2² × 3¹ × 7¹   90 = 2¹ × 3² × 5¹

PrimeIn 84In 90In both?Used in GCF
22²2¹Yes2¹ (lower power)
33¹3²Yes3¹ (lower power)
5—5¹No — only in 90excluded
77¹—No — only in 84excluded
GCF = 2 × 3 = 6

Even though 84 and 90 both have plenty of prime factors, only 2 and 3 appear in both lists — 7 belongs to 84 alone and 5 belongs to 90 alone, so neither one contributes to the GCF at all.

Method 3 – Ladder (Division) Method

The ladder method (sometimes called the “cake method” or “staircase method”) finds the GCF by repeatedly dividing both numbers by the same small prime, one step at a time, instead of factoring each number separately first. Every division you perform becomes one “rung” of the ladder, written underneath the last, until the two numbers left at the bottom have nothing left in common. It is faster to do by hand than full prime factorization for most textbook-sized numbers, because you only ever divide by small primes, one at a time, and you can stop the moment there is nothing left to share.

How to Build the Ladder, Step by Step

  1. Write the two numbers side by side at the top — this is the top of the ladder.
  2. Find the smallest prime number that divides both numbers exactly. Always test in increasing order: 2 first, then 3, then 5, then 7, and so on — never skip ahead.
  3. Write that prime in a column on the left of the ladder. Divide both numbers by it, and write the two answers directly underneath, starting a new rung.
  4. Look at the new pair of numbers on this rung. Repeat step 2 — find the smallest prime that divides both of them. It might be the same prime as before (use it again!), or it might be the next one up.
  5. Keep adding rungs until the pair of numbers at the very bottom share no common factor at all — in other words, until they are coprime (their own GCF is 1). That is your signal to stop.
  6. Multiply every divisor written down the left-hand side of the ladder. That product is the GCF of the two original numbers.
Why always start from the smallest prime? Testing primes in order (2, 3, 5, 7…) guarantees you never accidentally skip a common factor, and it keeps every single division small and easy to do in your head. Never move on to the next prime until the current one stops dividing both numbers — if 2 still works, use 2 again before trying 3.
PrimeQuick divisibility check
2The number is even (ends in 0, 2, 4, 6 or 8).
3The digits add up to a multiple of 3.
5The number ends in 0 or 5.
7, 11, 13…No simple shortcut — just try dividing; if it comes out exact, it works.

Worked Example 1 — GCF(60, 90)

Start with 60 and 90 at the top. Test 2 first: both are even, so 2 becomes the first rung.

Divide by6090
23045
31015
523

2 and 3 share no common factor other than 1 — the ladder stops here.

GCF = 2 × 3 × 5 = 30

Reading each rung: 60 and 90 are both even, so divide by 2 to get 30 and 45. Both of those are divisible by 3, so divide by 3 to get 10 and 15. Both of those are divisible by 5, so divide by 5 to get 2 and 3 — and since 2 and 3 have nothing left in common, the ladder is complete. Multiplying the three divisors used, 2 × 3 × 5, gives the GCF: 30.

Worked Example 2 — GCF(72, 120), Reusing the Same Prime

This example shows what happens when the same small prime works more than once in a row before you need to move on to the next one.

Divide by72120
23660
21830
2915
335

3 and 5 share no common factor other than 1 — the ladder stops here.

GCF = 2 × 2 × 2 × 3 = 24

Here, 2 divides both numbers three rungs in a row (72→36→18→9 and 120→60→30→15), because both original numbers contain 2³ as a factor. Once 9 and 15 are reached, 2 no longer divides 9 (it’s odd), so the ladder moves on to the next prime, 3, which divides both 9 and 15 exactly. That leaves 3 and 5 — two numbers with no shared factor — so the ladder is finished. Multiplying every divisor used, 2 × 2 × 2 × 3, gives the GCF: 24.

Knowing when to stop: the bottom pair of a finished ladder is always coprime — there is no whole number greater than 1 that divides both of them. A quick way to check: run through the small primes (2, 3, 5, 7…) one more time against the bottom pair. If none of them divide both numbers, you’re done, and the GCF is simply the product of every divisor you wrote down the left-hand side of the ladder.

Method Comparison

MethodBest ForSpeed
Listing factorsSmall numbersSlow for large numbers
Prime factorizationMedium numbers, multiple numbersModerate
Ladder/EuclideanLarge numbers, two numbersFastest

Key Takeaways

  • All three methods give the same answer — choose based on the numbers.
  • Prime factorization is great when you already need the factorization.
  • The ladder method is the most efficient for large numbers.

Practice: Try a Method

Find the GCF