Enter two or more positive integers, separated by commas, to find their greatest common factor (GCF) — also called the GCD or HCF — with prime-factorization steps.
Examples
Default list 330, 75, 450, 225
Prime factors: 330 = 2 × 3 × 5 × 11, 75 = 3 × 5 × 5, 450 = 2 × 3 × 3 × 5 × 5, and 225 = 3 × 3 × 5 × 5. The shared primes are 3 and 5, so the GCF is 15.
Page example 16, 88, 104
Each number contributes at least three factors of 2, and nothing else is shared, so GCF(16, 88, 104) = 8.
Euclidean example 268442, 178296
Repeated remainders end at 2, so GCF(268442, 178296) = 2. Adding 66888 does not change the result: GCF(268442, 178296, 66888) = 2.
Formula
The GCF is the largest positive integer that divides every listed number. Two common methods:
Prime factorization. Factor each integer, keep the shared primes (lowest exponent), and multiply:
GCF(16, 88, 104)
16 = 2 × 2 × 2 × 2
88 = 2 × 2 × 2 × 11
104 = 2 × 2 × 2 × 13
GCF = 2 × 2 × 2 = 8
Euclidean algorithm. For two positive integers a ≥ b,
GCF(a, b) = GCF(b, a mod b)
until the remainder is 0. The last non-zero remainder is the GCF. Extra integers fold in the same way: GCF(a, b, c) = GCF(GCF(a, b), c).
Simplifying a fraction a/b is dividing both parts by GCF(a, b). Use the fraction calculator when you want the reduced fraction itself.
Domain and verification
The calculation is defined for positive whole numbers in this tool. Decimal measurements must first be expressed as integers in a common unit if a whole-number GCF is meaningful. You can verify the result by confirming that it divides every input and that no larger common factor does.