Back to How to Solve

How to Solve Prime Factorization

Prime factorization means rewriting a number as a product of prime numbers. It shows up in simplifying fractions, finding the LCM/GCF, working with radicals, and understanding divisibility. The good news: the process is always the same—break the number into factors until everything is prime, then rewrite repeated primes using exponents.

🔢 Arithmetic⏱️ ~16 min read🟢 Beginner

Want the factorization (and checks) instantly?

Try our ai math solver to prime-factor numbers, rewrite in exponent form, and verify the result.

Solve Now →

What Counts as a Prime Factorization?

A prime number has exactly two positive divisors: 1 and itself (2, 3, 5, 7, 11, 13, ...). A prime factorizationof a whole number is a multiplication expression where every factor is prime.

Example: 60 = 2·2·3·5 = 2^2·3·5.
Not a prime factorization: 60 = 6·10 (because 6 and 10 are not prime).

One important fact: for numbers greater than 1, the prime factorization is unique (aside from reordering). That’s why prime factorization is so useful for comparing numbers.

Method 1: Factor Tree (Visual and Beginner-Friendly)

A factor tree is a way to keep splitting a number into two factors until every branch ends in primes. It doesn’t matter which factors you choose first—as long as you keep factoring composite numbers, you’ll end up with the same prime list.

Example: Prime factorize 84.

84 = 12·7
12 = 3·4
4 = 2·2
So 84 = 2·2·3·7 = 2^2·3·7

Notice the stop rule: you stop only when every factor is prime. If you still have 4, 6, 8, 9, 10, 12, etc., you are not done.

Method 2: Repeated Division (Fast and Organized)

The division method means you repeatedly divide by prime numbers, starting with 2, then 3, then 5, and so on. This is especially nice for bigger numbers because it stays neat and reduces the number quickly.

Example: Prime factorize 360.

360 ÷ 2 = 180
180 ÷ 2 = 90
90 ÷ 2 = 45
45 ÷ 3 = 15
15 ÷ 3 = 5
5 ÷ 5 = 1
360 = 2^3 · 3^2 · 5

This method also makes it easy to count exponents: you used 2 three times, 3 twice, and 5 once.

How to Know When to Stop

You are finished when the remaining number is 1 (in the division method) or when every factor in your multiplication is prime (in the factor tree method). If you ever see a composite number still sitting in your final product, you need one more split.

  • Stop rule: only primes can remain (2, 3, 5, 7, 11, ...).
  • Quick check: multiply primes back together to get the original number.
  • Sanity check: if the original number is even, your factorization must include a 2.

A Quick Divisibility Toolkit (So You Can Find Factors Fast)

Prime factorization is easier when you can quickly spot a small prime factor. You don’t need every divisibility rule—just a few reliable ones for the smallest primes.

  • 2: last digit is even (0, 2, 4, 6, 8).
  • 3: sum of digits is divisible by 3.
  • 5: last digit is 0 or 5.
  • 9: sum of digits is divisible by 9.
  • 10: last digit is 0.

Practical strategy: always try dividing by 2 first, then 3, then 5. If none work, try 7, 11, 13 next (especially for medium-sized numbers).

Worked Example 3: Prime Factorization of a “Tricky” Number

Example: Prime factorize 462.

The digit sum is 4 + 6 + 2 = 12, so 462 is divisible by 3.

462 ÷ 3 = 154
154 ÷ 2 = 77
77 = 7·11
462 = 2·3·7·11

Multiply-back check: 2·3·7·11 = 6·77 = 462. This kind of “mix of primes” is common in GCF/LCM problems.

Why Prime Factorization Helps (GCF, LCM, Simplifying)

Prime factors are like a “DNA code” for a number. Once two numbers are written in prime form, you can compare them by matching primes and exponents.

Example: Find the GCF of 84 and 360.

84 = 2^2 · 3 · 7
360 = 2^3 · 3^2 · 5
GCF = 2^2 · 3 = 12

Take only primes that appear in both, using the smaller exponent. The same idea works for LCM, but you use the larger exponent.

LCM Example (Using Prime Exponents)

Example: Find the LCM of 84 and 360.

84 = 2^2 · 3 · 7
360 = 2^3 · 3^2 · 5
LCM = 2^3 · 3^2 · 5 · 7

For the LCM, you include every prime that appears in either number, using the larger exponent. This is the same logic as “take enough prime factors so that both original numbers divide it.”

A Simple Checklist (Works for Almost Any Number)

If you get stuck, fall back on this routine. It keeps you from guessing random factors and helps you finish cleanly.

  1. Try dividing by 2, then 3, then 5 (the most common small prime factors).
  2. Keep dividing by the same prime while it still works (that’s how exponents build up).
  3. When it no longer divides, move to the next prime (7, 11, 13, ...).
  4. If the remaining number is prime, stop. A useful fact: if no prime ≤ sqrt(n) divides n, then n is prime.
  5. Rewrite repeated primes using exponents and multiply back once to verify.

Common Mistakes

Stopping too early

Writing 60 = 6·10 is not prime factorization. Keep going until every factor is prime.

Forgetting exponent form

72 = 2·2·2·3·3 is correct, but 72 = 2^3·3^2 is cleaner and easier to compare.

Missing a factor of 1

A prime factorization never includes 1. Using 1 just hides the real factors.

Not checking by multiplication

A quick multiply-back check catches missed primes or wrong exponents.

If you want a clear explanation of primes and factorization with worked examples, the short section in OpenStax Prime Factorization is a good reference.

Practice Problems

  1. Prime factorize 96.
  2. Prime factorize 210.
  3. Write 540 in prime factorization using exponents.
  4. Use prime factors to find the GCF of 48 and 180.

Want Prime Factors Checked?

Paste your number and get prime factors plus a multiply-back verification.

Try AI Math Solver →
How to Solve Prime Factorization | Factor Trees + Division Method (Step-by-Step)