Skip to main content

DigitalCalculators.net

Prime Factorization Calculator

Break any whole number into its prime factors, see the division steps, and get the exponent form and all its factors.

Results

ItemValue

Steps

StepWorking
Large numbers with big prime factors can take a moment to check. A number with no factors other than 1 and itself is prime.

Quick Answer

Prime factorization writes a number as a product of prime numbers. Divide by the smallest prime that fits, and keep going until only 1 is left. 360 ÷ 2 ÷ 2 ÷ 2 ÷ 3 ÷ 3 ÷ 5 = 1, so 360 = 2 × 2 × 2 × 3 × 3 × 5, or 2^3 × 3^2 × 5.

Last updated: 2 November 2026 ·How we calculate this: repeated division by primes

Table of Contents

How This Prime Factorization Calculator Works

Enter a whole number. The calculator divides it by 2 as many times as it can, then by 3, 5, 7 and so on, until what is left is 1 or a prime. Each division is shown as a step. It also counts how many factors the number has and lists them.

Quick explanation: every whole number above 1 is either prime or a unique product of primes.

  • Exponent form: repeated primes are written as powers, such as 2³.
  • Number of factors: add 1 to each exponent and multiply.
  • All factors: listed when there are 64 or fewer.

How to Use the Prime Factorization Calculator

  1. Enter a whole number from 2 to one trillion.
  2. Press Calculate.
  3. Read the prime factorization in exponent form.
  4. See how many factors the number has, and the full list for smaller counts.
  5. Follow the division steps to see how the factors were found.

Core Rules

  • Prime number: a whole number above 1 with exactly two factors, 1 and itself
  • Method: divide by the smallest prime that fits, and repeat
  • Stopping point: you only need to test divisors up to the square root
  • Number of factors: for p^a × q^b, it is (a + 1) × (b + 1)

Key Terms

  • Prime number: a whole number above 1 that only divides by 1 and itself.
  • Prime factor: a prime that divides a number exactly.
  • Factor tree: a diagram that splits a number into factors until all are prime.
  • Composite number: a whole number above 1 that is not prime.
  • Exponent form: writing repeated factors as powers, such as 2³ for 2 × 2 × 2.

Worked Example

Find the prime factors of 84.

  • 84 ÷ 2 = 42
  • 42 ÷ 2 = 21
  • 21 ÷ 3 = 7, and 7 is prime
  • 84 = 2² × 3 × 7, with (2 + 1) × (1 + 1) × (1 + 1) = 12 factors

Real-Life Examples

  • Simplifying a fraction: 84/126 = (2² × 3 × 7) / (2 × 3² × 7). Cancel 2 × 3 × 7 to get 2/3.
  • Finding the GCF: 48 = 2^4 × 3 and 180 = 2^2 × 3^2 × 5. The shared lowest powers are 2² × 3 = 12.
  • Simplifying a square root: 72 = 2³ × 3², so √72 = 2 × 3 × √2 = 6√2.
  • Checking for a prime: 97 has no factors except 1 and 97, so it is prime.

Prime Numbers vs Composite Numbers

  • Prime: exactly two factors, such as 2, 3, 5, 7 and 11.
  • Composite: more than two factors, such as 4, 6, 8, 9 and 12.
  • 1: neither prime nor composite.
  • 2: the only even prime number.

Prime Factorizations of Common Numbers

NumberPrime factorizationNumber of factors
122^2 × 36
242^3 × 38
362^2 × 3^29
482^4 × 310
602^2 × 3 × 512
722^3 × 3^212
1002^2 × 5^29
1202^3 × 3 × 516
1442^4 × 3^215
3602^3 × 3^2 × 524
1,0002^3 × 5^316

Why Prime Factors Are Useful

  • LCM and GCF: both come straight from prime factors.
  • Simplifying fractions: cancel shared prime factors.
  • Square roots: pairs of primes come out of the root, such as √72 = 6√2.
  • Encryption: online security relies on how hard it is to factor very large numbers.

Common Mistakes to Avoid

  • Calling 1 a prime. 1 has only one factor, so it is not prime.
  • Stopping at a composite number. Keep dividing until every factor is prime.
  • Skipping small primes. Always try 2, then 3, then 5, in order.
  • Forgetting repeated factors. 8 = 2 × 2 × 2, not just 2.
  • Testing too far. You only need to test divisors up to the square root.

Frequently Asked Questions

2^3 × 3^2 × 5.

2² × 5².

No. A prime has exactly two factors, and 1 has only one.

Divide by the smallest prime that fits, write it down, and repeat with the result until you reach 1.

Yes. This is the fundamental theorem of arithmetic.

A diagram where you split a number into two factors, then split those, until every branch ends in a prime.

24, because 360 = 2³ × 3² × 5 and (3 + 1) × (2 + 1) × (1 + 1) = 24.

No. 91 = 7 × 13.

The record keeps changing. The largest known primes are Mersenne primes of the form 2^p − 1, with millions of digits.

References & Sources

SourceUsed ForLink
Wikipedia, Integer factorization Methods for finding prime factors. https://en.wikipedia.org/wiki/Integer_factorization
Wikipedia, Fundamental theorem of arithmetic Every number has a unique prime factorization. https://en.wikipedia.org/wiki/Fundamental_theorem_of_arithmetic