Prime Factorization Calculator
Enter a whole number from 2 up to about 9 trillion.
360 = 23 × 32 × 5
- Number of factors: 24
- Factors: 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, 18, 20, 24, 30, 36, 40, 45, 60, 72, 90, 120, 180, 360
Step-by-step solution
- Divide 360 by the smallest prime that fits, and repeat on the quotient:
- 360 ÷ 2 = 180
- 180 ÷ 2 = 90
- 90 ÷ 2 = 45
- 45 ÷ 3 = 15
- 15 ÷ 3 = 5
- 5 ÷ 5 = 1
- The primes used are 2 × 2 × 2 × 3 × 3 × 5 = 360.
- In exponent form: 23 × 32 × 5.
Example shown: the default numbers above. Change them and press Calculate.
What you get when you use this calculator
Every result includes the answer, a picture of what the answer means and the full working, so you can check the method as well as the number.
How to use the Prime Factorization
- Type your numbers into the boxes above.
- Press Calculate (or hit Enter).
- Read the highlighted answer, check the picture, then follow the numbered steps to see how it was found.
- Use Copy answer to paste the result into your homework or notes.
Formula and method
| Result | n = p₁ᵃ × p₂ᵇ × … (primes p) |
|---|---|
| Factor count | (a+1)(b+1)… factors |
Worked examples
Example 1: 360
360 = 23 × 32 × 5
- Divide 360 by the smallest prime that fits, and repeat on the quotient:
- 360 ÷ 2 = 180
- 180 ÷ 2 = 90
- 90 ÷ 2 = 45
- 45 ÷ 3 = 15
- 15 ÷ 3 = 5
- 5 ÷ 5 = 1
- The primes used are 2 × 2 × 2 × 3 × 3 × 5 = 360.
- In exponent form: 23 × 32 × 5.
Example 2: 97
97 is prime
- 97 is a prime number: its only factors are 1 and 97.
Example 3: 1001
1,001 = 7 × 11 × 13
Show the steps
- Divide 1,001 by the smallest prime that fits, and repeat on the quotient:
- 1,001 ÷ 7 = 143
- 143 ÷ 11 = 13
- 13 ÷ 13 = 1
- The primes used are 7 × 11 × 13 = 1,001.
- In exponent form: 7 × 11 × 13.
Example 4: 2024
2,024 = 23 × 11 × 23
Show the steps
- Divide 2,024 by the smallest prime that fits, and repeat on the quotient:
- 2,024 ÷ 2 = 1,012
- 1,012 ÷ 2 = 506
- 506 ÷ 2 = 253
- 253 ÷ 11 = 23
- 23 ÷ 23 = 1
- The primes used are 2 × 2 × 2 × 11 × 23 = 2,024.
- In exponent form: 23 × 11 × 23.
Practice problems
Try each one on paper first, then open the answer.
Problem 1: 72
72 = 23 × 32
Problem 2: 150
150 = 2 × 3 × 52
Problem 3: 231
231 = 3 × 7 × 11
Problem 4: 1155
1,155 = 3 × 5 × 7 × 11
Frequently asked questions
What is a prime number?
A prime number has exactly two factors, 1 and itself. 2, 3, 5, 7 and 11 are primes.
Is 1 a prime number?
No. It has only one factor, so it is neither prime nor composite.
Why does prime factorization matter?
It is the fastest reliable way to find the GCF and LCM of larger numbers and to simplify roots.
Learn the method
Related calculators
GCF Calculator
Find the greatest common factor, also called GCD or HCF, of two or more numbers. Shows prime factors and a Venn diagram.
LCM Calculator
Find the least common multiple of two or more numbers. Shows prime factors, the method and a multiples picture.
Simplify Fractions
Reduce any fraction to its simplest form. See the GCF used, the division steps and a before-and-after picture.
Calculators are for learning and general use. If a result matters (an exam, a build, a purchase), double-check it. Read the disclaimer.