GCF Calculator

Find the Greatest Common Factor (GCF) of two or more numbers instantly. Shows prime factorization, all common factors, and the LCM.

Enter two or more whole numbers separated by commas.

Quick examples:

Simplify a Fraction Using GCF

/

GCF Calculator FAQ

Common questions about the greatest common factor.

The GCF is the largest number that divides evenly into two or more numbers with no remainder. It's also called the GCD (Greatest Common Divisor). For example, the GCF of 12 and 18 is 6 — the largest number that divides both exactly.
Method 1 — List factors:
Factors of 12: 1, 2, 3, 4, 6, 12
Factors of 18: 1, 2, 3, 6, 9, 18
Largest common factor = 6

Method 2 — Euclidean algorithm (fastest):
GCF(48, 18): 48 = 2×18 + 12 → 18 = 1×12 + 6 → 12 = 2×6 + 0. GCF = 6
GCF = largest number that divides into all the given numbers.
LCM = smallest number that all the given numbers divide into.

They're related: GCF(a,b) × LCM(a,b) = a × b. So if GCF(12,18)=6, then LCM = (12×18)/6 = 36.
When two numbers share no common factors other than 1, they are called coprime (or relatively prime). Examples: 7 and 13 (both prime), 8 and 15 (no shared prime factors). A fraction where numerator and denominator are coprime is already in its simplest form.
Divide both the numerator and denominator by their GCF. Example: simplify 18/24.
GCF(18, 24) = 6
18 ÷ 6 = 3, 24 ÷ 6 = 4
18/24 = 3/4 (fully reduced)