Prime Factorization Calculator

Enter a whole number to get its prime factorization. For example, 360 = 2³ × 3² × 5.

By Mustansar Iqbal Khan, independent developerUpdated

Prime Factorization Calculator

Result

Working it out…

How do I find prime factors?

Divide by the smallest prime (2) as many times as possible, then 3, then 5 and so on, until the number left is 1. Every whole number above 1 has exactly one prime factorization.

Factor tree example

360 → 2 × 180 → 2 × 2 × 90 → 2 × 2 × 2 × 45 → 2 × 2 × 2 × 3 × 15 → 2 × 2 × 2 × 3 × 3 × 5.

Frequently asked questions

Is 1 a prime number?

No. Primes have exactly two factors, 1 and themselves.

What is the prime factorization of 100?

2² × 5².

How big a number can I enter?

Up to 10 trillion.