Free Online Tool

GCF Calculator

Find the Greatest Common Factor of 2–10 numbers instantly. Get full step-by-step working with three methods — factoring, prime factorization & Euclid's algorithm.

Show steps via:

⚡ Quick Examples

What is the Greatest Common Factor (GCF)?

The Greatest Common Factor (GCF) — also called the Greatest Common Divisor (GCD) or Highest Common Factor (HCF) — is the largest positive integer that divides evenly into two or more numbers without leaving a remainder.

For example, the GCF of 12 and 18 is 6, because 6 is the largest number that divides both exactly.

Key Fact: For any two numbers a and b: GCF(a, b) × LCM(a, b) = a × b

Other Names for GCF

GCF
Greatest Common Factor
GCD
Greatest Common Divisor
HCF
Highest Common Factor
GCM
Greatest Common Measure

3 Methods to Find the GCF (with Examples)

Method 1: Listing Factors

List all factors of each number, then find the largest one they share.

Example: GCF(18, 24)
Factors of 18: 1, 2, 3, 6, 9, 18
Factors of 24: 1, 2, 3, 4, 6, 8, 12, 24
Common factors: 1, 2, 3, 6 → GCF = 6

✔ Best for small numbers and quick visual checks.

Method 2: Prime Factorization

Break each number into prime factors, then multiply the shared primes using the lowest exponent.

Example: GCF(48, 72)
48 = 2⁴ × 3
72 = 2³ × 3²
Shared (lowest powers): 2³ × 3¹ = 8 × 3 = GCF = 24

✔ Best for 3+ numbers or exam-style working.

Method 3: Euclidean Algorithm

Divide repeatedly, replacing with the remainder, until the remainder is 0.

Example: GCF(252, 105)
252 ÷ 105 = 2 remainder 42
105 ÷ 42 = 2 remainder 21
42 ÷ 21 = 2 remainder 0
Remainder = 0 → GCF = 21

✔ Fastest method for very large numbers.

Real-World Uses of GCF

GCF isn't just homework — it solves practical everyday problems.

🍕

Dividing Things Equally

48 apples + 60 oranges. GCF(48,60) = 12 → make 12 identical bags, no leftovers.

Simplifying Fractions

Simplify 36/48: GCF = 12 → divide both → 3/4 in lowest terms.

🏗️

Cutting Materials

Ropes of 90 cm & 126 cm. GCF = 18 cm is the longest cut with zero waste.

🖥️

Screen Aspect Ratios

1920×1080: GCF = 120 → ratio 16:9, the universal widescreen standard.

GCF Quick-Reference Table

Common number pairs for instant lookup.

Numbers GCF LCM Best Method
12, 18636Listing factors
24, 361272Factoring
48, 7224144Prime factorization
100, 7525300Euclid's algorithm
56, 9814392Prime factorization
17, 311527Coprime numbers
144, 180, 216361080Prime factorization
1000, 7502503000Euclid's algorithm

GCF Formulas & Properties

GCF–LCM Relationship
GCF(a,b) × LCM(a,b) = a × b

Find LCM when GCF is known, or vice versa.

Euclid's Algorithm
GCF(a,b) = GCF(b, a mod b)

Repeat until remainder = 0; last divisor is the GCF.

Simplify Fraction
a/b → (a÷GCF) / (b÷GCF)

Result is the fraction in lowest terms.

Three+ Numbers
GCF(a,b,c) = GCF(GCF(a,b),c)

Apply GCF pairwise and chain the results.

GCF Calculator: FAQs

What is the GCF of 0 and any number?

GCF(0, n) = n for any non-zero integer n, because every non-zero number divides 0. However, GCF(0, 0) is undefined.

When GCF = 1, the numbers are coprime (relatively prime). They share no factor other than 1. Example: GCF(8, 15) = 1.

GCF is the largest number that divides all numbers evenly. LCM is the smallest number that all numbers divide into. For two numbers: GCF × LCM = a × b.

No. GCF is always ≤ the smallest number. It equals the smallest number only when that number divides all others. e.g., GCF(6, 12, 18) = 6.

Apply GCF sequentially: GCF(a, b, c) = GCF(GCF(a, b), c). For example: GCF(12, 18, 24) = GCF(6, 24) = 6. Our calculator handles up to 10 numbers automatically.

Divide both numerator and denominator by their GCF. Example: 36/48 → GCF(36,48) = 12 → 36÷12 / 48÷12 = 3/4.

The Euclidean algorithm is the fastest — O(log n) time complexity. Our calculator uses it internally for speed and handles numbers of any size accurately.

Explore More Free Calculators

LCM, prime factorization, percentages, fractions and more — all with step-by-step explanations on Calcxi.com.

Browse All Calculators →