Prime Factorization Calculator

Enter any whole number to get its prime factorization and factor tree, with the division working shown.

Examples:723601,0019735,280

72 is a composite number. It has 12 factors. The sum of its factors is 195.

Prime factorization of 72:

72 = 2332

Divide by the smallest prime each time until you reach 1:

  1. 72 ÷ 2 = 36
  2. 36 ÷ 2 = 18
  3. 18 ÷ 2 = 9
  4. 9 ÷ 3 = 3
  5. 3 ÷ 3 = 1

What Is Prime Factorization?

Prime factorization means writing a number as a product of prime numbers and nothing else. For example, 60 = 2 × 2 × 3 × 5. Every number on the right is prime, so you cannot break any of them down any further.

There is one neat fact behind all of this. Every whole number bigger than 1 has exactly one prime factorization, apart from the order you write it in. Mathematicians call that the Fundamental Theorem of Arithmetic. It is why the answer you get here will always match the answer in the back of your book.

Prime Numbers and Composite Numbers

A prime number has exactly two factors: 1 and itself. A composite number has more than two. The number 1 is neither, because it has only one factor. And 2 is the only even prime.

The primes up to 50 are worth knowing by heart: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47. That is 15 of them.

How to Use This Prime Factorization Calculator

  1. Type a whole number into the box. Use Paste if you have it copied.
  2. Press Calculate, or hit Enter.
  3. Read the prime factorization, the factor tree, every factor of the number and its factor pairs.

Method 1: Prime Factorization with a Factor Tree

Split the number into any two factors. Then split each of those, and keep going until every branch ends in a prime. Circle the primes as you go. Here is 72:

Handwritten factor tree of 72: 72 splits into 8 and 9, 8 splits into 2 and 4, 4 splits into 2 and 2, 9 splits into 3 and 3, so 72 = 2 × 2 × 2 × 3 × 3 = 2 cubed times 3 squared
Factor tree of 72. The circled primes are 2, 2, 2, 3 and 3, so 72 = 2³ × 3².

You can start the tree with any pair. If you split 72 as 6 × 12 instead, you end up with the same five primes, just in a different order. That is the unique-answer rule at work.

Method 2: The Division Ladder

The ladder is faster to write than a tree. Divide by the smallest prime that goes in, write the answer below, and repeat until you reach 1.

Handwritten division ladder for 84: divide by 2 to get 42, by 2 to get 21, by 3 to get 7, by 7 to get 1, so 84 = 2 × 2 × 3 × 7 = 2 squared times 3 times 7
Dividing 84 by 2, 2, 3 and 7 gets to 1, so 84 = 2² × 3 × 7.

The numbers on the left are your prime factors. Always try the primes in order, 2, 3, 5, 7, 11, and stay on a prime until it stops dividing evenly.

Quick Divisibility Rules That Speed It Up

That last one is handy. 1,001 = 7 × 11 × 13, three primes in a row. You can see it worked out step by step on the factors of 1,001 page.

How to Tell If a Number Is Prime

You do not have to test every number below it. You only test the primes up to the square root of the number. If none of them divide it, the number is prime. Let us test 91:

Handwritten test of whether 91 is prime: square root of 91 is about 9.5 so test 2, 3, 5 and 7, 7 divides 91 to give 13, so 91 = 7 × 13 and it is composite
√91 ≈ 9.5, so test 2, 3, 5 and 7. 91 ÷ 7 = 13, so 91 is composite.

91 looks prime because it is not even, does not end in 5 and the digits add up to 10. It is a classic trap. The prime 7 goes in, so 91 = 7 × 13.

Write the Answer with Exponents

When a prime repeats, group it with an exponent. So 2 × 2 × 2 × 3 × 3 becomes 2³ × 3². This short form is called exponential form, and it is the form most teachers ask for. The little number tells you how many times that prime appears.

Count the Factors of a Number

Once you have the prime factorization, you can count all the factors without listing them. Add 1 to each exponent, then multiply the results. For 72 = 2³ × 3²:

Handwritten work showing 72 = 2 cubed times 3 squared, add 1 to each exponent, (3 + 1) times (2 + 1) = 4 times 3 = 12, so 72 has 12 factors, listed as 1, 2, 3, 4, 6, 8, 9, 12, 18, 24, 36, 72
(3 + 1) × (2 + 1) = 12, so 72 has 12 factors.

The rule works because each factor picks between 0 and 3 twos, and between 0 and 2 threes. That is 4 choices for the twos and 3 for the threes, so 4 × 3 = 12 factors.

What You Can Do with Prime Factorization

Find the GCF and LCM

With both numbers in prime form, the GCF takes the shared primes at the lowest power, and the LCM takes every prime at the highest power. Use our GCF calculator or LCM calculator to check.

Simplify square roots

72 = 2³ × 3² = (2² × 3²) × 2, and the square part comes out of the root. So √72 = 2 × 3 × √2 = 6√2.

Spot perfect squares

A number is a perfect square when every exponent in its prime factorization is even. 144 = 2⁴ × 3², and both exponents are even, so 144 = 12².

Common Prime Factorization Mistakes

Whichever method you use, multiply your primes back together at the end. If you get the number you started with, the factorization is right.

Prime Factorization: FAQs

What is prime factorization?

Prime factorization means writing a number as a product of prime numbers only. For example 60 = 2 × 2 × 3 × 5, which is written in short form as 2² × 3 × 5.

Is 1 a prime number?

No. A prime number has exactly two factors, 1 and itself, and the number 1 has only one factor. It is also not composite. So 1 is neither prime nor composite, and it is never written in a prime factorization.

What is the prime factorization of 60?

60 = 2 × 2 × 3 × 5 = 2² × 3 × 5. You can find it with a factor tree: 60 splits into 6 and 10, then 6 into 2 and 3, and 10 into 2 and 5.

Does every number have only one prime factorization?

Yes, apart from the order of the primes. This is called the Fundamental Theorem of Arithmetic. 12 can be written as 2 × 2 × 3 or 3 × 2 × 2, but it will always use two 2s and one 3.

How can I tell if a number is prime?

Test the primes up to the square root of the number. If none of them divide it evenly, the number is prime. For 91 the square root is about 9.5, and 7 divides 91 to give 13, so 91 is not prime.

What is the prime factorization of 100?

100 = 2 × 2 × 5 × 5 = 2² × 5². Both exponents are even, which tells you that 100 is a perfect square: 10 × 10.

How do you count the factors of a number from its prime factorization?

Add 1 to each exponent and multiply the results. For 72 = 2³ × 3², the count is (3 + 1) × (2 + 1) = 12, so 72 has 12 factors.

What is the difference between a factor tree and the division ladder?

Both give the same answer. A factor tree splits a number into any two factors and keeps splitting until every branch is prime. The division ladder divides by the smallest prime each time until you reach 1. The ladder is more systematic, and the tree is easier to picture.