Step by step
This GCF calculator finds the greatest common factor of two or more numbers, with every Euclidean-algorithm step shown so you can see exactly how the answer was reached.
Step by step
Enter any list of whole numbers to see the greatest common factor and the working.
Type two or more positive whole numbers separated by commas or spaces, like 12, 18, 24. Decimals are truncated and duplicates are fine.
It runs the Euclidean algorithm on the first two numbers, then reduces that result against the next number, and so on, until every number has been folded in.
The greatest common factor appears at the top, and each pairwise reduction is listed below it. Need the smallest common multiple instead? The LCM Calculator works the same list of numbers the other way.
The GCF has a natural counterpart. The LCM Calculator finds the least common multiple of the same list, the Simplify Fractions Calculator uses the GCF to reduce a fraction, the Prime Factorization Calculator shows the shared primes behind the answer, and the Factoring Calculator does the same job for polynomials.