GCF of 12 and 21

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

GCF is 3.

GCF of 12, 213
LCM84
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 12 and 21:
    21 = 1 × 12 + 9
    12 = 1 × 9 + 3
    9 = 3 × 3 + 0
    The last non-zero remainder is 3.
  3. Listing method: factors of 12: 1, 2, 3, 4, 6, 12; 21: 1, 3, 7, 21. The largest one they share is 3.
Numberpower of 2power of 3power of 7Prime factorization
1221022 × 3
210113 × 7

Quick answer

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

The LCM of 12 and 21 is 84. Simplify the fraction 12/21: divide by 3 → 4/7.

Related

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

GCF of 12 and 21: questions

What is the GCF of 12 and 21?

3.

How do you find the GCF of 12 and 21?

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