Greatest Common Factor Calculator

Find the greatest common factor (GCF) or greatest common divisor (GCD) of two or more numbers. Enter up to 10 numbers and get the GCF with step-by-step calculations and prime factorization.

Enter Numbers

Quick Examples:

Methods to Find GCF

1. Prime Factorization Method

Find the prime factorization of each number, then take the lowest power of each common prime factor.

Example: GCF(48, 18)
48 = 2⁴ × 3¹
18 = 2¹ × 3²
GCF = 2¹ × 3¹ = 2 × 3 = 6

2. Euclidean Algorithm

Repeatedly apply the division algorithm until the remainder is zero. Works best for two numbers.

Example: GCF(48, 18)
48 = 18 × 2 + 12
18 = 12 × 1 + 6
12 = 6 × 2 + 0
GCF = 6

3. Listing Factors Method

List all factors of each number and find the largest common factor.

Example: GCF(48, 18)
Factors of 48: 1, 2, 3, 4, 6, 8, 12, 16, 24, 48
Factors of 18: 1, 2, 3, 6, 9, 18
Common factors: 1, 2, 3, 6
Greatest common factor: 6

How to Use This Calculator

1
Enter Numbers
Input at least two positive integers. You can add up to 10 numbers for calculation.
2
View Results
The GCF will be calculated automatically along with additional information like LCM and prime factorization.
3
Study the Steps
Review the step-by-step calculation to understand how the GCF was found.
4
Try Examples
Use the quick example buttons to see how GCF works with different types of numbers.

Applications of GCF

Real-World Applications

  • Simplifying fractions to lowest terms
  • Dividing objects into equal groups
  • Finding common tile sizes for flooring
  • Determining gear ratios in machinery
  • Organizing items in equal rows and columns
  • Scaling recipes proportionally

Mathematical Applications

  • Reducing fractions to simplest form
  • Solving linear Diophantine equations
  • Finding rational approximations
  • Modular arithmetic calculations
  • Cryptography and number theory
  • Algorithm optimization

Example Calculations

Example 1: Two Numbers

Find GCF(72, 48):

72 = 2³ × 3²
48 = 2⁴ × 3¹
GCF = 2³ × 3¹ = 8 × 3 = 24

Example 2: Three Numbers

Find GCF(60, 90, 120):

60 = 2² × 3¹ × 5¹
90 = 2¹ × 3² × 5¹
120 = 2³ × 3¹ × 5¹
GCF = 2¹ × 3¹ × 5¹ = 2 × 3 × 5 = 30

Example 3: Coprime Numbers

Find GCF(15, 28):

15 = 3¹ × 5¹
28 = 2² × 7¹
No common prime factors
GCF = 1 (numbers are coprime)

Frequently Asked Questions

What's the difference between GCF and LCM?

GCF (Greatest Common Factor) is the largest number that divides all given numbers, while LCM (Least Common Multiple) is the smallest positive number that is divisible by all given numbers.

What does it mean when GCF is 1?

When the GCF is 1, the numbers are called coprime or relatively prime. This means they share no common factors other than 1, such as 15 and 28.

Can GCF be larger than the smallest input number?

No, the GCF is always less than or equal to the smallest input number. It equals the smallest number only when that number divides all other input numbers.