Home › Math › Prime Factorization Calculator

Prime Factorization Calculator

Break any whole number into prime factors, and see its divisors and whether it is prime.

Enter a whole number from 2 up to 9,007,199,254,740,991. Commas and spaces are ignored.

Prime factorization

-

As a product of primes-
Is it prime?-
Distinct prime factors-
Total prime factors (with repeats)-
Number of divisors-
Sum of divisors-
All divisors-

What is prime factorization?

Prime factorization writes a whole number as a product of prime numbers. A prime number is a number above 1 that can only be divided evenly by 1 and itself, such as 2, 3, 5, 7, 11 and 13. Every whole number above 1 can be broken down into primes in exactly one way (apart from the order), which is why prime factors are so useful in maths.

360 = 2 × 2 × 2 × 3 × 3 × 5 = 2³ × 3² × 5

How to find the prime factors

  • Divide the number by the smallest prime that goes into it evenly (start with 2).
  • Keep dividing the result by that prime until it no longer divides evenly.
  • Move to the next prime (3, 5, 7, 11 and so on) and repeat.
  • Stop when you reach 1. The primes you divided by are the prime factors.

Example

Find the prime factors of 360. 360 ÷ 2 = 180, 180 ÷ 2 = 90, 90 ÷ 2 = 45. Now 45 is not even, so move to 3: 45 ÷ 3 = 15, 15 ÷ 3 = 5. Finally 5 ÷ 5 = 1. So 360 = 2 × 2 × 2 × 3 × 3 × 5, or 2³ × 3² × 5.

Divisors from prime factors

Once you have the prime factorization, you can count the divisors without listing them. Add 1 to each exponent and multiply the results. For 360 = 2³ × 3² × 5¹, the number of divisors is (3 + 1) × (2 + 1) × (1 + 1) = 24. This calculator shows the count, the sum of all the divisors, and the full list when there are 100 or fewer.

Where prime factorization is used

  • Simplifying fractions and finding the greatest common factor (GCF) and least common multiple (LCM).
  • Finding square roots and cube roots of perfect squares and cubes.
  • Number puzzles and school maths such as factor trees.
  • Computer security, where the difficulty of factoring very large numbers is the basis of some encryption.

Good to know

  • 1 is not a prime number, and it has no prime factorization. 2 is the only even prime.
  • A number is prime if the only prime factor it has is itself. This calculator tells you if your number is prime.
  • This calculator accepts whole numbers from 2 up to 9,007,199,254,740,991. Very large numbers with big prime factors can take a moment.
  • To simplify a fraction using these factors, try the Simplify Fractions Calculator.

Related tools: Simplify Fractions Calculator, Factorial Calculator and Cube Root Calculator.

Need another calculator?

Browse all calculators
Scroll to Top