How do you find the prime factorization of a number?
A prime number has exactly two divisors, 1 and itself (2, 3, 5, 7, 11 ...). Every whole number above 1 is either prime or a unique product of primes. To find the factors, use repeated division:
- Divide by 2 as many times as it fits.
- Then try 3, 5, 7, 11 and so on, in order.
- Stop when the remaining number is 1, or when the next prime squared is more than what is left. What is left is itself prime.
Example, 360: 360 ÷ 2 = 180, ÷ 2 = 90, ÷ 2 = 45, then ÷ 3 = 15, ÷ 3 = 5, and 5 is prime. So 360 = 2 × 2 × 2 × 3 × 3 × 5 = 2³ × 3² × 5. And 84 = 2² × 3 × 7.
Prime factor tree
A factor tree shows the same process as branches. Split a number into any two factors, then split each composite factor, until only primes remain. For 84: 84 → 12 × 7, then 12 → 3 × 4 and 4 → 2 × 2, giving the primes 2, 2, 3 and 7. However you branch, the end result is the same, which is the fundamental theorem of arithmetic.
What can you do with prime factors?
- Count the divisors: add 1 to each exponent and multiply. For 360 = 2³ × 3² × 5¹: (3+1)(2+1)(1+1) = 24 divisors.
- Find the GCF and LCM: take the lowest powers for the GCF and the highest for the LCM. Try the GCF and LCM calculator.
- Simplify fractions and square roots: cancel common prime factors.
- Cryptography: the difficulty of factoring very large numbers protects online security.
The calculator also lists every divisor of the number (up to 24 for 360) and tells you instantly whether it is prime.
Complete guide to the Prime Factorization Calculator
How to use the Prime Factorization Calculator, step by step
- Enter a whole number from 2 up to 1 trillion.
- Read the prime factorization with exponents.
- Check if it is prime and see its divisor count.
- Use the divisor list to find all its factors.
Common mistakes to avoid
- Treating 1 as a prime.
- Stopping early before the remainder is prime.
- Dropping a repeated factor.
Key terms explained
- Prime number
- A number greater than 1 with exactly two divisors.
- Composite number
- A number with more than two divisors.
- Factor
- A number that divides another exactly.
- Divisor
- Another word for factor.
Want the full walkthrough? Read our guide: Prime Factorization Explained: Factor Trees, Divisors.
Frequently asked questions
How do I find the prime factors of a number?
Divide by 2, then 3, 5, 7 and so on, repeating each prime as long as it divides evenly, until you reach 1. The primes you used are the prime factors.
What is the prime factorization of 360?
360 = 2³ × 3² × 5, which is 2 × 2 × 2 × 3 × 3 × 5.
How do I know if a number is prime?
Check whether any prime up to its square root divides it. If none does, it is prime. The calculator tells you straight away.
Is 1 a prime number?
No. A prime needs exactly two divisors, and 1 has only one. That is why the factorization of every number above 1 is unique.
How many divisors does a number have?
Add 1 to each exponent in its prime factorization and multiply the results. 360 has (3+1)(2+1)(1+1) = 24 divisors.