GCF Calculator
A GCF calculator (Greatest Common Factor) is an arithmetic tool that finds the largest positive integer that divides two or more integers without leaving a remainder. The calculator processes the input numbers and evaluates their factors using methods such as prime factorization, lists of factors, or the Euclidean algorithm. It displays the greatest common factor along with the detailed calculations for each method. Students and math teachers use this tool to simplify fractions, factor algebraic expressions, and solve word problems.
Enter two or more positive whole numbers. The calculator returns their greatest common factor, the factor list for each number, and the Euclidean steps that produce the answer.
Quick Answer
Find the greatest common factor (GCF) of two or more numbers. Enter your integers to see the largest common divisor and prime factorization steps.
Two or more positive whole numbers, comma- or space-separated. · e.g. 48, 60, 84
The GCF (greatest common factor) is the largest whole number that divides every input evenly.
Euclidean steps
- gcd(48, 60) = 12
GCF
12
gcf(48, 60)
The Euclidean algorithm finds gcd(a, b) by repeated remainders: replace (a, b) with (b, a mod b) until the second number is 0. Then the GCF of the full list is the GCF of (running result, next number) folded across the list.
Examples
GCF of 48 and 60
= 12
GCF of 12, 18, 30
= 6
GCF of 17 and 5
= 1 (coprime)
How it works
The greatest common factor of two numbers a and b can be found by the Euclidean algorithm: repeatedly replace the pair (a, b) with (b, a mod b) until the second number is zero. The first number is then the GCF. For more than two inputs, the calculator folds gcf across the list.
Recurrence · gcf(a, b) = gcf(b, a mod b), gcf(a, 0) = a
More numbers · gcf(a, b, c) = gcf(gcf(a, b), c)
All inputs must be positive whole numbers.
Related math calculators
- LCM calculator for the least common multiple, the partner concept to GCF.
- Factor calculator for factors, factor pairs, and prime factorization.
- Fraction calculator uses the GCF to reduce fractions to lowest terms.
- Ratio calculator simplifies a ratio by dividing both sides by their GCF.
- All education calculators.
Related Calculators
More tools from Education



