How to Find the Greatest Common Factor: Methods and Examples

#6th Grade Math#The Number System#Greatest Common Factor
TL;DR
Knowing how to find the greatest common factor means finding the largest number that divides two numbers with no remainder. Two methods, a quick check and six worked examples follow.
Bhanzu TeamLast updated on December 2, 202614 min read

Key Points

  • The greatest common factor of two whole numbers is the largest number that divides both exactly, so the GCF of 24 and 40 is 8.
  • Learning how to find the greatest common factor comes down to listing factors for small numbers or prime factorization for numbers with many factors.
  • Dividing both numbers by a proposed GCF checks the answer, because the two quotients must share no factor other than 1.
  • Common Core standard 6.NS.B.4 asks 6th graders to find the GCF of two whole numbers up to 100.

The biggest tile that fits both ways

A bulletin board 24 inches tall and 40 inches wide needs square cards. Every card must be the same size, none can be cut, and no gap can show.

One-inch cards would work (all 960 of them). The largest card that fits is 8 inches on a side, and just 15 of those cover the board.

That 8 is the greatest common factor of 24 and 40. Euclid, a Greek mathematician in Alexandria, wrote down a method for finding it about 2,300 years ago in Book VII of the Elements. The same idea helps plan square floor tiles with no cuts, and it sits inside the math computers use to prove a message is genuine.

A 24 by 40 rectangle tiled by 15 squares, each 8 by 8, showing the GCF of 24 and 40.
A 24 inch by 40 inch rectangle covered by 8 inch square tiles in 3 rows of 5, which makes 15 tiles with no gaps and no cut tiles.

What is the greatest common factor of two numbers?

Learning how to find the greatest common factor (GCF) is a search for one number, the biggest whole number that goes into both of your numbers exactly. A factor of a number divides it with no remainder, so 8 is a factor of 24. A common factor divides both numbers, and the GCF is the largest one.

Number Its factors
24 1, 2, 3, 4, 6, 8, 12, 24
40 1, 2, 4, 5, 8, 10, 20, 40
Shared by both 1, 2, 4, 8

So GCF(24,40)=8\text{GCF}(24, 40) = 8. In the tile picture, a card size works only when it fits evenly into both 24 and 40, which is exactly what a common factor does.

Your child meets this in Common Core standard 6.NS.B.4, which asks for the GCF of two whole numbers up to 100. It builds on 4th grade factor pairs, and the vocabulary alone sits on the greatest common factor terms page.

How do you find the GCF by listing factors?

List the factors of the smaller number, then check each one against the larger number, starting from the biggest.

  1. Write the factor pairs of the smaller number, starting at 1.
  2. Put those factors in order.
  3. Starting with the largest, divide the larger number by each factor.
  4. The first factor that divides with no remainder is the GCF.

Take 42 and 70. The factor pairs of 42 are 1×421 \times 42, 2×212 \times 21, 3×143 \times 14 and 6×76 \times 7. 42 doesn't go into 70, and 21 leaves a remainder of 7. Then 70÷14=570 \div 14 = 5 exactly, so the GCF is 14.

Listing the factors of 42 and checking them against 70 from the largest down to find the GCF 14.
The factor pairs of 42 written as 1 times 42, 2 times 21, 3 times 14 and 6 times 7, with 42 and 21 crossed out for 70 and 14 circled because 70 equals 14 times 5.

Children often list factors in whatever order they think of them (2, 7, 3, 14) and then miss one. Pairing 1 with 42, then 2 with 21, and moving up one number at a time keeps every factor in view. Divisibility rules speed up step 3 too.

Listing gets slow when both numbers have many factors. The numbers 72 and 96 have 12 factors each, and one missed pair gives a wrong answer that looks right.

Try It Yourself

Slide the tile size and watch whether the square tiles fill the rectangle with no gap at the edges. Find the largest tile that fits both sides exactly, then read the multiplication facts in the readout to see why it's the greatest common factor.

