Prime Factorization Calculator

Break a positive whole number into its prime factors

Your result will appear here.

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

  1. Enter a positive integer greater than 1.
  2. Calculate its prime factors.
  3. Review repeated prime factors as exponents when that notation is helpful.
  4. 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.

NumberPrime factorsCountLargest prime
3602^3 × 3^2 × 565
1002^2 × 5^245
9797197
1,0017 × 11 × 13313
2,0242^3 × 11 × 23523
4,0962^12122

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.

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.

About the author

Adupa Derrick

Adupa Derrick designs every calculator on Numi Calculator, uses AI tools to help draft code and explanations and checks each formula against worked examples and published references before it goes live.

About Numi Calculator Our methodology