Back to homeMathematics · Grade 7 · Change subject
Start for free
Math 7 · Mathematics
Numbers · Natural numbers

Greatest Common Factor

Before you start, make sure you know: Prime factorization (Math 6)
Before you start, make sure you know: Multiples and factors of a number (Math 6)

Emma has two strips of LED lights for her room, one $36$ inches long and one $60$ inches long. She wants to cut both into equal pieces, as long as possible, with nothing left over. How long should each piece be? The tool that answers this is the greatest common factor.

What is the GCF?

A factor (or divisor) of a number divides it exactly. Two numbers can share some factors. The biggest shared one is the star of this page.

Some problems call it the highest common factor (HCF) or write it as m.c.d.; it is exactly the same thing as the GCF.

Venn diagram of the factors of 24 and 36, with the common factors in the overlap and 12 marked as the greatest common factor. Factors of 24 Factors of 36 8, 24 9, 18, 36 1, 2, 3, 4, 6, 12 GCF = 12 (the largest common factor)

Listing works well for small numbers. For big numbers it gets long, so the next sections give faster methods.

Practice★☆☆Not started
Observe the divisors of the numbers $24$ and $36$: $Div(24) = \{1, 2, 3, 4, 6, 8, 12, 24\}$ $Div(36) = \{1, 2, 3, 4, 6, 9, 12, 18, 36\}$ From these lists: a) Write the…

Observe the divisors of the numbers $24$ and $36$:

  • $Div(24) = \{1, 2, 3, 4, 6, 8, 12, 24\}$

  • $Div(36) = \{1, 2, 3, 4, 6, 9, 12, 18, 36\}$

From these lists:

  1. a) Write the common divisors of both numbers.
  2. b) Identify which is the largest of these common divisors. What do we call this number?
Solve

Finding the GCF with prime factorization

For bigger numbers, break each one into primes and keep only what they share.

Finding GCF of 36 and 60 from their prime factorizations by keeping the common primes with the lowest exponent. 36 = 2² · 3² 60 = 2² · 3 · 5 GCF = 2² · 3 = 12 only common primes, each with its lowest exponent

The same method works for three or more numbers: a prime must appear in all of them to count. For $40 = 2^3 \cdot 5$, $60 = 2^2 \cdot 3 \cdot 5$ and $100 = 2^2 \cdot 5^2$ the GCF is $2^2 \cdot 5 = 20$.

Practice★☆☆Not started
Calculate the highest common factor of the following numbers using the prime factorization method: a) $12$ and $18$ b) $20$ and $30$ c) $15$ and $25$

Calculate the highest common factor of the following numbers using the prime factorization method:

  1. a) $12$ and $18$
  2. b) $20$ and $30$
  3. c) $15$ and $25$
12 = 2² × 3 18 = 2 × 3² Factors of 12 Factors of 18 2 3 2 3 HCF = 2 × 3 = 6
Solve
Practice★★☆Not started
Calculate the Highest Common Factor of the following groups of numbers using the prime factorization method: a) $m.c.d.(120, 150)$ b) $m.c.d.(72, 108, 144)$ c)…

Calculate the Highest Common Factor of the following groups of numbers using the prime factorization method:

  1. a) $m.c.d.(120, 150)$
  2. b) $m.c.d.(72, 108, 144)$
  3. c) $m.c.d.(45, 60, 105)$

Remember to first express each number as a product of its prime factors and then select the common factors raised to the lowest exponent.

Solve

Coprime numbers

Sometimes two numbers share nothing except $1$.

Venn diagram of the factors of 8 and 15 whose only common factor is 1, so the numbers are coprime. Factors of 8 Factors of 15 2, 4, 8 3, 5, 15 1 GCF(8, 15) = 1, so they are coprime
Practice★☆☆Not started
Two numbers are called coprime if their only common divisor is $1$. Check if the following pairs of numbers are coprime by calculating their highest common factor: a)…

Two numbers are called coprime if their only common divisor is $1$. Check if the following pairs of numbers are coprime by calculating their highest common factor:

  1. a) $8$ and $15$
  2. b) $14$ and $21$
  3. c) $9$ and $20$
Solve

The Euclidean Algorithm

What if the numbers are huge and hard to factor? The Euclidean Algorithm finds the GCF using only division with remainders.

