Skip to main content

Online Calculators and Tools | Calculators Toolbox

Prime Factorization Calculator

Home / Prime Factorization Calculator
Prime Factorization Calculator illustration showing a glowing factor tree branching from a large number orb down to small prime number spheres at the leaves

This prime factorization calculator splits any number into prime factors in exponent form, with every step.

Prime Factorization Calculator

Calculation Explanation

Prime Factorization Calculator – Break Any Number Into Primes

Our free prime factorization calculator splits any whole number into its prime factors in exponent form, such as 360 = 2³ × 3² × 5. You'll also see the expanded product, the number of divisors and every division step.

What Is Prime Factorization?

Prime factorization means writing a number as a product of prime numbers. Since primes can't be broken down any further, this is the most basic way to describe a number's structure. For example, 60 = 2 × 2 × 3 × 5, which is usually written more compactly as 2² × 3 × 5.

A remarkable fact, known as the Fundamental Theorem of Arithmetic, says every whole number greater than 1 has exactly one prime factorization (apart from the order of the factors). Whether you start by dividing 60 by 2, 3 or 5, you'll always end up with the same primes. That uniqueness is what makes prime factorization so useful for finding LCMs, GCFs, simplifying fractions and radicals, and counting divisors.

How to Find the Prime Factorization

The most direct method is repeated division. Divide by the smallest prime that fits, then keep dividing the result until you reach 1.

n = p₁a × p₂b × p₃c × …   (each p is prime)

For 360: 360 ÷ 2 = 180, ÷ 2 = 90, ÷ 2 = 45, ÷ 3 = 15, ÷ 3 = 5, ÷ 5 = 1. The primes used were 2, 2, 2, 3, 3 and 5, so 360 = 2³ × 3² × 5.

Example Calculations:

Factorize 842 × 2 × 3 × 7 = 2² × 3 × 7
Factorize 3602³ × 3² × 5
Factorize 1,0017 × 11 × 13
Factorize 1,0242¹⁰

How to Use the Prime Factorization Calculator

  1. Type any whole number from 2 up to 1,000,000,000,000.
  2. The prime factorization appears immediately in exponent form.
  3. Underneath you'll see the expanded form (every prime written out) and how many divisors the number has.
  4. The explanation box lists each division step, so you can copy the working into homework.

Real-World Applications of Prime Factorization

Finding the LCM

The least common multiple uses the highest power of each prime, which is key for adding fractions.

Finding the GCF

The greatest common factor uses the lowest power of each shared prime, useful for simplifying fractions and ratios.

Simplifying Radicals

√72 = √(2³ × 3²) = 2 × 3 × √2 = 6√2. Pairs of primes come out of the square root.

Encryption

RSA security depends on how hard it is to factor a product of two very large primes.

Counting Divisors

Add 1 to each exponent and multiply: 360 = 2³ × 3² × 5 has 4 × 3 × 2 = 24 divisors.

Why 60 and 360?

Ancient timekeepers chose 60 minutes and 360 degrees because those numbers have many prime factors and divide evenly in lots of ways.

Methods for Prime Factorization

Repeated Division

Divide by 2 as many times as possible, then 3, then 5, 7, 11 and so on, until the result is 1. It's systematic and the method this calculator uses.

Example: 126 ÷ 2 = 63, ÷ 3 = 21, ÷ 3 = 7, ÷ 7 = 1 → 2 × 3² × 7.

Factor Tree

Split the number into any two factors, then keep splitting each branch until every leaf is prime. Different trees for the same number always end with the same primes.

Example: 72 → 8 × 9 → (2 × 4) × (3 × 3) → 2 × 2 × 2 × 3 × 3.

Ladder (Upside-Down Division)

Write the number at the top of a ladder and write prime divisors down the left side, with each quotient below. Read the primes down the side for the answer. It's a tidy layout many teachers prefer.

Tips for Prime Factorization

  • Always start with 2 and work upward; it keeps the steps organized and avoids missing a factor.
  • You only need to test primes up to the square root of what's left. Anything remaining after that is itself prime.
  • Use divisibility rules: even numbers divide by 2, digit sums divisible by 3 divide by 3, and numbers ending in 0 or 5 divide by 5.
  • Write the final answer with primes in increasing order and exponents for repeats.
  • If the calculator returns the number itself, it's prime. You can confirm with the prime number checker.
  • Check your work by multiplying the factors back together.

Prime Factorization Reference Table

NumberPrime factorizationNumber of divisors
122² × 36
362² × 3²9
482⁴ × 310
602² × 3 × 512
1002² × 5²9
2102 × 3 × 5 × 716
3602³ × 3² × 524
1,0002³ × 5³16
2,3102 × 3 × 5 × 7 × 1132

Step-by-Step Worked Example

Let's find the prime factorization of 1,540 and use it to count its divisors.

  1. 1,540 is even: 1,540 ÷ 2 = 770. Still even: 770 ÷ 2 = 385.
  2. 385 ends in 5: 385 ÷ 5 = 77.
  3. 77 = 7 × 11, and both are prime.
  4. So 1,540 = 2² × 5 × 7 × 11.
  5. Number of divisors: (2+1)(1+1)(1+1)(1+1) = 3 × 2 × 2 × 2 = 24.

Type 1540 into the prime factorization calculator and you'll see the same factorization and divisor count, plus each division written out.

Perfect Squares and Cubes From Factorizations

Prime factorization makes it easy to spot special numbers. A number is a perfect square when every exponent in its factorization is even, like 36 = 2² × 3². It's a perfect cube when every exponent is a multiple of 3, like 216 = 2³ × 3³. If the exponents aren't all even, the factorization tells you exactly what to multiply by to make a perfect square: 18 = 2 × 3², so multiplying by 2 gives 36. Tricks like these appear often in algebra and competition math.

Using Prime Factorization to Simplify Fractions

Prime factorization gives a reliable way to reduce any fraction. Factor the numerator and denominator, cancel the primes they share, and multiply what's left. For 210/462: 210 = 2 × 3 × 5 × 7 and 462 = 2 × 3 × 7 × 11. Cancel the shared 2, 3 and 7, leaving 5/11. This method never misses a common factor, which makes it especially useful for large or unfamiliar numbers. Our simplify fractions calculator applies the same idea automatically.

Why Use Our Prime Factorization Calculator?

Factoring large numbers by hand takes time and invites mistakes. Our prime factorization calculator handles numbers up to a trillion instantly, shows the answer in exponent and expanded form, counts the divisors and writes out every division step. It's ideal for LCM and GCF problems, simplifying radicals, and number theory homework.

Frequently Asked Questions

Quick answers to common questions related to Prime Factorization Calculator are as under:-

What is prime factorization?

Prime factorization is writing a number as a product of prime numbers. For example, the prime factorization of 60 is 2² × 3 × 5.

How do you find the prime factorization of a number?

Divide the number by the smallest prime that goes into it, then keep dividing the result by primes until you reach 1. The primes you used are the prime factors.

Is prime factorization unique?

Yes. The Fundamental Theorem of Arithmetic says every whole number greater than 1 has exactly one prime factorization, apart from the order of the factors.

What is the prime factorization of a prime number?

A prime number’s factorization is just the number itself. For example, the prime factorization of 13 is 13.

How do I count divisors using prime factorization?

Add 1 to each exponent and multiply the results. Since 72 = 2³ × 3², it has (3+1)(2+1) = 12 divisors.

What is a factor tree?

A factor tree is a diagram that splits a number into two factors, then splits those factors again, until every branch ends in a prime number.

Latest from Our Blog

Explore helpful tips, updates, and guides on calculators, AI tools, and conversions.