Greatest Common Factor Calculator
Greatest Common Factor Calculator
The greatest common factor (GCF or GCD or HCF) of a set of whole numbers is the largest
positive integer that divides evenly into all numbers with zero remainder. For example, for
the set of numbers 18, 30 and 42 the GCF = 6.
Factoring
To find the GCF by factoring, list out all of the factors of each number or find them with
a Factors Calculator. The whole number factors are numbers that divide evenly into the
number with zero remainder. Given the list of common factors for each number, the GCF is
the largest number common to each list.
The factors of 120 are 1, 2, 3, 4, 5, 6, 8, 10, 12, 15, 20, 24, 30, 40, 60, 120.
The common factors of 20, 50 and 120 are 1, 2, 5 and 10. (Include only the
factors common to all three numbers.)
Prime Factorization
To find the GCF by prime factorization, list out all of the prime factors of each number or find
them with a Prime Factors Calculator. List the prime factors that are common to each of the
original numbers. Include the highest number of occurrences of each prime factor that is
common to each original number. Multiply these together to get the GCF.
You will see that as numbers get larger the prime factorization method may be easier than
straight factoring.
The occurrences of common prime factors of 20, 50 and 120 are 2 and 5.
Euclid's Algorithm
What do you do if you want to find the GCF of more than two very large numbers such as
182664, 154875 and 137688? It's easy if you have a Factoring Calculator or a Prime
Factorization Calculator or even the GCF calculator shown above. But if you need to do the
factorization by hand it will be a lot of work.
27 - 18 = 9
18 - 9 - 9 = 0
So, the greatest common factor of 18 and 27 is 9, the smallest result we had
before we reached 0.
50 - 20 - 20 = 50 - (20 * 2) = 10
20 - 10 - 10 = 20 - (10 * 2) = 0
Now let's find the GCF of our third value, 20, and our result, 10. GCF (20,10)
20 - 10 - 10 = 20 - (10 * 2) = 0
354 - (177 * 2) = 0
So, the the greatest common factor of 182664 and 154875 is 177.
177 - (159 * 1) = 18
159 - (18 * 8) = 15
18 - (15 * 1) = 3
15 - (3 * 5) = 0