Boneyard Tools

Prime Factorization Calculator

Enter a whole number and get its prime factorization instantly. The result shows the exponent form, a table of each prime and its power, and tells you whether the number is prime.

How to find a prime factorization

  1. Type a whole number that is 2 or greater.
  2. Read the factorization in exponent form, such as 2^3 x 3^2 x 5.
  3. Check the factor table for each prime and its power, and copy the result.

Examples

A composite number

360
360 = 2^3 x 3^2 x 5

A prime number

17
17 is prime, so its only factorization is 17.

A perfect square

100
100 = 2^2 x 5^2

Frequently asked questions

What is prime factorization?

Prime factorization writes a whole number as a product of prime numbers. For example 360 = 2 x 2 x 2 x 3 x 3 x 5, which is shortened to 2^3 x 3^2 x 5. Every integer above 1 has exactly one such factorization.

How does the calculator find the factors?

It uses trial division: it repeatedly divides the number by 2, then by each odd number, up to the square root of what remains. Any leftover value above 1 is itself a prime factor. This finds the complete factorization for everyday numbers.

What does the exponent notation mean?

When a prime appears more than once, it is written as a power. So 2^3 means 2 used three times (2 x 2 x 2) and 3^2 means 3 used twice. A prime that appears only once is written on its own, like the 5 in 2^3 x 3^2 x 5.

What happens if the number is prime?

A prime number has no factors other than 1 and itself, so its factorization is just the number. The calculator flags it as prime and shows a single entry in the factor table.

Why are 0, 1, decimals and negatives not allowed?

Prime factorization is defined for whole numbers that are 2 or greater. The numbers 0 and 1 have no prime factorization, and decimals and negatives fall outside the definition, so the tool asks for a counting number instead.

Is my input private?

Yes. The factorization runs entirely in your browser. Nothing you type is sent to a server, so your numbers stay on your device.

Related tools