Free Algebra Solver
Prime factorization

Prime Factorization Calculator

Enter a whole number. You get its prime factors, exponent form, the number of factors, and the full list of factor pairs.

Interpreted as: 360 (Prime factors) Ready
Examples
Solution

Worked example: 360

Worked example. Edit the problem above and press Prime factors to solve your own.

Problem360
  1. Divide by primes until you reach 1

    Start with 2, then 3, 5, 7, and so on. Keep dividing by a prime while it goes in evenly.

    360 ÷ 2 = 180
    Divide by the smallest prime that fits
    180 ÷ 2 = 90
    Divide by the smallest prime that fits
    90 ÷ 2 = 45
    Divide by the smallest prime that fits
    45 ÷ 3 = 15
    Divide by the smallest prime that fits
    15 ÷ 3 = 5
    Divide by the smallest prime that fits
    5 ÷ 5 = 1
    Done: the quotient is 1

    Only primes are used, so every divisor in the ladder is a prime factor.

  2. Write the result with exponents

    Group repeated primes and write the count as an exponent.

    2 × 2 × 2 × 3 × 3 × 5
    Every prime factor
    2^3 × 3^2 × 5
    Exponent form

    By the fundamental theorem of arithmetic this factorization is unique.

  3. List every factor of 360

    The exponents tell you how many factors the number has, and each factor is a product of some of these primes.

    Number of factors = (3 + 1) × (2 + 1) × (1 + 1) = 24
    Add 1 to each exponent and multiply
    1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, 18, 20, 24, 30, 36, 40, 45, 60, 72, 90, 120, 180, 360
    All factors of 360
    1 × 360, 2 × 180, 3 × 120, 4 × 90, 5 × 72, 6 × 60, 8 × 45, 9 × 40, 10 × 36, 12 × 30, 15 × 24, 18 × 20
    Factor pairs

    Each factor uses each prime between zero times and its full exponent.

  4. Check by multiplying

    Multiply the prime factors back together.

    2 × 2 × 2 × 3 × 3 × 5 = 360
    Product of the primes

    Getting the original number confirms the factorization.

Answer360 = 2^3 × 3^2 × 5

Prime factorization

How the prime factorization calculator breaks a number into primes

This prime factorization calculator writes any whole number of 2 or more as a product of primes. It also lists every factor of the number and its factor pairs.

What is prime factorization?

Prime factorization means writing a whole number as a product of prime numbers. Every whole number above 1 has exactly one prime factorization, apart from the order of the factors. For example, 360 = 2³ × 3² × 5, which the calculator writes as 2^3 × 3^2 × 5.

How do you find the prime factorization of a number?

Divide the number by the smallest prime that goes in evenly, and keep dividing the quotient until you reach 1. The primes you divided by are the prime factors.

This is called the division ladder, and it's the method the calculator shows. Here it is for 360.

Divide by 2
360 ÷ 2 = 180
Divide by 2
180 ÷ 2 = 90
Divide by 2
90 ÷ 2 = 45
Divide by 3
45 ÷ 3 = 15
Divide by 3
15 ÷ 3 = 5
Divide by 5
5 ÷ 5 = 1
Result
360 = 2 × 2 × 2 × 3 × 3 × 5 = 2³ × 3² × 5

Once 2 stops dividing evenly, move up to 3, then 5, then 7. You never need to try 4 or 6, because any factor of 4 was already removed as a 2.

How do you make a factor tree?

Split the number into any two factors, then keep splitting each branch until every branch ends in a prime. The primes at the ends of the branches are the prime factorization.

For 360 you might start with 36 × 10. Then 36 splits into 6 × 6, and each 6 splits into 2 × 3. The 10 splits into 2 × 5. Reading the ends gives 2, 3, 2, 3, 2, 5, which sorts to 2³ × 3² × 5.

A different first split, like 360 = 8 × 45, leads to the same primes. That's the point of the uniqueness rule: the tree can look different, but the factorization can't.

How do you count the factors of a number?

Add 1 to each exponent in the prime factorization and multiply the results. That gives the total number of factors of a number, including 1 and the number itself.

For 360 = 2³ × 3² × 5¹, the count is (3 + 1) × (2 + 1) × (1 + 1) = 4 × 3 × 2 = 24. The extra 1 is there because each factor can use a prime zero times.

NumberPrime factorizationNumber of factors
362² × 3²3 × 3 = 9
602² × 3 × 53 × 2 × 2 = 12
1002² × 5²3 × 3 = 9
3602³ × 3² × 54 × 3 × 2 = 24

The calculator lists all 24 factors of 360, from 1, 2, 3, 4, 5 and 6 up to 120, 180 and 360. It also shows the 12 factor pairs, such as 15 × 24 and 18 × 20.

