Skip to content
Prime Checker
Menu

Prime Factorization of 12

Updated · exact integer math

12 = 2² × 3

2 × 2 × 3

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

How to find the prime factorization of 12

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

StepDivisionWhy this prime
112 ÷ 2 = 612 is even
26 ÷ 2 = 36 is even
33 ÷ 3 = 13 is prime, so it divides only by itself

The primes you divided by, 2 × 2 × 3, multiply back to 12. Grouping repeats with exponents gives 2² × 3.

Factor tree for 12

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

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

All factors of 12

12 has 6 factors: 1, 2, 3, 4, 6, 12. As factor pairs:

1 × 12 = 12
2 × 6 = 12
3 × 4 = 12

You can count them from the exponents: add 1 to each exponent in 2² × 3 and multiply, (2 + 1) × (1 + 1) = 6. The factors add up to 28.

Prime factorization of nearby numbers

NumberPrime factorization
42²
62 × 3
82³
93²
102 × 5
142 × 7
153 × 5
162⁴
182 × 3²
202² × 5

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 12?

12 = 2² × 3, or 2 × 2 × 3.

What are the prime factors of 12?

2 and 3.

How many factors does 12 have?

6: 1, 2, 3, 4, 6, 12.

Sources

More prime number tools