Skip to content
Prime Checker
Menu

Prime Factorization of 128

Updated · exact integer math

128 = 2⁷

2 × 2 × 2 × 2 × 2 × 2 × 2

The prime factorization of 128 is 2⁷: the only way to write 128 as a product of prime numbers. Its prime factor is 2.

How to find the prime factorization of 128

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

StepDivisionWhy this prime
1128 ÷ 2 = 64128 is even
264 ÷ 2 = 3264 is even
332 ÷ 2 = 1632 is even
416 ÷ 2 = 816 is even
58 ÷ 2 = 48 is even
64 ÷ 2 = 24 is even
72 ÷ 2 = 12 is prime, so it divides only by itself

The primes you divided by, 2 × 2 × 2 × 2 × 2 × 2 × 2, multiply back to 128. Grouping repeats with exponents gives 2⁷.

Factor tree for 128

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

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

All factors of 128

128 has 8 factors: 1, 2, 4, 8, 16, 32, 64, 128. As factor pairs:

1 × 128 = 128
2 × 64 = 128
4 × 32 = 128
8 × 16 = 128

You can count them from the exponents: add 1 to each exponent in 2⁷ and multiply, (7 + 1) = 8. The factors add up to 255.

Prime factorization of nearby numbers

NumberPrime factorization
1182 × 59
1197 × 17
1202³ × 3 × 5
12111²
1222 × 61
1233 × 41
1242² × 31
1255³
1262 × 3² × 7
1293 × 43

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

128 = 2⁷, or 2 × 2 × 2 × 2 × 2 × 2 × 2.

What are the prime factors of 128?

Just 2.

How many factors does 128 have?

8: 1, 2, 4, 8, 16, 32, 64, 128.

Sources

More prime number tools