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