GCF of 6 and 21

The greatest common factor of 6 and 21 is 3 — the largest number that divides both.

GCF is 3.

GCF of 6, 213
LCM42
Relatively prime?No

Step by step

  1. Prime factorize each number (table). The GCF uses each prime that appears in all of them, with its smallest power: 3 = 3
  2. Check with the Euclidean algorithm on 6 and 21:
    21 = 3 × 6 + 3
    6 = 2 × 3 + 0
    The last non-zero remainder is 3.
  3. Listing method: factors of 6: 1, 2, 3, 6; 21: 1, 3, 7, 21. The largest one they share is 3.
Numberpower of 2power of 3power of 7Prime factorization
61102 × 3
210113 × 7

Quick answer

6 = 2 × 3, 21 = 3 × 7. The primes they share, at the lowest power, multiply to 3.

The LCM of 6 and 21 is 42. Simplify the fraction 6/21: divide by 3 → 2/7.

Related

factors of 6, factors of 21; GCF calculator for any numbers.

GCF of 6 and 21: questions

What is the GCF of 6 and 21?

3.

How do you find the GCF of 6 and 21?

Prime factorize: 2 × 3 and 3 × 7; multiply the shared primes at their lowest power.