Get Started
How to Find the Greatest Common Factor (GCF): 3 Easy Methods

How to Find the Greatest Common Factor (GCF): 3 Easy Methods

Last Updated: 8 min read
Student writing math homework in a notebook

Learn how to find the GCF of two or more numbers by listing factors, prime factorization and the Euclidean algorithm, with worked examples, shortcuts and word problems.

Table of Contents 11 sections
  1. What is the greatest common factor?
  2. Method 1: how to find the GCF by listing factors
  3. Method 2: how to find the GCF using prime factorization
  4. Method 3: how to find the GCF with the Euclidean algorithm
  5. How to find the GCF of three or more numbers
  6. Shortcuts that save time
  7. How to use the GCF in real problems
  8. GCF vs LCM: how to tell which one a problem wants
  9. Practice problems
  10. How to use this guide
  11. Frequently asked questions
Want the answer with every step? The free GCF Calculator finds the greatest common factor of up to 10 numbers and shows all three methods.

The greatest common factor shows up everywhere in school math: simplifying fractions, reducing ratios, factoring algebra and solving "largest equal groups" word problems. It sounds technical, but finding it only needs division and a little patience. This guide explains what the greatest common factor is and walks through how to find the GCF with three different methods, from the beginner-friendly factor list to the fast Euclidean algorithm. You will also see how to handle three or more numbers, how to spot shortcuts, and how to apply the GCF to real problems.

What is the greatest common factor?

The greatest common factor (GCF) of two or more whole numbers is the largest number that divides each of them exactly. You may also see it called the greatest common divisor (GCD) or highest common factor (HCF). They are the same thing.

Break the name into parts. A factor is a number that divides another number with no remainder: 5 is a factor of 20 because 20 ÷ 5 = 4. A common factor belongs to every number in the set. The greatest common factor is simply the biggest one.

Method 1: how to find the GCF by listing factors

This is the clearest method and the best place to start.

Step 1: list every factor of each number

Work in pairs to avoid missing any. Start with 1 and the number itself, then try 2, 3, 4 and so on, stopping once the pairs meet in the middle. For 36: 1 × 36, 2 × 18, 3 × 12, 4 × 9, 6 × 6. So the factors of 36 are 1, 2, 3, 4, 6, 9, 12, 18, 36.

For 48: 1 × 48, 2 × 24, 3 × 16, 4 × 12, 6 × 8. So the factors of 48 are 1, 2, 3, 4, 6, 8, 12, 16, 24, 48.

Step 2: circle the common factors

The numbers on both lists are 1, 2, 3, 4, 6 and 12.

Step 3: pick the largest

The greatest common factor of 36 and 48 is 12.

Tip: you only need to test divisors up to the square root of the number. The square root of 48 is just under 7, so testing 1 to 6 finds every factor pair.

Method 2: how to find the GCF using prime factorization

Prime factorization is faster once the numbers get bigger, and it is the method most textbooks expect in middle school.

Step 1: write each number as a product of primes

Use a factor tree. Split the number into any two factors, then keep splitting until every branch ends in a prime (2, 3, 5, 7, 11, 13 and so on).

60 = 2 × 30 = 2 × 2 × 15 = 2 × 2 × 3 × 5 = 2² × 3 × 5
84 = 2 × 42 = 2 × 2 × 21 = 2 × 2 × 3 × 7 = 2² × 3 × 7

Step 2: find the primes they share

Both numbers contain 2² and 3. The 5 belongs only to 60 and the 7 only to 84, so they are left out.

Step 3: multiply the shared primes using the lowest power

GCF = 2² × 3 = 12.

The "lowest power" rule matters when the powers differ. For 72 = 2³ × 3² and 108 = 2² × 3³, take 2² and 3², giving GCF = 4 × 9 = 36.

The Venn diagram version

Many teachers draw two overlapping circles. Write the prime factors of the first number in the left circle and those of the second in the right, putting any shared primes in the overlap. For 60 and 84, the overlap holds 2, 2 and 3, the left side holds 5 and the right side holds 7. Multiply the overlap to get the GCF (12). Multiply everything in both circles to get the LCM (2 × 2 × 3 × 5 × 7 = 420).

Method 3: how to find the GCF with the Euclidean algorithm

For large numbers, listing factors is painful and prime factorization can be slow. The Euclidean algorithm, described by the Greek mathematician Euclid more than 2,000 years ago, needs only division.

The steps

  1. Divide the larger number by the smaller one and note the remainder.
  2. Replace the larger number with the smaller number, and the smaller number with the remainder.
  3. Repeat until the remainder is 0.
  4. The last divisor (the last non-zero remainder) is the GCF.
GCF(252, 198)
252 = 198 × 1 + 54
198 = 54 × 3 + 36
54 = 36 × 1 + 18
36 = 18 × 2 + 0
GCF = 18

Why does this work? Any number that divides both 252 and 198 must also divide 252 − 198 = 54. So the common factors of (252, 198) are exactly the common factors of (198, 54), and the problem keeps shrinking without changing the answer. A related shortcut is the subtraction method: keep subtracting the smaller number from the larger until both are equal. It reaches the same answer but takes more steps.

How to find the GCF of three or more numbers

Work two at a time. Find the GCF of the first pair, then the GCF of that answer and the next number, and so on.

