Prime Factorization Calculator

Quick answerPrime factorization writes a number as a product of prime numbers. Divide by the smallest prime that fits and repeat on the quotient until you reach 1. For example, 360 = 2 × 2 × 2 × 3 × 3 × 5, written 2³ × 3² × 5.

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
Factor tree of 360360218029024531535

Step-by-step solution

  1. Divide 360 by the smallest prime that fits, and repeat on the quotient:
  2. 360 ÷ 2 = 180
  3. 180 ÷ 2 = 90
  4. 90 ÷ 2 = 45
  5. 45 ÷ 3 = 15
  6. 15 ÷ 3 = 5
  7. 5 ÷ 5 = 1
  8. The primes used are 2 × 2 × 2 × 3 × 3 × 5 = 360.
  9. 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.

What you get from the Prime Factorization. A whole number such as 360 → Repeated division by primes → Prime factors, a factor tree and all divisorsWhat you get from the Prime FactorizationYOU ENTERA whole number suchas 360THE CALCULATORRepeated division byprimesYOU GETPrime factors, afactor tree and alldivisors

How to use the Prime Factorization

  1. Type your numbers into the boxes above.
  2. Press Calculate (or hit Enter).
  3. Read the highlighted answer, check the picture, then follow the numbered steps to see how it was found.
  4. Use Copy answer to paste the result into your homework or notes.

Formula and method

Resultn = p₁ᵃ × p₂ᵇ × … (primes p)
Factor count(a+1)(b+1)… factors

Worked examples

Example 1: 360

360 = 23 × 32 × 5

  1. Divide 360 by the smallest prime that fits, and repeat on the quotient:
  2. 360 ÷ 2 = 180
  3. 180 ÷ 2 = 90
  4. 90 ÷ 2 = 45
  5. 45 ÷ 3 = 15
  6. 15 ÷ 3 = 5
  7. 5 ÷ 5 = 1
  8. The primes used are 2 × 2 × 2 × 3 × 3 × 5 = 360.
  9. In exponent form: 23 × 32 × 5.

Example 2: 97

97 is prime

  1. 97 is a prime number: its only factors are 1 and 97.

Example 3: 1001

1,001 = 7 × 11 × 13

Show the steps
  1. Divide 1,001 by the smallest prime that fits, and repeat on the quotient:
  2. 1,001 ÷ 7 = 143
  3. 143 ÷ 11 = 13
  4. 13 ÷ 13 = 1
  5. The primes used are 7 × 11 × 13 = 1,001.
  6. In exponent form: 7 × 11 × 13.

Example 4: 2024

2,024 = 23 × 11 × 23

Show the steps
  1. Divide 2,024 by the smallest prime that fits, and repeat on the quotient:
  2. 2,024 ÷ 2 = 1,012
  3. 1,012 ÷ 2 = 506
  4. 506 ÷ 2 = 253
  5. 253 ÷ 11 = 23
  6. 23 ÷ 23 = 1
  7. The primes used are 2 × 2 × 2 × 11 × 23 = 2,024.
  8. 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

Calculators are for learning and general use. If a result matters (an exam, a build, a purchase), double-check it. Read the disclaimer.