Why does prime factorization find the GCF?

Prime factorization finds the GCF because every factor of a number is built from that number's primes, so the greatest shared factor uses every prime the two numbers share. A prime number has exactly two factors, 1 and itself. Primes first show up in 4th grade, and a quick review of prime numbers helps before you draw factor trees.

  1. Break each number into primes with a factor tree.
  2. Match the primes the two numbers share, one copy at a time.
  3. Multiply the matched primes.
84=2×2×3×784 = 2 \times 2 \times 3 \times 7
90=2×3×3×590 = 2 \times 3 \times 3 \times 5

They share one 2 and one 3. The number 84 has a second 2, but 90 doesn't.

GCF(84,90)=2×3=6\text{GCF}(84, 90) = 2 \times 3 = 6
Two factor trees showing how to find the greatest common factor of 84 and 90 by matching primes.
Factor trees for 84 and 90, with 84 split into 2, 2, 3 and 7 and 90 split into 2, 3, 3 and 5, and the shared 2 and 3 highlighted to give a GCF of 6.

Any common factor of 84 and 90 is a product of primes found in both lists. Tucking in the 7 or the 5 makes a number that fails to divide one of them. With exponents, the rule becomes "take each shared prime to its smaller power," as in Example 5.

The ladder method (sometimes called upside-down division) does the same job. Divide both numbers by a shared prime, write the quotients underneath, and repeat until they share only 1. For 84 and 90, dividing by 2 gives 42 and 45, then dividing by 3 gives 14 and 15, so the GCF is 2×3=62 \times 3 = 6 again.

Which word problems need the GCF?

A word problem needs the GCF when it splits two amounts into the largest possible equal groups with nothing left over.

Words in the problem Math it means
"greatest number of identical bags" GCF of the two amounts
"with nothing left over" the answer divides both amounts
"largest square card that covers the board" GCF of the two side lengths
"how many of each item in one bag" divide each amount by the GCF
"when will both happen together again" LCM, not GCF

A multiple comes from multiplying a number by 1, 2, 3 and so on, so multiples grow while factors shrink. The least common multiple (LCM) answers the opposite question. A size check settles most mix-ups, since the GCF is never bigger than the smaller number.

Examples of how to find the greatest common factor

Example 1

Find the GCF of 18 and 27 by listing factors.

Factors of 18 are 1, 2, 3, 6, 9 and 18.

Factors of 27 are 1, 3, 9 and 27.

The shared factors are 1, 3 and 9, so the GCF is 9.

Example 2

Find the GCF of 16 and 40.

The tempting move is to see that both are even and answer 2. That's a common factor, but dividing by 2 leaves 8 and 20, which still share 4, so a bigger one exists.

Work down the factors of 16 instead. 16 doesn't go into 40, but 8 does.

GCF(16,40)=8\text{GCF}(16, 40) = 8

Check: 16÷8=216 \div 8 = 2 and 40÷8=540 \div 8 = 5, which share only 1.

Example 3

Find the GCF of 14 and 42.

Start with 14 itself, the biggest factor of 14.

42÷14=342 \div 14 = 3

It divides exactly, so the GCF is 14. A GCF can equal the smaller number.

Example 4

Find the GCF of 35 and 64.

35=5×735 = 5 \times 7
64=2664 = 2^6

No prime appears in both, so the GCF is 1. Numbers like these are called relatively prime, even though neither one is prime.

Example 5

Use prime factorization to find the GCF of 72 and 96.

72=23×3272 = 2^3 \times 3^2
96=25×396 = 2^5 \times 3

Take each shared prime to its smaller power.

GCF(72,96)=23×3=24\text{GCF}(72, 96) = 2^3 \times 3 = 24

Check: 72÷24=372 \div 24 = 3 and 96÷24=496 \div 24 = 4.

Example 6

