Home/Math/GCF / GCD Calculator

GCF / GCD Calculator

Calculate the Greatest Common Factor (GCF), also called Greatest Common Divisor (GCD) or Highest Common Factor (HCF), of two or more numbers.

Quick Answer: How Do You Find the Greatest Common Factor?

The greatest common factor (GCF) is the largest number that divides two or more numbers exactly. To find it, list the factors of each number and pick the biggest one they share, or divide their prime factorizations. For example, the GCF of 12 and 18 is 6. GCF is also called the greatest common divisor (GCD) or highest common factor (HCF). This calculator shows every step.

Enter Numbers

Show method:
Result
Greatest Common Factor
12
GCF(48, 36, 60)

What Is the Greatest Common Factor (GCF)?

The greatest common factor is the largest whole number that divides two or more integers with no remainder. It is a key idea in number theory and arithmetic, used to simplify fractions, share amounts evenly and solve everyday problems. The GCF goes by three names that mean the same thing: greatest common factor (GCF), greatest common divisor (GCD) and highest common factor (HCF).

Three Methods to Find the GCF

There are three reliable ways to find the GCF. This calculator uses them so you can see the full working.

1. Listing factors: list all factors of each number, pick the largest shared one
2. Prime factorization: multiply the prime factors they share
3. Euclidean algorithm: GCF(a,b) = GCF(b, a mod b) until the remainder is 0

Worked Examples

1. Listing Factors — GCF of 12 and 18

Factors of 12: 1, 2, 3, 4, 6, 12
Factors of 18: 1, 2, 3, 6, 9, 18
Largest shared factor: 6

2. Prime Factorization — GCF of 48 and 36

48 = 2 × 2 × 2 × 2 × 3
36 = 2 × 2 × 3 × 3
Shared primes: 2 × 2 × 3 = 12

3. Euclidean Algorithm — GCF of 60 and 48

60 mod 48 = 12, so GCF(60,48) = GCF(48,12)
48 mod 12 = 0, so the answer is 12

4. Three Numbers — GCF of 48, 36 and 60

GCF(48, 36) = 12
GCF(12, 60) = 12
So GCF(48, 36, 60) = 12
📘 Why prime factorization works: Every number is built from prime "building blocks." The GCF is made of exactly the primes that appear in all the numbers, each taken the fewest times it appears. Multiplying those shared primes gives the biggest factor common to every number.

Comparison Tables

These tables clarify how GCF relates to LCM and how the methods compare.

FeatureGCF (Greatest Common Factor)LCM (Least Common Multiple)
MeaningLargest factor shared by the numbersSmallest multiple shared by the numbers
Result sizeNever larger than the smallest numberNever smaller than the largest number
Main useSimplifying fractions, sharing evenlyAdding fractions, repeating events
Example (12 & 18)636
MethodBest ForNotes
Listing factorsSmall numbersSimple but slow for large values
Prime factorizationMedium numbersShows shared structure clearly
Euclidean algorithmLarge numbersFastest; no factoring needed
NumbersGCFShared Factors
8 and 1241, 2, 4
15 and 2551, 5
24 and 36121, 2, 3, 4, 6, 12
7 and 1311 (coprime)
💡 Did You Know? The Euclidean algorithm, used to find the GCD, is over 2,000 years old — it appears in Euclid's Elements from around 300 BC. It is still one of the most efficient methods in modern computing and cryptography.
Pro Tip: When one number divides another evenly, the smaller number IS the GCF. For example, GCF(6, 24) = 6, because 6 divides 24 exactly. Spotting this saves time before you start factoring.
⚠️ Common Mistake: Don't confuse GCF with LCM. The GCF is the largest factor shared by the numbers (small), while the LCM is the smallest multiple they share (large). GCF(4,6) = 2, but LCM(4,6) = 12.

Real-Life Applications of GCF

GCF Formula Cheat Sheet

Quick Reference

List factors: find the largest factor shared by all numbers
Prime factorization: multiply the primes common to every number
Euclidean: GCF(a,b) = GCF(b, a mod b) until remainder = 0
Three or more: GCF(a,b,c) = GCF(GCF(a,b), c)
Link to LCM: GCF(a,b) × LCM(a,b) = a × b
Coprime numbers: GCF = 1

Practice Questions

Beginner (with answers)

  1. Find the GCF of 8 and 12.
  2. Find the GCF of 9 and 15.
  3. Find the GCF of 10 and 20.
  4. Find the GCF of 14 and 21.
  5. Find the GCF of 6 and 6.
Show answers

