Skip to content

Prime Factorization Made Simple: Factor Trees, Division and Uses

By Sprout Calculator Editorial Team Bylines · Published November 5, 2026 · Updated November 6, 2026

Prime factorization writes a whole number as a product of primes, such as 360 = 2³ × 3² × 5. Divide by the smallest prime that fits, repeat with the quotient, and stop at 1. Every number above 1 has exactly one prime factorization, which makes it useful for finding the GCF, the LCM and divisors.

What is prime factorization?

Prime factorization means writing a number as a product of prime numbers. A prime is a whole number greater than 1 whose only divisors are 1 and itself. The first few are 2, 3, 5, 7, 11, 13 and 17.

Take 60. You can write it as 6 × 10, but 6 and 10 are not prime. Break them down further and you get 2 × 3 × 2 × 5. Put the primes in order and group repeats with exponents: 60 = 2² × 3 × 5. That is its prime factorization.

Think of primes as the atoms of whole numbers. Every number above 1 is built from primes, and only one set of primes builds it. You can check any answer with the factor calculator, which lists the factors of a number and shows how it breaks into primes.

How do you find the prime factorization with a factor tree?

Start with the number and split it into any two factors. Keep splitting each factor until every branch ends in a prime. Then collect the primes at the ends of the branches and write them as a product.

Here is a factor tree for 180:

  1. Split 180 into 18 × 10.
  2. Split 18 into 2 × 9, and 10 into 2 × 5.
  3. Split 9 into 3 × 3.
  4. The ends of the branches are 2, 3, 3, 2 and 5.

Sort them and group repeats: 180 = 2² × 3² × 5.

You can start with any pair of factors. If you begin with 4 × 45 instead, you reach the same primes in the end. The path changes, but the answer does not.

How do you use repeated division?

Repeated division is a neat alternative to a tree. Divide the number by the smallest prime that goes in evenly. Divide the quotient by the smallest prime that goes into it. Continue until the quotient is 1. The divisors you used are the prime factors.

Try 360:

  • 360 ÷ 2 = 180
  • 180 ÷ 2 = 90
  • 90 ÷ 2 = 45
  • 45 ÷ 3 = 15
  • 15 ÷ 3 = 5
  • 5 ÷ 5 = 1

The divisors were 2, 2, 2, 3, 3 and 5. So 360 = 2³ × 3² × 5.

Always try primes in order, starting at 2. When 2 no longer works, try 3, then 5, then 7. You never need to test a prime larger than the square root of the number you are working on. If nothing up to that point divides it, the number is prime.

What are the divisibility shortcuts for small primes?

A few quick rules save time. A number is divisible by 2 if it ends in an even digit. It is divisible by 3 if its digits add to a multiple of 3. It is divisible by 5 if it ends in 0 or 5. For 7, double the last digit, subtract it from the rest and see if the result is a multiple of 7.

Test 8,415. The digits add to 18, so it divides by 3. It ends in 5, so it divides by 5. After dividing by 3 and 5 you get 561. The digits of 561 add to 12, so divide by 3 again to get 187. Now 187 = 11 × 17. So 8,415 = 3² × 5 × 11 × 17.

Our guide to divisibility rules lists every shortcut from 2 to 12 with examples.

How do you find the GCF with prime factorization?

To find the greatest common factor, factor each number into primes. Keep only the primes that appear in all of the numbers, and use the smallest exponent for each. Multiply those together.

Find the GCF of 84 and 360.

  • 84 = 2² × 3 × 7
  • 360 = 2³ × 3² × 5
  • Shared primes are 2 and 3. The smallest exponent of 2 is 2, and of 3 is 1.
  • GCF = 2² × 3 = 12

The prime 7 appears only in 84, and 5 only in 360, so neither is shared. Confirm with the GCF calculator, which prints the same factorizations step by step.

How do you find the LCM with prime factorization?

To find the least common multiple, take every prime that appears in any of the numbers. Use the largest exponent for each one. Multiply them together.

