GCF Calculator and the LCM too

The greatest common factor of 48, 180 and 300 is 12: 48 = 2⁴ × 3, 180 = 2² × 3² × 5 and 300 = 2² × 3 × 5², and the primes they share are 2² × 3 = 12. Their least common multiple is 3,600.

Your result

GCF of 48, 180, 300

12

LCM
3,600
48 =
2⁴ × 3
180 =
2² × 3² × 5
300 =
2² × 3 × 5²
GCF prime factors
2² × 3

Step-by-step working

  1. GCF(48, 180) by Euclid:
  2. 180 = 3 × 48 + 36
  3. 48 = 1 × 36 + 12
  4. 36 = 3 × 12 + 0
  5. → 12
  6. GCF(12, 300) by Euclid:
  7. 300 = 25 × 12 + 0
  8. → 12

Understand it

What the GCF Calculator Does

The greatest common factor (GCF) — also called the greatest common divisor (GCD) or highest common factor (HCF) — is the largest whole number that divides each of your numbers exactly. The least common multiple (LCM) is the smallest number they all divide into.

Enter two or more numbers to get both, with the Euclidean algorithm and prime factorizations shown. GCF simplifies fractions and ratios; LCM finds common denominators and lines up repeating schedules.

How the GCF Formula Works

Euclid: GCF(a, b) = GCF(b, a mod b), until the remainder is 0 LCM(a, b) = a × b ÷ GCF(a, b) GCF = product of shared primes at their lowest powers
a mod b
remainder when a is divided by b

Worked Examples

Simplify 84/126

Numbers (separate with commas): 84, 126

GCF of 84, 12642

Divide both by 42: 2/3.

Buses every 12, 18 and 30 min

Numbers (separate with commas): 12, 18, 30

GCF of 12, 18, 306

They all meet again after 180 minutes.

Coprime numbers

Numbers (separate with commas): 35, 64

GCF of 35, 641

GCF 1: no shared primes.

Original analysis

GCF Analysis in numbers

Every chart below is generated from the same tested formula that powers the calculator above, so you can see the patterns behind a single result.

Share of 1–30 coprime with each nCoprime share0%20%40%60%80%100%1471013161922252830n
View data table
nCoprime share
1100%
250%
366.7%
450%
580%
633.3%
786.7%
850%
966.7%
1040%
1193.3%
1233.3%
1393.3%
1443.3%
1553.3%
1650%
1796.7%
1833.3%
1996.7%
2040%
2156.7%
2246.7%
2396.7%
2433.3%
2580%
2646.7%
2766.7%
2843.3%
2996.7%
3026.7%

How often are two numbers coprime?

Among all pairs from 1 to 30, 61.7% share no common factor other than 1. Mathematically, the probability that two random integers are coprime approaches 6/π² ≈ 60.8%. Primes are coprime to most numbers; even numbers to fewer.

Common GCF Questions

Is GCF the same as GCD or HCF?

Yes. Greatest common factor, greatest common divisor and highest common factor are three names for the same number.

Can this be used as an LCM calculator?

Yes — the LCM is shown in every result.

Tips and Common Mistakes

  • GCF × LCM = a × b (for two numbers) — a quick way to check your work.
  • If one number divides the other, the smaller number is the GCF.
  • Consecutive integers are always coprime.

Frequently asked questions

How do you find the GCF?

Either list prime factorizations and multiply the shared primes at their lowest powers, or use the Euclidean algorithm of repeated division.

What is the GCF of 12 and 18?

6. 12 = 2² × 3 and 18 = 2 × 3², so they share 2 × 3.

What is the difference between GCF and LCM?

GCF is the largest number that divides all of them; LCM is the smallest number all of them divide into.

What does coprime mean?

Two numbers are coprime when their GCF is 1, like 8 and 15.

Sources and methodology

Last reviewed

byBhuvanesh S. Runs through our automated test suite on every build.

Results are estimates. Double-check anything important before relying on it.