Prime Factorization of 40
Updated · exact integer math
40 = 2³ × 5
2 × 2 × 2 × 5
The prime factorization of 40 is 2³ × 5: the only way to write 40 as a product of prime numbers. Its prime factors are 2 and 5. Because it has factors other than 1 and itself, 40 is composite; see is 40 a prime number.
How to find the prime factorization of 40
Divide by the smallest prime that goes in evenly, and repeat with the result until you reach 1:
| Step | Division | Why this prime |
|---|---|---|
| 1 | 40 ÷ 2 = 20 | 40 is even |
| 2 | 20 ÷ 2 = 10 | 20 is even |
| 3 | 10 ÷ 2 = 5 | 10 is even |
| 4 | 5 ÷ 5 = 1 | 5 is prime, so it divides only by itself |
The primes you divided by, 2 × 2 × 2 × 5, multiply back to 40. Grouping repeats with exponents gives 2³ × 5.
Factor tree for 40
A factor tree splits the number into two factors, then keeps splitting any factor that isn't prime:
- 40 → 2 × 20
- 20 → 2 × 10
- 10 → 2 × 5
The branch ends at 2 and 5, both prime. Every leaf of the tree is a prime factor.
All factors of 40
40 has 8 factors: 1, 2, 4, 5, 8, 10, 20, 40. As factor pairs:
| 1 × 40 = 40 |
| 2 × 20 = 40 |
| 4 × 10 = 40 |
| 5 × 8 = 40 |
You can count them from the exponents: add 1 to each exponent in 2³ × 5 and multiply, (3 + 1) × (1 + 1) = 8. The factors add up to 90.
Prime factorization of nearby numbers
| Number | Prime factorization |
|---|---|
| 30 | 2 × 3 × 5 |
| 32 | 2⁵ |
| 33 | 3 × 11 |
| 34 | 2 × 17 |
| 35 | 5 × 7 |
| 36 | 2² × 3² |
| 38 | 2 × 19 |
| 39 | 3 × 13 |
| 42 | 2 × 3 × 7 |
| 44 | 2² × 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 40?
40 = 2³ × 5, or 2 × 2 × 2 × 5.
What are the prime factors of 40?
2 and 5.
How many factors does 40 have?
8: 1, 2, 4, 5, 8, 10, 20, 40.