Using the same pair:

  • 84 = 2² × 3 × 7
  • 360 = 2³ × 3² × 5
  • The largest exponent of 2 is 3, of 3 is 2, of 5 is 1 and of 7 is 1.
  • LCM = 2³ × 3² × 5 × 7 = 2,520

Check it with a shortcut. The product of two numbers equals their GCF times their LCM. Here 84 × 360 = 30,240, and 12 × 2,520 = 30,240. The two sides match, so the answers are consistent. The LCM calculator uses this method and shows each step. For a wider look at both ideas, read GCF and LCM explained.

How many divisors does a number have?

The prime factorization tells you the count. Add 1 to each exponent and multiply the results. This works because each divisor picks a power of each prime, from zero up to the exponent.

For 360 = 2³ × 3² × 5¹:

  • (3 + 1) × (2 + 1) × (1 + 1) = 4 × 3 × 2 = 24

So 360 has 24 divisors. For 12 = 2² × 3¹, the count is (2 + 1) × (1 + 1) = 6, which matches the list 1, 2, 3, 4, 6 and 12.

A number with an odd count of divisors is always a perfect square. For example, 36 = 2² × 3² has (2 + 1) × (2 + 1) = 9 divisors.

What are common mistakes with prime factorization?

Most errors come from a few habits that are easy to fix.

  • Stopping too early. A factor like 9 or 15 still needs to be broken down. Check that every number on your list is prime.
  • Calling 1 a prime. It is not, so it never appears in a factorization.
  • Mixing up GCF and LCM rules. For the GCF, use shared primes with the smallest exponents. For the LCM, use all primes with the largest exponents.
  • Forgetting repeats. 72 is 2³ × 3², not 2 × 3. Count each repeated prime.
  • Skipping primes in order. Testing 2, 3, 5, 7 in order helps you avoid missing a factor.

Where is prime factorization used?

You use it any time you simplify fractions, add fractions with different denominators or work with ratios. Reducing 84⁄360 is easy once you know the GCF is 12: divide both parts by 12 to get 7⁄30.

It also shows up outside the classroom. Computer security relies on the fact that multiplying two large primes is quick, while splitting the product back into primes is very slow. Gear and scheduling problems use the LCM to find when two cycles line up again. Knowing the method helps you see why those tools work.

Practice problems

Try these on paper, then check them with the calculators.

  1. Write 140 as a product of primes. The answer is 2² × 5 × 7.
  2. Find the GCF of 48 and 180. The answer is 12.
  3. Find the LCM of 18 and 24. The answer is 72.
  4. How many divisors does 100 have? The answer is 9.

Work each one with a tree first, then use the division method to see whether you reach the same primes.

FAQ

Frequently asked questions

01Is 1 a prime number?

No. A prime has exactly two different positive divisors, itself and 1. The number 1 has only one divisor, so it is not prime. This rule is also what makes prime factorization unique. If 1 counted as prime, you could add any number of 1s to a factorization.

02What is the difference between a factor and a prime factor?

A factor is any number that divides evenly into another. The factors of 12 are 1, 2, 3, 4, 6 and 12. The prime factors are only the prime ones, which are 2 and 3. Prime factorization lists them with exponents, so 12 becomes 2² × 3.

03How do I know when to stop dividing?

Stop when the quotient is 1. You can also stop early once the remaining number is prime. To test that, check divisibility by primes up to its square root. If none divide it, the number is prime and goes in your list as it is.

04Can two different numbers have the same prime factorization?

No. This is the fundamental theorem of arithmetic. Every whole number greater than 1 has exactly one prime factorization, apart from the order of the factors. That uniqueness is why the method gives reliable answers for the GCF and the LCM.

05Is 0 prime or composite?

Neither. Primes and composites are defined only for whole numbers greater than 1. Zero is divisible by every positive number, and 1 has only one factor, so both sit outside the two groups.

06Why does prime factorization find the LCM?

A common multiple must contain every prime factor of each number, at least as many times as it appears there. Taking each prime at its highest power is exactly the smallest product that does this. For 12 = 2² × 3 and 18 = 2 × 3², the LCM is 2² × 3² = 36.