Built for students, writers and researchers
GCF Calculator greatest common factor
Enter your numbers to get the GCF (also called the GCD or HCF), with the shared primes at their lowest powers and a cross-check for two numbers.
Answer
Enter your numbers or pick an example — the answer and the steps appear here instantly.
Inside every GCF answer
Finding the GCF here
Enter the numbers
Type at least two positive integers with commas between them, such as 48, 180, 300. Up to 500 numbers are accepted.
Press Calculate
The GCF arrives as an exact whole number, so nothing is rounded and no ≈ mark appears, followed by the factorizations and a step outline. Your browser does the computing; there is no fee and no sign-up.
Copy it or ask for more
Copy the result, or have the AI Math Solver explain the method in prose via “Explain step by step”. AI explanations can include mistakes, and the step outline remains the reference.
How to find the GCF by hand: primes and Euclid
With prime factorization, break each number into primes, keep only the primes that appear in all of them, and use the smallest power of each. 48 = 2⁴ × 3, 180 = 2² × 3² × 5 and 300 = 2² × 3 × 5². The prime 5 is missing from 48, so it is dropped; 2 appears at least squared and 3 at least once. The GCF is 2² × 3 = 12.
Euclid's algorithm skips factoring. Divide the larger number by the smaller and keep the remainder, then repeat with the divisor and the remainder until the remainder is 0. For 180 and 48: 180 = 3 × 48 + 36, then 48 = 1 × 36 + 12, then 36 = 3 × 12 + 0. The last non-zero remainder, 12, is the GCF.
The GCF is the key to simplifying fractions. Because the GCF of 48 and 180 is 12, the fraction 48/180 reduces to 4/15 in a single step. When the GCF is 1, a fraction is already in lowest terms.
A quick check: dividing each number by the GCF should leave results with no common factor. 48, 180 and 300 divided by 12 give 4, 15 and 25, and nothing above 1 divides all three.
Frequently asked questions
Yes. Greatest common factor, greatest common divisor and highest common factor are three names for the same number; the wording depends on the country and the textbook.
Euclid's method works on one pair at a time. For three or more numbers the prime factorizations carry the whole answer, since they handle any count in one pass.
Two numbers are coprime when their only common factor is 1. 8 = 2³ and 15 = 3 × 5 share no prime, so their GCF is 1 even though neither number is itself prime.
Yes, when that number divides all the others. The GCF of 6, 18 and 24 is 6.
Only the optional AI explanation does. The Pro plans* include it (*fair use: up to 300 runs every day across the writing, study and code tools), it costs 2 credits for accounts without a plan, and a signed-out visitor sees a free preview of its start. Finding the GCF itself is free and private.
Checking your own answers is exactly what it is for. Do the factoring yourself first, and follow your teacher's rules on calculators and AI tools for anything that is graded.
Related number tools
- LCM CalculatorLeast common multiple by prime factors
- Factor CalculatorAll factors, pairs and prime factors
- Fraction CalculatorAdd, subtract, multiply and divide fractions
- Ratio CalculatorSimplify ratios or share a total
- Fraction to DecimalExact decimals, repeating digits marked
- AI Math SolverWorked solutions to math problems
Need the greatest common factor?
Enter your numbers and see the shared primes, with Euclid's algorithm as a check for pairs.
Find GCF- Two or more numbers
- Coprime pairs flagged
- Euclid cross-check