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
- Prime factorize each number (table). The GCF uses each prime that appears in all of them, with its smallest power: 3 = 3
- 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. - Listing method: factors of 12: 1, 2, 3, 4, 6, 12; 21: 1, 3, 7, 21. The largest one they share is 3.
| Number | power of 2 | power of 3 | power of 7 | Prime factorization |
|---|---|---|---|---|
| 12 | 2 | 1 | 0 | 22 × 3 |
| 21 | 0 | 1 | 1 | 3 × 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.