A number has an odd count of factors only when it's a perfect square. You can see it in the table: 36 and 100 have 9 factors each, because one factor (6 or 10) pairs with itself.

How can you tell if a number is prime?

Test whether any prime up to the square root of the number divides it. If none does, the number is prime.

You can stop at the square root because factors come in pairs, and one member of each pair is always at most √n. For 97, √97 is a little under 10, so you only test 2, 3, 5 and 7. None of them divides 97, so 97 is prime, and the calculator reports it that way.

What is the prime factorization of 1001?

The prime factorization of 1001 is 7 × 11 × 13. It's a good example of a number that looks prime but isn't.

Testing 2, 3 and 5 fails: 1001 is odd, its digits add to 2, and it doesn't end in 0 or 5. The next prime, 7, works: 1001 ÷ 7 = 143. Then 143 ÷ 11 = 13, and 13 is prime. A related example is 91 = 7 × 13, another number that often gets mistaken for a prime.

What mistakes do people make with prime factorization?

Stopping at a composite number is the most common one. Writing 360 = 2 × 2 × 2 × 45 isn't finished, because 45 is still 3² × 5.

Including 1 as a prime factor is another. The number 1 isn't prime, so it never appears in a prime factorization, and the calculator asks for a number of 2 or more.

Some students also drop a repeated prime. If you write 360 = 2 × 3 × 5, you've listed the distinct primes, but the product is only 30. Multiply your answer back out to catch this.

What is prime factorization used for?

Prime factors are the shortcut behind the GCF, the LCM and simplifying radicals. Once you know the primes, each of those becomes a quick lookup.

For the GCF you take the lowest shared powers, for the LCM the highest powers, and for a square root you pull out pairs. That's why the GCF, LCM and radical calculators on this site all start with a prime factorization step.

Which divisibility rules speed up prime factorization?

A few quick rules tell you whether 2, 3 or 5 divides a number before you do any long division. They cover most of the work in a typical homework problem.

PrimeRuleExample
2The last digit is even360 ends in 0
3The digits add to a multiple of 3504: 5 + 0 + 4 = 9
5The last digit is 0 or 545 ends in 5
7No quick rule, so divide and check1001 ÷ 7 = 143

Using these on 504: it's even, so divide by 2 three times to reach 63. The digits of 63 add to 9, so divide by 3 twice to reach 7, which is prime. That gives 504 = 2³ × 3² × 7.

How do you use the prime factor calculator?

Enter one whole number of 2 or more, such as 360, and press solve. You'll get the division ladder, the answer in exponent form and the full list of factors.

Exponents appear with a caret, so 2³ × 3² × 5 shows up as 2^3 × 3^2 × 5. If you enter a prime such as 97, the calculator says the number is prime instead of returning a product. The last step multiplies the primes back together, so you can see the factorization gives the original number.

Frequently asked questions

Short answers to the questions people ask most about this topic.

What is the prime factorization of 360?

The prime factorization of 360 is 2³ × 3² × 5, or 2 × 2 × 2 × 3 × 3 × 5. Multiplying it back gives 8 × 9 × 5 = 360.

How many factors does 360 have?

360 has 24 factors. Its exponents are 3, 2 and 1, and (3 + 1) × (2 + 1) × (1 + 1) = 24.

Is 97 a prime number?

Yes. The primes up to √97 are 2, 3, 5 and 7, and none of them divides 97 evenly, so 97 is prime.

What is the prime factorization of 100?

The prime factorization of 100 is 2² × 5². Since both exponents are even, 100 is a perfect square, and √100 = 2 × 5 = 10.

Is 1 a prime number?

No. A prime has exactly two different factors, 1 and itself, and 1 has only one factor. That's why the prime factor calculator starts at 2.

Does a factor tree always give the same answer?

Yes. You can split the number in different ways, but every whole number above 1 has only one set of prime factors. Different trees for 360 always end with three 2s, two 3s and one 5.

What is the difference between factors and prime factors?

The factors of a number are every whole number that divides it, such as all 24 factors of 360. The prime factors are only the primes in its factorization, which for 360 are 2, 3 and 5.

Math keypad

Prime factors mode

Use the keypad below or tap the expression to use your phone keyboard.

Keyboard tips

Ctrl + Enter
Run the selected operation
^
Enter a power, such as x^2
sqrt(
Calculate an exact or simplified square root
a:b
Separate quantities in a ratio
12, 18
Separate integers in an LCM and GCD calculation
@ x =
Assign x when evaluating an expression
y =
Enter a polynomial function to graph
|
Wrap an absolute-value expression