A 30 by 12 rectangle cut into two 12 by 12 squares and two 6 by 6 squares, showing that the GCF of 30 and 12 is 6. 12 × 12 12 × 12 6 × 6 6 × 6 30 = 2 · 12 + 6 12 = 2 · 6 + 0, so GCF(30, 12) = 6

If the algorithm ends with a last divisor of $1$, the numbers are coprime.

Practice★★☆Not started
The Euclidean Algorithm is an ancient and effective method for finding the $m.c.d.$ of two numbers through successive divisions. It consists of dividing the larger by…

The Euclidean Algorithm is an ancient and effective method for finding the $m.c.d.$ of two numbers through successive divisions. It consists of dividing the larger by the smaller; if the remainder is not zero, the divisor is divided by the remainder, and so on until the remainder is zero. The last divisor used is the $m.c.d.$

Use this method to find the $m.c.d.(525, 225)$. Check the result by performing the usual prime factorization afterwards.

Solve
Practice★★★Not started
Use the Euclidean Algorithm to find the $m.c.d.(2\,310, 1\,485)$. Once found, state whether the numbers are coprime and justify your answer based on the divisors…

Use the Euclidean Algorithm to find the $m.c.d.(2\,310, 1\,485)$. Once found, state whether the numbers are coprime and justify your answer based on the divisors obtained during the algorithm process.

Solve

GCF and LCM: a handy relationship

For two numbers, the GCF and the LCM are tied to the numbers by one formula.

Diagram checking that 12 times 18 equals the GCF times the LCM, 6 times 36, both 216. 12 · 18 = 216 GCF = 6 LCM = 36 6 · 36 = 216 ✓ same as 12 · 18
Practice★★☆Not started
It is known that the product of two natural numbers is $2160$ and that their lowest common multiple ($m.c.m.$) is $180$. Using the relationship that exists between the…

It is known that the product of two natural numbers is $2160$ and that their lowest common multiple ($m.c.m.$) is $180$. Using the relationship that exists between the product of two numbers, their $m.c.d.$ and their $m.c.m.$, find out what the Highest Common Factor of these numbers is.

Solve
Practice★★★Not started
Find two natural numbers, which we will call $x$ and $y$, knowing that their product is $x \cdot y = 11\,250$ and that their lowest common multiple is…

Find two natural numbers, which we will call $x$ and $y$, knowing that their product is $x \cdot y = 11\,250$ and that their lowest common multiple is $m.c.m.(x, y) = 750$.

Hint: Use the property that relates the product of two numbers to their HCF and their LCM.

Solve

Word problems: cutting into equal pieces

Now the GCF at work. Whenever a problem asks you to split several amounts into equal parts, as large as possible, with nothing left over, the answer is the GCF.

A 24-inch ribbon cut into two 12-inch pieces and a 36-inch ribbon cut into three 12-inch pieces. 24-inch ribbon: 2 pieces 12 in. 12 in. 36-inch ribbon: 3 pieces 12 in. 12 in. 12 in. GCF(24, 36) = 12 inches
Practice★☆☆Not started
At an adventure camp in the Rockies, the instructors have two climbing ropes: one measures $20$ feet and the other $28$ feet. They want to cut them into equal pieces, of…

At an adventure camp in the Rockies, the instructors have two climbing ropes: one measures $20$ feet and the other $28$ feet. They want to cut them into equal pieces, of the greatest possible length and with no rope left over. How long must each piece be?

20 ft 28 ft ? ft Max. piece
Solve
Practice★☆☆Not started
Ashley has a blue ribbon of $18$ inches and a red ribbon of $24$ inches. She needs to cut them into strips of the same length to make some decorative bows. If she wants…

Ashley has a blue ribbon of $18$ inches and a red ribbon of $24$ inches. She needs to cut them into strips of the same length to make some decorative bows. If she wants the strips to be as long as possible and does not want to waste any ribbon:

  1. a) What will be the length of each strip?
  2. b) How many strips will she get of each color?
Solve
Practice★★☆Not started
A craft shop has two silk ribbons, a crimson one measuring $160$ inches and a turquoise one measuring $120$ inches. They want to cut both ribbons into pieces of the same…

