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.

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 . 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.
- Write the factor pairs of the smaller number, starting at 1.
- Put those factors in order.
- Starting with the largest, divide the larger number by each factor.
- The first factor that divides with no remainder is the GCF.
Take 42 and 70. The factor pairs of 42 are , , and . 42 doesn't go into 70, and 21 leaves a remainder of 7. Then exactly, so the GCF is 14.

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.
- Break each number into primes with a factor tree.
- Match the primes the two numbers share, one copy at a time.
- Multiply the matched primes.
They share one 2 and one 3. The number 84 has a second 2, but 90 doesn't.

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 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.
Check: and , which share only 1.
Example 3
Find the GCF of 14 and 42.
Start with 14 itself, the biggest factor of 14.
It divides exactly, so the GCF is 14. A GCF can equal the smaller number.
Example 4
Find the GCF of 35 and 64.
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.
Take each shared prime to its smaller power.
Check: and .
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.
Divide each amount by 12 to undo the equal grouping.
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 by their GCF, 12, gives 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 , using the distributive property. In 7th grade the same move factors into .
- 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 , so the only candidates are 1, 2, 3, 4, 6 and 12. Since and , 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 and , 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 . 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.

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, . 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.
Read More
- Multiples for 4th Grade
- Common Denominators
- Properties of Operations
- Factoring Methods
- Composite Numbers
Research Behind This Article
- D. E. Joyce, Clark University, Euclid's Elements, Book VII, Proposition 2 (2002). clarku.edu
- J. J. O'Connor and E. F. Robertson, MacTutor, University of St Andrews, Euclid of Alexandria (1999). st-andrews.ac.uk
- Common Core State Standards Initiative, Grade 6, The Number System (2010). thecorestandards.org
- OpenStax, Elementary Algebra 2e, 7.1 Greatest Common Factor and Factor by Grouping (2020). openstax.org
- 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?
How can I help my child find the greatest common factor?
Can a calculator help students find the prime factors?
What is the greatest common factor of two prime numbers?
Is the GCF greater than the LCM?
What is the greatest common factor of 24 and 36?




