Skip to content
Prime Checker
Menu

Prime Factorization of 21

Updated · exact integer math

21 = 3 × 7

The prime factorization of 21 is 3 × 7: the only way to write 21 as a product of prime numbers. Its prime factors are 3 and 7. Because it has factors other than 1 and itself, 21 is composite; see is 21 a prime number.

How to find the prime factorization of 21

Divide by the smallest prime that goes in evenly, and repeat with the result until you reach 1:

StepDivisionWhy this prime
121 ÷ 3 = 721's digits add to a multiple of 3
27 ÷ 7 = 17 is prime, so it divides only by itself

The primes you divided by, 3 × 7, multiply back to 21. Grouping repeats with exponents gives 3 × 7.

Factor tree for 21

A factor tree splits the number into two factors, then keeps splitting any factor that isn't prime:

The branch ends at 3 and 7, both prime. Every leaf of the tree is a prime factor.

All factors of 21

21 has 4 factors: 1, 3, 7, 21. As factor pairs:

1 × 21 = 21
3 × 7 = 21

You can count them from the exponents: add 1 to each exponent in 3 × 7 and multiply, (1 + 1) × (1 + 1) = 4. The factors add up to 32.

Prime factorization of nearby numbers

NumberPrime factorization
122² × 3
142 × 7
153 × 5
162⁴
182 × 3²
202² × 5
222 × 11
242³ × 3
255²
262 × 13

For any other number, the prime number checker shows the full factorization of numbers up to 24 digits, and the divisibility rules make the first steps quick by hand.

Questions people ask

What is the prime factorization of 21?

21 = 3 × 7.

What are the prime factors of 21?

3 and 7.

How many factors does 21 have?

4: 1, 3, 7, 21.

Sources

More prime number tools