Greatest Common Factor Calculator

Find the GCF of any set of numbers with step-by-step prime factorization.

Enter Numbers

Enter numbers separated by commas, spaces, or newlines.

Result

GCF(330, 75, 450, 225) = 15

Steps:

Prime factorization of the numbers:

330 = 2 × 3 × 5 × 11

75 = 3 × 5 × 5

450 = 2 × 3 × 3 × 5 × 5

225 = 3 × 3 × 5 × 5

GCF calculation:

GCF(330, 75, 450, 225)

= 3 × 5

= 15

LCM(330, 75, 450, 225) = 4950

Prime Factor Exponents

Complete GCF Calculator Guide & Information

1. What is the Greatest Common Factor?

The greatest common factor (GCF), also called greatest common divisor (GCD) or highest common factor (HCF), of a set of integers is the largest positive integer that divides each of the numbers without leaving a remainder. It represents the biggest number that is a shared divisor of all numbers in the set.

GCF is widely used for simplifying fractions, factoring algebraic expressions, solving Diophantine equations, and understanding number relationships.

2. Methods for Finding GCF

Method 1: Prime Factorization

Factor each number into its prime factors. The GCF is the product of the lowest power of every prime factor common to all numbers.

GCF = product of (primemin exponent) for all common primes

Method 2: Listing Factors

List all positive divisors of each number and identify the largest one shared by all. Simple for small numbers but inefficient for large values.

Example: GCF(12, 18)

Method 3: Euclidean Algorithm

The most efficient method for large numbers. Based on the principle that GCD(a, b) = GCD(b, a mod b). Repeat until the remainder is zero; the last non-zero remainder is the GCF.

Example: GCF(48, 18)

Method 4: LCM Relation

For two numbers, GCF can be derived from the LCM and vice versa:

GCF(a, b) = |a × b| / LCM(a, b)

3. Properties of GCF

4. Input & Control Definitions

5. Worked Examples

Example 1 — Two numbers: Find GCF(24, 36)

Example 2 — Three numbers: Find GCF(12, 18, 30)

Example 3 — Four numbers (default): GCF(330, 75, 450, 225)

6. Real-World Applications

7. Common GCF Reference Table

Numbers GCF LCM
4, 6212
6, 9318
8, 12424
10, 15530
12, 18636
16, 24848
18, 24672
12, 18, 24672
10, 15, 255150
7, 131 (coprime)91

8. Important Notes

9. Related Mathematical Concepts

10. References

1. Euclid. "Elements," Book VII, Propositions 1–2. Circa 300 BCE.
2. Gauss, Carl Friedrich. "Disquisitiones Arithmeticae." 1801.
3. Hardy, G. H. and Wright, E. M. "An Introduction to the Theory of Numbers." Oxford University Press. 2008.
4. Knuth, Donald E. "The Art of Computer Programming, Volume 2: Seminumerical Algorithms." Addison-Wesley. 1997.
5. Rosen, Kenneth H. "Elementary Number Theory and Its Applications." Pearson. 2010.
6. Burton, David M. "Elementary Number Theory." McGraw-Hill. 2010.