GCF Calculator

Find the largest positive integer that divides every number in your list, then use it to reduce a ratio or fraction.

2–100 non-zero integers, each at most 10¹² in magnitude. Negative signs are ignored; decimals and invalid tokens are rejected.

Greatest common factor

12

GCF(48, 180) = 12 · LCM = 720

  • 48 =2^4 × 3
  • 180 =2^2 × 3^2 × 5
  • Common factors1, 2, 3, 4, 6, 12
  • Greatest common factor12
  • Divided by 124 : 15

How this was calculated

Primes common to every number, each at its lowest power, multiply to the GCF.

Euclid's algorithm for 180 and 48: 180 = 3 × 48 + 36; 48 = 1 × 36 + 12; 36 = 3 × 12 + 0 → GCF 12.

Euclid’s algorithm and shared prime factors

The greatest common factor (GCF), greatest common divisor (GCD), and highest common factor (HCF) name the same value. Euclid’s algorithm repeatedly replaces a pair with its divisor and remainder until the remainder is zero. The final non-zero divisor is the GCF.

For more than two inputs, find the GCF of the first pair and combine that result with each remaining input. In prime factorization, the same answer comes from keeping only shared primes, each at its lowest exponent.

Example: reducing 48 : 180

180 = 3 × 48 + 36; 48 = 1 × 36 + 12; 36 = 3 × 12 + 0. The GCF is 12. Dividing both terms by 12 reduces 48 : 180 to 4 : 15. The common positive factors are 1, 2, 3, 4, 6 and 12.

Input conventions

This page accepts 2–100 non-zero integers, each within ±10¹², and uses their absolute values. Negative signs do not change the positive GCF. Decimals and invalid tokens are rejected rather than omitted.

The optional LCM is reported only when it fits safe integer precision. That limit does not prevent a valid GCF from being shown.

Frequently asked questions

What does a GCF of 1 mean?

The entire list shares no positive divisor larger than 1. With three or more numbers this does not imply that every pair is coprime: 6, 10 and 15 have overall GCF 1, but each pair shares a factor.

Can I reduce a fraction using the GCF?

Yes. Divide numerator and denominator by their GCF. For 48/180, dividing both by 12 gives 4/15. A denominator must not be zero.

Last updated . Results are estimates for informational purposes only.