GCF Calculator
Find the Greatest Common Factor (GCF or HCF) of two or more numbers using the Euclidean algorithm.
---
Visual Graph & Diagram
Interactive mathematical coordinate representation
Calculation Reference Table
Benchmark values and quick reference intervals
How to Calculate Greatest Common Factor (GCF / HCF) Calculator
Step-by-Step Mathematical Solution & Verification
How to Use & Educational Guide
In-depth guide for Greatest Common Factor (GCF / HCF) Calculator
What Is the Greatest Common Factor (GCF)?
The Greatest Common Factor (GCF) is the largest positive integer that divides two or more numbers evenly with zero remainder. Depending on your region or textbook, this exact same value is also known as the Highest Common Factor (HCF) or the Greatest Common Divisor (GCD).
For example, the positive factors of 12 are 1, 2, 3, 4, 6, 12, and the positive factors of 18 are 1, 2, 3, 6, 9, 18. The shared common factors are 1, 2, 3, and 6โmaking 6 the highest common factor. In GCF math, finding this value is the fastest way to simplify fractions to lowest terms and factor algebraic expressions.
How to Find the Greatest Common Factor (3 Methods)
If you want to learn how to find the GCF by hand, you can choose between three reliable methods depending on how large your numbers are:
- Listing Factors (Best for small numbers): Write out all positive factors of each number, circle every factor that appears in all lists, and pick the largest shared factor.
- Prime Factorization (Best for medium numbers): Decompose each number into prime factors, identify the primes shared by all numbers, and multiply them using their lowest exponents.
- Euclidean Algorithm (Best for large numbers): Repeatedly divide the larger number by the smaller number until the remainder reaches 0; the last non-zero remainder is your GCF.
Worked Examples: How to Find GCF Step by Step
Example 1: Find GCF of 48 and 72 Using the Euclidean Algorithm
For larger integers, the Euclidean algorithm avoids listing dozens of factors. Divide the larger number by the smaller number and carry each remainder forward:
Step 2: 48 = 24 × 2 + 0
GCF(48, 72) = 24
Because 24 is the last non-zero remainder before reaching 0, 24 is the greatest common factor of 48 and 72 (48 ÷ 24 = 2 and 72 ÷ 24 = 3).
Example 2: Find HCF of 36 and 60 Using Prime Factorization
Break each number into its prime factor decomposition first:
60 = 22 × 3 × 5
Both numbers share the prime factors 2 and 3. Taking the smallest exponent for each shared prime (22 and 31) gives:
Example 3: Finding the GCF of Three Numbers (18, 30, and 42)
To find the highest common factor of three or more numbers, a prime factor must appear in every single number to be included:
30 = 2 × 3 × 5
42 = 2 × 3 × 7
GCF(18, 30, 42) = 2 × 3 = 6
Example 4: GCF of Algebraic Expressions (12xยฒ and 18x)
In algebra, find the numerical GCF of the coefficients and pair it with the lowest exponent of each shared variable:
GCF vs. LCM: What Is the Difference?
Students often confuse the Greatest Common Factor (GCF) with the Least Common Multiple (LCM). Use this quick comparison table to keep them distinct:
| Feature | GCF / HCF / GCD | LCM (Least Common Multiple) |
|---|---|---|
| Definition | Largest number that divides all inputs evenly | Smallest positive number divisible by all inputs |
| Size Relative to Inputs | Less than or equal to the smallest input number | Greater than or equal to the largest input number |
| Prime Exponent Rule | Multiply shared primes with smallest exponents | Multiply all primes with largest exponents |
| Example (12 and 18) | 6 | 36 |
Common GCF Mistakes to Avoid
- Stopping at a smaller common factor: For 24 and 36, 2, 3, 4, and 6 are all common factors, but only 12 is the greatest common factor.
- Using the highest exponents in prime factorization: Taking the highest exponents calculates the LCM instead of the GCFโalways use the lowest shared exponents for GCF.
- Including unshared prime factors: A prime factor must divide every number in the set to be part of the GCF.
- Forgetting coprime numbers have a GCF of 1: If two numbers share no prime factors (such as 8 and 15), their GCF is always 1, never 0.
How to Use the AptCalc GCF, HCF & GCD Calculator
Using an online greatest common factor calculator, HCF calculator, or GCD calculator saves time when comparing multiple integers or large numbers:
- Enter two or more positive integers separated by commas or spaces.
- Click calculate to immediately view the exact GCF / HCF, along with the step-by-step prime factorization and factor list breakdown.
Mathematical accuracy verified by AptCalc Engine
Frequently Asked Questions (FAQs)
Answers to common questions about this calculator
What is the greatest common factor (GCF)?
Is GCF the same as HCF and GCD?
How do you find the GCF using prime factorization?
How does the Euclidean algorithm find the GCF?
Can you find the GCF of three or more numbers?
Discover Other Calculation Suites
Browse our full ecosystem of precision calculation and conversion tools
Mathematics Suite
Percentages, Algebra, Fractions, Geometry, and step-by-step math solvers.
Date & Time Tools
Days ago, days from today, business days, and calendar date calculators.
Unit Converter
Convert length, weight, volume, temperature, and international units.
Countdown Tracker
Live real-time event countdowns, holidays, and deadline trackers.
Explore Related Calculators
More tools in Arithmetic
Addition Calculator
Step-By-Step Solver
Subtraction Calculator
Step-By-Step Solver
Multiplication Calculator
Step-By-Step Solver
Division Calculator
Step-By-Step Solver
Long Division Calculator
Step-By-Step Solver
Order of Operations Calculator (PEMDAS/BODMAS)
Step-By-Step Solver