Greatest common factor
—
Step by step
Find 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.