Skip to content
Prime Checker
Menu

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:

StepDivisionWhy this prime
140 ÷ 2 = 2040 is even
220 ÷ 2 = 1020 is even
310 ÷ 2 = 510 is even
45 ÷ 5 = 15 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:

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

NumberPrime factorization
302 × 3 × 5
322⁵
333 × 11
342 × 17
355 × 7
362² × 3²
382 × 19
393 × 13
422 × 3 × 7
442² × 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.

Sources

More prime number tools