A craft shop has two silk ribbons, a crimson one measuring $160$ inches and a turquoise one measuring $120$ inches. They want to cut both ribbons into pieces of the same length, so that they are as long as possible and no fabric is left over.

  1. a) How long must each piece be?
  2. b) How many crimson pieces will be obtained? And turquoise ones?
L₁ = 160 in x x x x L₂ = 120 in x x x x (HCF)
Solve

Word problems: forming equal groups

The same idea works for people and objects: the biggest group size that fits every collection exactly is the GCF.

36 sixth graders split into 4 teams of 9 and 45 seventh graders split into 5 teams of 9. Grade 6: 36 students, 4 teams 9 9 9 9 Grade 7: 45 students, 5 teams 9 9 9 9 9
Practice★☆☆Not started
In an 8th-grade class, there are $24$ boys and $16$ girls. The Physical Education teacher wants to form teams of the same size, as large as possible, so that in each…

In an 8th-grade class, there are $24$ boys and $16$ girls. The Physical Education teacher wants to form teams of the same size, as large as possible, so that in each team there are only boys or only girls.

  1. a) How many students will there be in each team?
  2. b) How many boys' teams and how many girls' teams will be formed?
Solve
Practice★★☆Not started
For the school's friendly tournament, $48$ 7th-grade students and $60$ 8th-grade students have registered. They want to form teams with the same number of people,…

For the school's friendly tournament, $48$ 7th-grade students and $60$ 8th-grade students have registered. They want to form teams with the same number of people, without mixing students from different grades and so that the teams are as large as possible.

  1. a) How many students will there be in each team?
  2. b) How many 7th-grade teams will there be in total? And 8th-grade?
Solve
Practice★★☆Not started
A food bank has received $210$ cans of tuna, $126$ packets of rice and $84$ jars of beans. They want to prepare the largest possible number of identical aid boxes…

A food bank has received $210$ cans of tuna, $126$ packets of rice and $84$ jars of beans. They want to prepare the largest possible number of identical aid boxes containing all three types of food, so that nothing is left over.

  1. a) How many aid boxes will they be able to prepare?
  2. b) How many products of each type will there be in each of the boxes?
Solve

Tiling floors and walls

To cover a rectangle exactly with the biggest possible square tiles, the side of the tile must divide both the length and the width. So the side is the GCF of the two dimensions.

A floor 84 inches by 60 inches covered by 5 rows and 7 columns of 12-inch square tiles. 84 in. 60 in. 12 in.
Practice★☆☆Not started
We want to decorate a wall in the music classroom that measures $120$ inches high by $180$ inches wide with square cards. If we want the cards to be as large as possible…

We want to decorate a wall in the music classroom that measures $120$ inches high by $180$ inches wide with square cards. If we want the cards to be as large as possible and to cover the wall exactly without having to cut them:

  1. a) What must the side length of each card be?
  2. b) How many cards will we need in total?
180 in 120 in x x
Solve
Practice★★☆Not started
A municipal worker wants to tile a rectangular area of a park that measures $24$ feet long by $18$ feet wide. To do this, he is going to use square tiles as large as…

A municipal worker wants to tile a rectangular area of a park that measures $24$ feet long by $18$ feet wide. To do this, he is going to use square tiles as large as possible and does not want to have to cut any.

  1. a) Determine the side length of each tile.
  2. b) Calculate the total number of tiles that will be needed to cover the entire surface.
Tile l l 24 ft 18 ft
Solve
Practice★★★Not started
An architect is designing the floor of a trophy room for an e-sports* club. The room has a rectangular shape $12,6$ feet long by $7,2$ feet wide. They want to cover the…

An architect is designing the floor of a trophy room for an e-sports club. The room has a rectangular shape $12,6$ feet long by $7,2$ feet wide. They want to cover the floor with square tiles of the largest possible size, so that none have to be cut and the design is perfectly symmetrical.

However, the architect wants to leave a small ventilation channel $60$ inches wide along the entire perimeter of the room, so the actual area to be tiled will be a smaller inner rectangle.

Calculate the side length of the largest tile that can be used to cover this inner rectangle and how many tiles will be needed in total.

Square tile Side = HCF 12.6 ft (1260 in) 7.2 ft (720 in) 1260 - 2(60) = 1140 in 720 - 2(60) = 600 in Ventilation channel 60 in 60
Solve

Extra conditions: limits, fences, and costs