Coach Rivera has 48 bottles of water and 60 granola bars to pack into identical snack bags with nothing left over. What is the greatest number of bags, and what goes in each?

The bag count must divide both amounts and be as large as possible, so this is a GCF problem.

48=2×2×2×2×348 = 2 \times 2 \times 2 \times 2 \times 3
60=2×2×3×560 = 2 \times 2 \times 3 \times 5
GCF(48,60)=2×2×3=12\text{GCF}(48, 60) = 2 \times 2 \times 3 = 12

Divide each amount by 12 to undo the equal grouping.

48÷12=448 \div 12 = 4
60÷12=560 \div 12 = 5

Coach Rivera can make 12 bags, each with 4 bottles of water and 5 granola bars.

Sharing, tiling and simplifying with the GCF

The GCF exists because so many jobs come down to one demand, the biggest equal piece that fits two amounts exactly.

  • Simplifying fractions. Dividing the top and bottom of 3648\frac{36}{48} by their GCF, 12, gives 34\frac{3}{4} in one step instead of several.
  • Sharing with no leftovers. The 12 snack bags in Example 6 are the most that work.
  • Tiling with no waste. The 8-inch cards are the largest squares that cover the 24-by-40-inch board.
  • Rewriting sums. The same 6th grade standard also asks for sums like 42+70=14(3+5)42 + 70 = 14(3 + 5), using the distributive property. In 7th grade the same move factors 6x+96x + 9 into 3(2x+3)3(2x + 3).
  • Keeping digital signatures safe. In the Digital Signature Standard published February 3, 2023, the National Institute of Standards and Technology has computers confirm that a greatest common divisor equals 1 while building signing keys.

Greatest common divisor is just another name for the GCF. Without it, each of these jobs turns into slow guessing, one size at a time.

What most guides miss about the greatest common factor

The GCF of two numbers also divides their difference, and that shrinks big problems.

Take 84 and 96. Any number dividing both must divide 96−84=1296 - 84 = 12, so the only candidates are 1, 2, 3, 4, 6 and 12. Since 84=12×784 = 12 \times 7 and 96=12×896 = 12 \times 8, the GCF is 12. This is Euclid's subtraction idea in miniature, and it works best when the two numbers sit close together on the number line.

The second thing guides skip is proof. Divide both numbers by your answer. If the quotients still share a factor bigger than 1, a bigger GCF exists. Here 7 and 8 share only 1, so 12 is truly the greatest.

The names don't help. The greatest common factor is the small answer and the least common multiple is the big one, and that flip stays confusing until the size check becomes a habit.

Where do kids trip up on the greatest common factor?

Mistake 1: Giving the LCM in a sharing problem

Where it slips in: Equal-group word problems like Example 6, where the word "greatest" pulls kids toward a big number.

Don't do this: Answering 240 bags for 48 bottles and 60 granola bars, because 240 is the least common multiple of 48 and 60.

The correct way: 240 bags would need far more than 48 bottles. The GCF, 12, gives 12 bags with 4 bottles and 5 bars in each.

Mistake 2: Matching a repeated prime only once

Where it slips in: Prime factorization when a prime appears more than once in both numbers, as in 40 and 100.

Don't do this: Writing 40=2×2×2×540 = 2 \times 2 \times 2 \times 5 and 100=2×2×5×5100 = 2 \times 2 \times 5 \times 5, circling one 2 and one 5, and answering 10.

The correct way: The two lists share two 2s and one 5, so the GCF is 2×2×5=202 \times 2 \times 5 = 20. Dividing by 20 leaves 2 and 5, which share only 1, while 10 leaves 4 and 10, which still share 2.

Kids often circle the first 2 in each tree and move on, because the second 2 sits on a different branch. Crossing off each matched pair fixes the habit.

Wrong versus right GCF of 40 and 100, showing 10 is too small and 20 is the greatest common factor.
Side-by-side panels for 40 and 100, where the wrong panel matches one 2 and one 5 to get 10 with leftovers 4 and 10, and the right panel matches two 2s and one 5 to get 20 with leftovers 2 and 5.

