Skip to content
Prime Checker
Menu

Prime Factorization of 18

Updated · exact integer math

18 = 2 × 3²

2 × 3 × 3

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

How to find the prime factorization of 18

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

StepDivisionWhy this prime
118 ÷ 2 = 918 is even
29 ÷ 3 = 39's digits add to a multiple of 3
33 ÷ 3 = 13 is prime, so it divides only by itself

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

Factor tree for 18

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

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

All factors of 18

18 has 6 factors: 1, 2, 3, 6, 9, 18. As factor pairs:

1 × 18 = 18
2 × 9 = 18
3 × 6 = 18

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

Prime factorization of nearby numbers

NumberPrime factorization
82³
93²
102 × 5
122² × 3
142 × 7
153 × 5
162⁴
202² × 5
213 × 7
222 × 11

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

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

What are the prime factors of 18?

2 and 3.

How many factors does 18 have?

6: 1, 2, 3, 6, 9, 18.

Sources

More prime number tools