GCF/HCF/GCD Calculator • 2026 Edition
Euclidean Algorithm: GCF(a,b) = GCF(b, a mod b)
Prime Factorization: Product of common prime factors
Listing Method: Find largest common factor
Where:
Example: For 48 and 18 using Euclidean algorithm:
GCF(48, 18) = GCF(18, 48 mod 18) = GCF(18, 12)
GCF(18, 12) = GCF(12, 18 mod 12) = GCF(12, 6)
GCF(12, 6) = GCF(6, 12 mod 6) = GCF(6, 0) = 6
Therefore, GCF(48, 18) = 6.
Numbers: 48, 18
Method: Euclidean Algorithm
GCF: 6
LCM × GCF = Product of numbers
144 × 6 = 48 × 18 = 864
| Number | Prime Factorization | Common Factors | GCF Contribution |
|---|---|---|---|
| 48 | 2⁴ × 3 | 2, 2, 2, 3 | 2 × 3 = 6 |
| 18 | 2 × 3² | 2, 3 | 2 × 3 = 6 |
The Greatest Common Factor (GCF), also known as Highest Common Factor (HCF) or Greatest Common Divisor (GCD), is the largest positive integer that divides two or more numbers without leaving a remainder. It's fundamental in number theory and algebra.
Three primary methods for finding the GCF:
Where:
Practical uses of GCF:
The largest positive integer that divides two or more numbers without remainder.
Euclidean Algorithm, Prime Factorization, Listing Method
Most efficient for different scenarios.
Different approaches for different situations.
What is the definition of the Greatest Common Factor (GCF) of two numbers?
The answer is C) The largest positive integer that divides both numbers without remainder. The GCF is the greatest number that can evenly divide both given numbers, leaving no remainder. For example, GCF(12, 18) = 6 because 6 is the largest number that divides both 12 and 18 without remainder.
The key concept is that the GCF must divide both numbers evenly. It's the "greatest" or largest such number. Students often confuse this with the Least Common Multiple (LCM), which is the smallest number that both original numbers divide into. Understanding the difference is crucial for proper application.
GCF: Greatest Common Factor - largest divisor of given numbers
Divides without remainder: Division results in whole number
Positive integer: Whole number greater than zero
• GCF divides both numbers evenly
• Must be the largest such number
• Always positive for positive inputs
• Think "greatest" and "divide"
• Check by division
• GCF ≤ smaller number
• Confusing with LCM
• Thinking it's a multiple instead of divisor
• Not checking if it's the greatest
Find the GCF of 36 and 48 using the Euclidean Algorithm. Show your work.
Using the Euclidean Algorithm: GCF(a,b) = GCF(b, a mod b)
Step 1: GCF(36, 48) = GCF(48, 36 mod 48) = GCF(48, 36)
Step 2: GCF(48, 36) = GCF(36, 48 mod 36) = GCF(36, 12)
Step 3: GCF(36, 12) = GCF(12, 36 mod 12) = GCF(12, 0)
Step 4: GCF(12, 0) = 12
Therefore, GCF(36, 48) = 12.
The Euclidean Algorithm is highly efficient because it reduces the problem size with each iteration. The algorithm continues until one number becomes 0, at which point the other number is the GCF. This method works because the GCF of two numbers is the same as the GCF of the smaller number and the remainder of their division.
Euclidean Algorithm: Efficient recursive method for finding GCF
Modulo operation: Finding remainder after division
Recursive: Function calling itself with simpler inputs
• GCF(a,b) = GCF(b, a mod b)
• Continue until remainder is 0
• GCF(a,0) = a
• Always make sure a ≥ b
• Swap if needed: GCF(a,b) = GCF(b,a)
• Very efficient for large numbers
• Incorrect modulo calculation
• Not continuing until remainder is 0
• Forgetting the final step
A teacher has 24 pencils and 36 erasers. She wants to create identical gift bags with the same number of pencils and erasers in each bag, using all items. What is the greatest number of gift bags she can make? How many pencils and erasers will be in each bag?
Step 1: Identify the problem
We need to find the largest number that divides both 24 and 36 evenly.
Step 2: Find GCF(24, 36)
Factors of 24: 1, 2, 3, 4, 6, 8, 12, 24
Factors of 36: 1, 2, 3, 4, 6, 9, 12, 18, 36
Common factors: 1, 2, 3, 4, 6, 12
Greatest common factor: 12
Step 3: Calculate contents per bag
Pencils per bag: 24 ÷ 12 = 2 pencils
Erasers per bag: 36 ÷ 12 = 3 erasers
Therefore, she can make 12 gift bags with 2 pencils and 3 erasers each.
This problem demonstrates a practical application of GCF. When distributing items equally into groups, the GCF gives us the maximum number of groups possible. The GCF ensures that all items are used without any leftovers, and each group gets the same number of each type of item.
Identical groups: Same number of each item in each group
Distribute equally: No items left over
Maximum groups: Using GCF to find largest possible number
• Use GCF for equal distribution
• All items must be used
• Each group same size
• Look for "equal groups" keywords
• GCF = maximum number of groups
• Divide total by GCF for per-group amount
• Using LCM instead of GCF
• Not using all items
• Unequal distribution
Find the GCF of 60 and 84 using prime factorization. Then explain why this method works.
Step 1: Find prime factorization of 60
60 = 4 × 15 = 2² × 3 × 5
Step 2: Find prime factorization of 84
84 = 4 × 21 = 2² × 3 × 7
Step 3: Identify common prime factors
Common factors: 2² and 3
Step 4: Multiply common factors
GCF = 2² × 3 = 4 × 3 = 12
Verification: 60 ÷ 12 = 5, 84 ÷ 12 = 7 (both integers)
This method works because the GCF must contain only the prime factors that appear in both numbers, raised to the lowest power present in either number.
The prime factorization method is systematic and works for any numbers. It breaks down each number into its fundamental building blocks (prime numbers). The GCF can only contain prime factors that appear in both numbers, and only as many times as the minimum occurrence in either number. This ensures we get the largest number that divides both.
Prime factorization: Expressing number as product of primes
Common factors: Primes that appear in both factorizationsSystematic method: Consistent, reliable approach
• Use only common prime factors
• Use lowest power of each common prime
• Multiply to get GCF
• Organize prime factors systematically
• Circle common primes
• Use lowest exponent
• Including non-common primes
• Using highest instead of lowest powers
• Calculation errors in factorization
Which of the following statements about GCF is ALWAYS true?
The answer is B) GCF(a,b) ≤ min(a,b). The GCF of two numbers is always less than or equal to the smaller of the two numbers. This is because the GCF must divide both numbers, so it cannot be larger than either of them. For example, GCF(12, 18) = 6, which is less than both 12 and 18.
This property helps verify our answers. If we calculate a GCF that's larger than either of the original numbers, we know we made an error. The GCF represents the largest shared divisor, so it must fit into both original numbers. This constraint helps bound our search and verify results.
GCF property: Mathematical characteristic of GCF
Upper bound: Maximum possible value
Verification: Checking reasonableness of answer
• GCF ≤ smaller number
• GCF ≥ 1 for positive integers
• GCF(a,b) divides both a and b
• Check if GCF ≤ smaller number
• Verify by division
• Use as verification tool
• Getting GCF larger than original numbers
• Not verifying reasonableness
• Confusing with LCM properties
Q: What's the difference between GCF and LCM?
A: The Greatest Common Factor (GCF) and Least Common Multiple (LCM) are complementary concepts:
GCF (Greatest Common Factor):
LCM (Least Common Multiple):
Smallest number that both numbers divide into
Used for finding common denominators
LCM ≥ larger number
There's also a relationship: GCF(a,b) × LCM(a,b) = a × b
Q: How does the Euclidean algorithm work efficiently?
A: The Euclidean algorithm is efficient because it reduces the problem size exponentially:
Key insight: GCF(a,b) = GCF(b, a mod b)
Why it works:
This makes it much faster than listing all factors, especially for large numbers. For example, finding GCF of 1234567 and 9876543 would be impractical with factorization but feasible with Euclidean algorithm.