How to Find the Prime Factorization of a Number

⏱️ 6 min readUpdated September 24, 2026

To find the prime factorization of a number, divide it by the smallest prime that fits, then divide the result again, and keep going until you reach 1. The primes you divided by are the answer. For 360 that's 2³ × 3² × 5. Below you'll find the step-by-step method, divisibility shortcuts, a table of common factorizations, and how the same factors give you the GCF and LCM.

What is prime factorization?

A prime number has exactly two divisors: 1 and itself. The first few are 2, 3, 5, 7, 11, 13, 17, 19, 23 and 29, and there are 25 of them below 100. Every whole number above 1 that isn't prime is composite, which means it can be broken into smaller primes multiplied together. That breakdown is its prime factorization.

There's only ever one answer. Split 60 as 6 × 10 or 4 × 15 and keep breaking the pieces down, and you land on 2 × 2 × 3 × 5 either way. That's the fundamental theorem of arithmetic, and it means any method you like will work, including the factor trees most schools teach first.

How do you find the prime factors of a number?

The most reliable way by hand is repeated division. Start with the smallest prime, 2, and divide as many times as it goes in evenly. Then move to 3, then 5, then 7, and keep going until what's left is 1.

Here's 360 worked through:

  1. 360 ÷ 2 = 180
  2. 180 ÷ 2 = 90
  3. 90 ÷ 2 = 45 (45 is odd, so 2 is finished)
  4. 45 ÷ 3 = 15
  5. 15 ÷ 3 = 5
  6. 5 is prime, so you're done

Collect the divisors: 2 × 2 × 2 × 3 × 3 × 5, or 2³ × 3² × 5 in exponent form. Multiply them back together and you should get 360.

There's a shortcut that saves a lot of time on bigger numbers. You only need to test primes up to the square root of whatever's left. Take 221. Its square root is about 14.9, so you only try 2, 3, 5, 7, 11 and 13. Thirteen works (221 = 13 × 17), and if nothing up to 13 had worked, you'd know 221 was prime without testing anything else.

Which divisibility rules speed things up?

You don't have to do long division to find out whether a small prime fits. These quick checks cover the primes you'll test most:

DivisorRuleExample
2Last digit is even (0, 2, 4, 6, 8)3,584 is divisible by 2
3Digits add up to a multiple of 3471: 4 + 7 + 1 = 12, so yes
5Last digit is 0 or 51,235 is divisible by 5
7Double the last digit, subtract it from the rest; result divisible by 7343: 34 − 6 = 28, so yes
11Alternating sum of digits is a multiple of 11 (including 0)1,331: 1 − 3 + 3 − 1 = 0, so yes
13Add 4 × the last digit to the rest; result divisible by 13221: 22 + 4 = 26, so yes
Ad

What do common numbers factor into?

Here are prime factorizations for numbers that show up constantly in fractions, measurements and time. The last column counts every divisor, not just the primes. You can get that count straight from the exponents: add 1 to each exponent and multiply. For 360 = 2³ × 3² × 5¹, that's 4 × 3 × 2 = 24 divisors.

NumberPrime factorizationNumber of divisors
242³ × 38
362² × 3²9
482⁴ × 310
602² × 3 × 512
722³ × 3²12
842² × 3 × 712
902 × 3² × 512
1002² × 5²9
1202³ × 3 × 516
1442⁴ × 3²15
1802² × 3² × 518
3602³ × 3² × 524
1,0017 × 11 × 138
1,0242¹⁰11

Notice how many divisors 60 and 360 have for their size. That's a big reason we still use 60 minutes in an hour and 360 degrees in a circle: both split evenly into halves, thirds, quarters, fifths and sixths. Perfect squares like 36 and 100 are the only numbers with an odd divisor count.

How do you use prime factors to find the GCF and LCM?

This is where factoring pays off. Once you've written two numbers as primes, the greatest common factor (GCF, also called GCD) and the least common multiple (LCM) fall out almost for free:

Take 48 and 180. 48 = 2⁴ × 3 and 180 = 2² × 3² × 5. They share 2 and 3, so the GCF is 2² × 3 = 12. The LCM uses 2⁴, 3² and 5, which gives 720. A quick check: GCF × LCM always equals the two numbers multiplied together, and 12 × 720 = 8,640 = 48 × 180.

PairFactorizationsGCFLCM
12 and 182² × 3 and 2 × 3²636
24 and 362³ × 3 and 2² × 3²1272
60 and 722² × 3 × 5 and 2³ × 3²12360
84 and 1262² × 3 × 7 and 2 × 3² × 742252
48 and 1802⁴ × 3 and 2² × 3² × 512720
15 and 283 × 5 and 2² × 71420

When the GCF is 1, as with 15 and 28, the numbers are called coprime. They share no primes at all, so the LCM is just their product.

Where does factoring actually get used?

The everyday answer is fractions. To reduce 84/126, factor both parts, find the GCF (42), and divide through to get 2/3. To add 7/12 and 5/18 you need a common denominator, and the LCM of 12 and 18 (36) is the smallest one that works. The fraction calculator does both steps for you, but knowing where the numbers come from helps you spot a wrong answer.

Ratios work the same way. A ratio of 48:180 simplifies to 4:15 once you divide both sides by 12, and the ratio calculator handles that reduction automatically.

Factor any number instantly

Enter a whole number and get its prime factorization, every divisor, and whether it's prime.

Factoring Calculator →

The bottom line

Divide by 2 until you can't, then 3, then 5, and keep climbing through the primes until you reach 1. Only test up to the square root of what's left. Write the result with exponents, and you've got everything you need for GCFs, LCMs, reducing fractions and counting divisors.

Frequently Asked Questions

How do you find the prime factorization of a number?

Divide the number by the smallest prime that goes in evenly, starting with 2, and repeat with the result. Move up to 3, 5, 7 and so on until you reach 1. The primes you divided by are the prime factorization. For 360, that's 2 × 2 × 2 × 3 × 3 × 5, or 2³ × 3² × 5.

What is the prime factorization of 72?

72 = 2 × 2 × 2 × 3 × 3, written as 2³ × 3². It has 12 divisors in total.

Is 1 a prime number?

No. A prime has exactly two different divisors, and 1 has only one. Leaving 1 out is also what keeps every number's prime factorization unique.

How do you find the GCF using prime factorization?

Factor both numbers, then multiply the primes they share, using the smaller exponent for each. For 48 = 2⁴ × 3 and 180 = 2² × 3² × 5, the GCF is 2² × 3 = 12.

How do you know when to stop testing primes?

Stop once the prime you're testing is bigger than the square root of the number that's left. If nothing up to that point divides evenly, the remaining number is prime and it's the last factor.

Related Tools