Free online tools

Prime Factorization Calculator

Enter a positive whole number. See which prime numbers multiply to give it and how many times each factor occurs.

Enter your values

This tool processes your input in your browser.

Result

Divide out one prime at a time

Start with the smallest possible prime divisor. Divide 360 by 2 three times to get 45, then by 3 twice to get 5. The remaining prime is 5.

Group repeated factors into powers

The factors of 360 are 2, 2, 2, 3, 3 and 5. As prime powers they are 2³ × 3² × 5. You can multiply them to verify the original number.

Know when the remaining number is prime

If a number has two factors other than 1, one of them is no greater than its square root. Once no candidate divisor up to that point divides the remainder, the remainder is prime.

Frequently asked questions

What are the prime factors of 1?

The number 1 has no prime factors and is neither prime nor composite.

Can I enter zero or a negative number?

The supported inputs are the positive integers from 1 through one trillion.

Does the result show every divisor?

It shows the prime factors, division steps and the total number of positive divisors. Composite divisors can be built by combining the prime powers.