Harder problems add a rule on top of the GCF. Here is a fact that handles most of them.

Fences are another classic. If posts go around a closed shape, the number of posts equals the number of gaps. On a straight line with posts at both ends, there is one more post than there are gaps.

A triangular plot with sides 60, 80 and 100 feet and 12 fence posts spaced 20 feet apart around it. 80 ft 60 ft 100 ft

The GCF also works directly on totals. If several amounts must be split into identical full containers with nothing left over, the best container size or count comes from the GCF of the totals. Read the question to see what the GCF represents.

Practice★★★Not started
A marine wildlife rescue center has received a donation of three heavy-duty hoses to clean the tanks. The lengths of the hoses are $156$ feet, $144$ feet and $108$ feet.…

A marine wildlife rescue center has received a donation of three heavy-duty hoses to clean the tanks. The lengths of the hoses are $156$ feet, $144$ feet and $108$ feet.

They want to cut them into pieces of the same length, with nothing left over, to distribute them among different teams of volunteers. The head of the center sets the condition that the pieces must be as long as possible, but for safety reasons, no piece can measure more than $15$ feet.

What length must each piece be to meet all the conditions? How many volunteers will receive a hose?

Solve
Practice★★★Not started
Imagine you have a plot of land in the shape of a scalene triangle whose sides measure $210$, $270$ and $330$ feet. You want to place wooden posts around the entire…

Imagine you have a plot of land in the shape of a scalene triangle whose sides measure $210$, $270$ and $330$ feet. You want to place wooden posts around the entire perimeter at equal distances, so that there is a post at each vertex and the distance between posts is the maximum possible.

If each post costs $\$14,50$ and the labor to place each one is $\$6$, what will be the total budget to fence the plot?

L₃ = 330 ft L₂ = 270 ft L₁ = 210 ft d d d
Solve
Practice★★★Not started
A logistics company wants to transport three types of goods in identical cubic containers, as large as possible, to make the most of the space in a large cargo…

A logistics company wants to transport three types of goods in identical cubic containers, as large as possible, to make the most of the space in a large cargo warehouse. The quantities of goods are measured in volume:

  • Technology boxes: $1\,512$ $m^3$

  • Food boxes: $1\,848$ $m^3$

  • Textile boxes: $1\,260$ $m^3$

If each container must be filled with only one type of goods and there can be no leftover space in any of them, what must be the volume of each cubic container? How many textile containers will there be in the warehouse?

Technology V₁ = 1512 ft³ Food V₂ = 1848 ft³ Textile V₃ = 1260 ft³ HCF V = l³ l l l
Solve

Scaling and finding unknown numbers

Two more ideas help with "what could the numbers be?" problems.

For example $\text{GCF}(6, 9) = 3$, so $\text{GCF}(60, 90) = 10 \cdot 3 = 30$.

The numbers 15 and 75 drawn as one block of 15 and five blocks of 15, adding to 90. 15 15 15 15 15 15 a = 15·1 b = 15·5 15 · (1 + 5) = 90
Practice★★★Not started
Determine all pairs of natural numbers whose sum is $168$ and whose highest common factor is $m.c.d.(a, b) = 24$. Help: If the HCF is 24, you can write the numbers as…

Determine all pairs of natural numbers whose sum is $168$ and whose highest common factor is $m.c.d.(a, b) = 24$.

Help: If the HCF is 24, you can write the numbers as $a = 24 \cdot p$ and $b = 24 \cdot q$, where $p$ and $q$ must be coprime.

Solve
Practice★★★Not started
We have two natural numbers $A$ and $B$ such that their $m.c.d.(A, B) = 15$. If we multiply the number $A$ by $12$ and the number $B$ by $12$, what will be the new…

We have two natural numbers $A$ and $B$ such that their $m.c.d.(A, B) = 15$. If we multiply the number $A$ by $12$ and the number $B$ by $12$, what will be the new highest common factor of the resulting numbers? Justify your answer by applying the properties of divisors.

Solve

Back to the start: $36 = 2^2 \cdot 3^2$ and $60 = 2^2 \cdot 3 \cdot 5$, so $\text{GCF}(36, 60) = 2^2 \cdot 3 = 12$. Emma cuts $12$-inch pieces: $3$ from the shorter strip and $5$ from the longer one.

Summary

See all the exercises in this section