Example: GCF of 32, 48 and 80. GCF(32, 48) = 16, then GCF(16, 80) = 16. The GCF of all three is 16.

With prime factorization, write all the numbers out (32 = 2⁵, 48 = 2⁴ × 3, 80 = 2⁴ × 5) and keep only the primes that appear in every one, at their lowest power: 2⁴ = 16.

Shortcuts that save time

  • Does the smaller number divide the larger? Then it is the GCF. GCF(9, 63) = 9.
  • Are the numbers consecutive? Then the GCF is 1. GCF(44, 45) = 1.
  • Are both numbers prime and different? The GCF is 1.
  • Are both even? Then 2 is a common factor, so the GCF is at least 2. Halve both and keep going.
  • Do both end in 0 or 5? Then 5 is a common factor.
  • Check the difference. The GCF must divide the difference between two numbers. GCF(91, 98) must divide 7, so it is either 1 or 7, and 7 divides both. The answer is 7.

How to use the GCF in real problems

Simplify a fraction

Simplify 84/126. The GCF of 84 and 126 is 42, so 84/126 = 2/3. Dividing by the GCF gives the simplest form in one step.

Make identical groups

A youth club has 54 apples and 72 oranges and wants to pack identical snack bags with nothing left over. GCF(54, 72) = 18, so it can make 18 bags, each with 3 apples and 4 oranges.

Cut materials without waste

Two ribbons measure 120 cm and 150 cm. To cut both into equal pieces that are as long as possible, find GCF(120, 150) = 30. Each piece is 30 cm, giving 4 + 5 = 9 pieces in total.

Tile a floor with whole squares

A patio is 360 cm by 270 cm. The largest square tile that fits exactly is GCF(360, 270) = 90 cm, and you need 4 × 3 = 12 tiles.

Factor algebra

Factor 15a³b − 25a²b². The GCF of 15 and 25 is 5, the lowest power of a is a² and the lowest power of b is b. So the expression becomes 5a²b(3a − 5b).

GCF vs LCM: how to tell which one a problem wants

Students often mix up the greatest common factor and the least common multiple. Use the words in the question as a guide. "Largest", "greatest", "split into equal groups", "cut into equal lengths" and "no leftovers" usually point to the GCF. "When will they next happen together", "smallest number that both divide into", "least" and "same time again" point to the LCM. You can also check the size of your answer: a GCF is never larger than the smallest number, and an LCM is never smaller than the largest. For two numbers, GCF × LCM equals the product of the numbers, which is a quick way to find one from the other. Our guide on how to find the least common multiple covers the LCM side in detail.

Practice problems

  1. GCF of 18 and 24 (answer: 6)
  2. GCF of 35 and 49 (answer: 7)
  3. GCF of 56 and 72 (answer: 8)
  4. GCF of 13 and 39 (answer: 13)
  5. GCF of 27 and 64 (answer: 1)
  6. GCF of 120 and 168 (answer: 24)
  7. GCF of 45, 75 and 105 (answer: 15)
  8. GCF of 391 and 299 by the Euclidean algorithm (answer: 23)

Check your working with the GCF calculator, which shows all three methods side by side.

How to use this guide

Work through the steps in order with your own numbers, writing each result down as you go, then check your answer against the matching calculator on this site. If your hand calculation and the calculator disagree, the usual culprits are unit conversions, rounding, and a percentage typed as a whole number instead of a decimal. The examples are illustrations, not recommendations, and your situation may call for different assumptions. For important financial or health decisions, confirm your plan with a licensed professional who knows your circumstances. This article is reviewed periodically and was last updated in November 2026.

Frequently asked questions

What is the easiest way to find the GCF?

For small numbers, list the factors of each number and pick the largest one they share. For bigger numbers, prime factorization or the Euclidean algorithm is quicker.

How do you find the GCF using prime factorization?

Write each number as a product of primes, then multiply the primes that appear in every number, using the lowest power of each.

What is the GCF of 12 and 18?

The GCF of 12 and 18 is 6. The factors of 12 are 1, 2, 3, 4, 6, 12 and the factors of 18 are 1, 2, 3, 6, 9, 18, so the largest shared factor is 6.

What is the Euclidean algorithm?

It is a method for finding the GCF by repeated division: divide the larger number by the smaller, replace the pair with the smaller number and the remainder, and repeat until the remainder is 0. The last non-zero remainder is the GCF.

How do I know whether to use GCF or LCM?

Use the GCF for splitting things into the largest equal groups with nothing left over. Use the LCM for finding when repeating events next happen together.

Can the GCF of two numbers be one of the numbers?

Yes. If the smaller number divides the larger exactly, the smaller number is the GCF, for example GCF(8, 32) = 8.

This GCF calculator is a free educational tool. It works with positive whole numbers up to one trillion. Check homework answers against your teacher's preferred method, because some classes require the steps to be shown in a specific way.

Sawera Shahid

About the author

Sawera Shahid is the founder and lead writer of Calculators360. She builds the site's free online calculators and writes clear, step-by-step guides on finance, math and health, with every formula explained and worked examples you can check by hand.

© 2026 Calculators360. Free calculators for math, finance and health. Privacy · About · Contact

Leave a Reply

Your email address will not be published. Required fields are marked *