Mistake 3: Multiplying every prime from both numbers

Where it slips in: Right after drawing two factor trees, when all the primes land on one line.

Don't do this: For 84 and 90, multiplying all eight primes to get 7,560.

The correct way: Multiply only the shared primes, 2×3=62 \times 3 = 6. A GCF can never be bigger than the smaller number, and 7,560 is far bigger than 84.

Key Takeaways

  • A GCF is the side of the largest square tile that fits both numbers exactly, so it can equal the smaller number but never pass it.
  • Listing suits a small number with few factors, and prime factorization takes over when both numbers have many.
  • Knowing how to find the greatest common factor pays off fastest in word problems about the largest equal groups.
  • For more practice on GCF word problems and the repeated-prime slip, explore Bhanzu's 6th grade math curriculum or math classes for kids.

A Practical Next Step

Find the greatest common factor for each problem below, then prove each answer with the leftover check.

  1. Find the GCF of 30 and 45.
  2. Find the GCF of 56 and 84.
  3. A craft table has 63 red beads and 81 blue beads. What is the greatest number of identical bead kits with nothing left over?

Answers: 1. 15. 2. 28. 3. 9 kits, each with 7 red beads and 9 blue beads.

Practice these to solidify your understanding. If matching repeated primes catches you, return to Mistake 2. Want a live Bhanzu trainer to walk through more greatest common factor problems? Book a free demo class, online globally, or in person at our McKinney, TX center.

Read More

Research Behind This Article

  1. D. E. Joyce, Clark University, Euclid's Elements, Book VII, Proposition 2 (2002). clarku.edu
  2. J. J. O'Connor and E. F. Robertson, MacTutor, University of St Andrews, Euclid of Alexandria (1999). st-andrews.ac.uk
  3. Common Core State Standards Initiative, Grade 6, The Number System (2010). thecorestandards.org
  4. OpenStax, Elementary Algebra 2e, 7.1 Greatest Common Factor and Factor by Grouping (2020). openstax.org
  5. National Institute of Standards and Technology, FIPS 186-5, Digital Signature Standard (DSS) (2023). csrc.nist.gov

Quick Quiz: Check Yourself

Three levels, new numbers every time: find the GCF of two numbers up to 30, find it for two numbers up to 100, then solve an equal-groups word problem.

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

Are GCF and HCF the same?
Yes, HCF stands for highest common factor, another name for the same number.
How can I help my child find the greatest common factor?
Learning how to find the greatest common factor rests on quick multiplication facts, so short factor-pair lists at home and GCF word problems about sharing snacks help most. If your child gets the arithmetic right but freezes on word problems, the trouble is usually reading or confidence rather than math. Talk to the teacher first if multiplication facts are shaky, and consider a tutor only if your child is about two grade levels behind on that foundation. A guide on how to teach middle school math can help with pacing.
Can a calculator help students find the prime factors?
Yes, it speeds up the dividing in GCF prime factorization, but it doesn't decide which primes are shared. The gcf ladder method makes that matching step visible on paper.
What is the greatest common factor of two prime numbers?
It's 1 when the primes are different, because each prime's only factors are 1 and itself (if both numbers are the same prime, such as 7 and 7, the GCF is that prime).
Is the GCF greater than the LCM?
No. For two whole numbers above 0, the GCF divides both numbers and both numbers divide the LCM, so the GCF is never the bigger one. For 48 and 60 they are 12 and 240.
What is the greatest common factor of 24 and 36?
It's 12. Following the steps for how to find the greatest common factor in "Why does prime factorization find the GCF?", 24 and 36 share two 2s and one 3, and 2×2×3=122 \times 2 \times 3 = 12. That's typical greatest common factor 6th grade work.
✍️ Written By
Bhanzu Team
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →