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:
| Step | Division | Why this prime |
|---|---|---|
| 1 | 128 ÷ 2 = 64 | 128 is even |
| 2 | 64 ÷ 2 = 32 | 64 is even |
| 3 | 32 ÷ 2 = 16 | 32 is even |
| 4 | 16 ÷ 2 = 8 | 16 is even |
| 5 | 8 ÷ 2 = 4 | 8 is even |
| 6 | 4 ÷ 2 = 2 | 4 is even |
| 7 | 2 ÷ 2 = 1 | 2 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:
- 128 → 2 × 64
- 64 → 2 × 32
- 32 → 2 × 16
- 16 → 2 × 8
- 8 → 2 × 4
- 4 → 2 × 2
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
| Number | Prime factorization |
|---|---|
| 118 | 2 × 59 |
| 119 | 7 × 17 |
| 120 | 2³ × 3 × 5 |
| 121 | 11² |
| 122 | 2 × 61 |
| 123 | 3 × 41 |
| 124 | 2² × 31 |
| 125 | 5³ |
| 126 | 2 × 3² × 7 |
| 129 | 3 × 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.