GCF (HCF) Calculator
The greatest common factor (GCF) is the largest number that divides two or more numbers exactly. It is also called the highest common factor (HCF) or greatest common divisor (GCD). This calculator finds it with Euclid's algorithm and checks the result with the prime factor method.
How to use the gcf (hcf) calculator
- Enter two or more whole numbers, separated by commas.
- Press Calculate.
- See the GCF, Euclid's algorithm steps and the prime factors.
Formula
Worked example: 48, 180
- Numbers: 48, 180
✓ Answer checked
Step-by-step working (3 steps)
Euclid's algorithm Euclid's algorithm
Divide the larger number by the smaller and keep the remainder. Repeat until the remainder is 0.
Read the answer
The last non-zero remainder is the GCF.
Prime factor method
Take each prime that appears in every number, using its smallest power.
Formulas used
How this was checked
- ✓ 12 divides every number exactly.
- ✓ After dividing by the GCF, the numbers share no further common factor.
Frequently asked questions
What is the GCF of 48 and 180?
12. It is the largest number that divides both 48 and 180 exactly.
Are GCF, HCF and GCD the same?
Yes. They are three names for the same thing: the greatest common factor.
What does it mean if the GCF is 1?
The numbers are coprime, meaning they share no common factor other than 1.
Related calculators
LCM Calculator
Find the least common multiple (LCM) of two or more numbers using prime factorisation and the GCF method.
Fraction Simplifier
Simplify any fraction to its lowest terms using the greatest common factor.
Factor Calculator
List all the factors and factor pairs of a number, with its prime factorisation, number of factors and sum of factors.
Ratio Calculator
Simplify ratios like 12:18 or 1.5:2.5, and share an amount in a given ratio.
