Prime Factorization Calculator
Break a positive whole number into its prime factors
Prime factorization
How we calculated it
About the Prime Factorization Calculator
Prime factorization breaks a whole number into prime numbers whose product recreates the original value. It is useful for simplifying fractions, finding LCM or GCF and understanding the multiplicative structure of an integer.
Every positive integer greater than 1 has a unique prime factorization apart from the order in which the factors are written.
How to Use the Prime Factorization Calculator
- Enter a positive integer greater than 1.
- Calculate its prime factors.
- Review repeated prime factors as exponents when that notation is helpful.
- Use the factorization as an input to LCM, GCF or divisibility work when needed.
How the Calculation Works
The calculator repeatedly divides the number by the smallest prime that divides it evenly, continuing until the remaining quotient is 1.
Repeated identical primes can be grouped with exponents. For example, 2×2×2×3 is written 2³×3.
Worked examples
Prime Factorization Calculator Worked Examples
Default
360 = 2³ × 3² × 5. It has 6 prime factors counted with repeats and 3 distinct primes.
A prime
97 is prime, so its factorization is just 97.
Year number
2024 = 2³ × 11 × 23.
Prime factorizations
Exponents show repeated factors.
| Number | Prime factors | Count | Largest prime |
|---|---|---|---|
| 360 | 2^3 × 3^2 × 5 | 6 | 5 |
| 100 | 2^2 × 5^2 | 4 | 5 |
| 97 | 97 | 1 | 97 |
| 1,001 | 7 × 11 × 13 | 3 | 13 |
| 2,024 | 2^3 × 11 × 23 | 5 | 23 |
| 4,096 | 2^12 | 12 | 2 |
How the calculator works
The calculator divides by 2 as many times as possible, then by 3, 5, 7 and each odd number in turn, only testing divisors up to the square root of what remains. Whatever is left above 1 is itself prime. Repeated factors are shown with exponents, so 360 = 2³ × 3² × 5.
Why prime factors are useful
Every whole number above 1 has exactly one prime factorization, a result known as the fundamental theorem of arithmetic. From it you can find the GCF (the common primes at their lowest powers), the LCM (all primes at their highest powers) and the number of factors: add 1 to each exponent and multiply, so 360 has 4 × 3 × 2 = 24 factors.
Common Mistakes
- Including 1. 1 is not a prime number.
- Stopping with a composite factor. Keep dividing until every factor is prime.
- Missing repeats. 12 = 2² × 3, not 2 × 3.
Result guide
Understanding Your Prime Factorization Calculator Result
Prime factorization exposes the irreducible multiplicative building blocks of the integer. Once those prime powers are visible, divisibility, LCM and GCF questions often become much easier to reason through.
Before you rely on the answer
Assumptions and Limitations
- Input is an integer.
- Positive factorization is requested.
- 1 is not treated as a prime number.
Practical tip
Using This Result in Practice
For large composite numbers, divide by small primes first: 2, 3, 5, 7 and so on. If the remaining quotient is prime, the factorization is complete. A quick divisibility check for 2, 3 and 5 can eliminate many trial divisions before you move to larger primes.
Related calculations
Useful Calculations to Continue With
If you want every positive divisor rather than only the prime building blocks, use the Factor Calculator.
If you are using prime powers to find a least common multiple, continue with the LCM Calculator.
Common questions
Prime Factorization Calculator FAQ
What is prime factorization?
Writing a number as a product of primes.
Is 1 a prime?
No.
What is the prime factorization of 360?
2³ × 3² × 5.
How do I find the number of factors?
Add 1 to each exponent and multiply.
Why test only up to the square root?
Any larger factor would pair with a smaller one already found.
