Find the greatest common factor of two whole numbers using the Euclidean algorithm.
Find the greatest common factor of two whole numbers using the Euclidean algorithm.
Enter values above and click Calculate — results will appear here with the formula explained.
The greatest common factor (also called GCD or HCF) is the largest whole number that divides both inputs without a remainder. It is what you divide by to reduce a fraction: 48/36 reduces to 4/3 because GCF = 12.
The Euclidean algorithm finds it without factoring: keep replacing the pair (a, b) with (b, a mod b). The remainders shrink quickly, and the last non-zero remainder is the answer — remarkably efficient even for enormous numbers.
Advertisement
AdSense ready — add NEXT_PUBLIC_GOOGLE_ADSENSE_PUBLISHER_ID
The greatest common factor (also called GCD or HCF) is the largest whole number that divides both inputs without a remainder. It is what you divide by to reduce a fraction: 48/36 reduces to 4/3 because GCF = 12. Formula: Euclidean algorithm: repeatedly replace (a, b) with (b, a mod b) until b = 0; the remaining a is the GCF
GCF Calculator computes find the greatest common factor of two whole numbers using the euclidean algorithm. Formula: Euclidean algorithm: repeatedly replace (a, b) with (b, a mod b) until b = 0. Example: GCF(48, 36): 48 mod 36 = 12, then 36.
Find the greatest common factor of two whole numbers using the Euclidean algorithm. Formula: Euclidean algorithm: repeatedly replace (a, b) with (b, a mod b) until b = 0; the remaining a is the GCF
| Field | What to enter |
|---|---|
| First number | e.g. 48 |
| Second number | e.g. 36 |
All fields use the exact formulas shown below — results include step-by-step breakdowns you can verify by hand.
The greatest common factor (also called GCD or HCF) is the largest whole number that divides both inputs without a remainder. It is what you divide by to reduce a fraction: 48/36 reduces to 4/3 because GCF = 12.
The Euclidean algorithm finds it without factoring: keep replacing the pair (a, b) with (b, a mod b). The remainders shrink quickly, and the last non-zero remainder is the answer — remarkably efficient even for enormous numbers.
Advertisement
AdSense ready — add NEXT_PUBLIC_GOOGLE_ADSENSE_PUBLISHER_ID
GCF(48, 36): 48 mod 36 = 12, then 36 mod 12 = 0, so the GCF is 12. Reducing 48/36 by 12 gives 4/3.
Advertisement
AdSense ready — add NEXT_PUBLIC_GOOGLE_ADSENSE_PUBLISHER_ID