1) 4   2) 3   3) 10   4) 7   5) 6

Advanced (with answers)

  1. Find the GCF of 48, 36 and 60.
  2. Find the GCF of 84 and 126 using prime factorization.
  3. Use the Euclidean algorithm for GCF(1071, 462).
  4. Are 17 and 34 coprime? What is their GCF?
  5. Simplify 45/60 using the GCF.
Show answers

1) 12   2) 84 = 2²×3×7, 126 = 2×3²×7 → shared 2×3×7 = 42   3) 1071 mod 462 = 147; 462 mod 147 = 21; 147 mod 21 = 0 → GCF = 21   4) Not coprime; 17 divides 34, so GCF = 17   5) GCF(45,60) = 15 → 45/60 = 3/4

When Is the GCF Used?

The greatest common factor appears across mathematics and everyday problem-solving:

🔑 Key Takeaways

  • The GCF is the largest number that divides two or more integers exactly
  • GCF, GCD and HCF are three names for the same thing
  • Find it by listing factors, prime factorization or the Euclidean algorithm
  • For three or more numbers, find the GCF two at a time
  • If numbers share no factor except 1, they are coprime and the GCF is 1

Frequently Asked Questions

What is GCF?

GCF stands for greatest common factor. It is the largest whole number that divides two or more integers exactly, with no remainder. For example, the GCF of 12 and 18 is 6, because 6 is the biggest number that divides both. GCF is widely used to simplify fractions and share amounts evenly.

What is GCD?

GCD stands for greatest common divisor. It is exactly the same as the greatest common factor (GCF) — the largest number that divides two or more integers without a remainder. The term "divisor" is common in higher mathematics and computing, while "factor" is more common in schools.

What is HCF?

HCF stands for highest common factor. It is another name for the greatest common factor (GCF) and greatest common divisor (GCD). All three terms describe the same value: the largest number that divides the given integers exactly. HCF is the term most often used in British and Australian schools.

Are GCF, GCD and HCF the same?

Yes. Greatest common factor (GCF), greatest common divisor (GCD) and highest common factor (HCF) are three names for the same concept — the largest number that divides two or more integers exactly. Different regions and textbooks simply prefer different names.

How do you find the GCF?

List the factors of each number and choose the largest they share, or use prime factorization and multiply the shared primes. For larger numbers, the Euclidean algorithm is fastest. This calculator shows the prime-factorization steps so you can follow the method and check your work.

How do you find the GCF of three numbers?

Find the GCF of the first two numbers, then find the GCF of that result with the third number. For example, for 48, 36 and 60: GCF(48, 36) = 12, then GCF(12, 60) = 12. This calculator accepts several numbers separated by commas and does this automatically.

Can the GCF be 1?

Yes. When two or more numbers share no common factor other than 1, their GCF is 1 and they are called coprime or relatively prime. For example, 8 and 15 have a GCF of 1. This is common when numbers have no prime factors in common.

Can the GCF be negative?

No. The greatest common factor is conventionally reported as a positive integer. This calculator accepts positive whole numbers only. In mathematics, when negative integers are considered, their absolute values are normally used to determine the positive GCF.

What is the Euclidean algorithm?

The Euclidean algorithm is a fast method for finding the GCF. You replace the larger number with the remainder of dividing it by the smaller number, and repeat until the remainder is zero. The last non-zero remainder is the GCF. It avoids factoring, so it is very efficient for large numbers.

What is prime factorization?

Prime factorization breaks a number into the prime numbers that multiply to make it — for example, 48 = 2 × 2 × 2 × 2 × 3. To find the GCF, you multiply the prime factors that appear in every number, each taken the fewest number of times it appears.

Why is the GCF important?

The GCF simplifies fractions to their lowest terms, helps share quantities into the largest equal groups, and appears in ratios, algebra and number theory. It is a practical tool for cooking, construction, packaging and design, as well as a core classroom skill.

What is the difference between GCF and LCM?

The GCF is the largest factor shared by the numbers, while the least common multiple (LCM) is the smallest multiple they share. GCF(4, 6) = 2, but LCM(4, 6) = 12. They are linked by the rule GCF(a, b) × LCM(a, b) = a × b.

Does this GCF calculator show the steps?

Yes. It finds the greatest common factor of two or more numbers and shows the prime factorization and shared factors, so you can see how the answer is reached. That makes it useful for checking homework and learning the method, not just getting a result.

References

Last updated: July 2026
Reviewed by Mohsin Iqbal using standard mathematical principles and trusted educational references. This page is for educational purposes.