Skip to content
SoftwareSolutions.net
Calculators & Converters

Prime Factorization Calculator

Break a number into its prime factors.

Try it

Ready

Inputs

Result

The result appears here as you type.

About Prime Factorization Calculator

A prime factorization calculator breaks a whole number into the product of prime numbers. Writing 360 as 2 cubed times 3 squared times 5 shows its structure at a glance, and that structure is used to simplify fractions, find common multiples and understand how numbers divide. Prime factorization is one of the first skills in number theory and is still used in many calculations.

Enter a whole number and the calculator lists each prime factor with its power. The result is unique for every number greater than one, so two correct calculations will always give the same list, however they were carried out.

How to use Prime Factorization Calculator

  1. Enter a whole number greater than one.
  2. Read the list of prime factors and their powers in the result panel.
  3. Multiply the factors back together to check the product returns the original number.
  4. Use the factors to simplify a fraction or find a common denominator, if that is your goal.
  5. Use Reset to clear the entry and factor another number.

Finding the factors step by step

Start with the smallest prime, 2, and divide the number by it as many times as possible. Then move to 3, 5, 7 and so on, using only primes. Stop when the remaining number is one or itself a prime. For 360, dividing by 2 three times leaves 45. Dividing 45 by 3 twice leaves 5, which is prime. So 360 equals 2 cubed times 3 squared times 5. Multiplying back, 8 times 9 times 5 is 360.

The process always ends with primes because a composite number can be split until only primes remain. Trying small primes first is efficient because most numbers have small factors. Once you reach a prime that is larger than the square root of what remains, the remainder must be prime.

Factoring 1001 gives 7 times 11 times 13. This is a useful check, because many people guess that 1001 is prime, but it is composed of three primes. Working through the division shows the answer quickly, even when the factors are not obvious.

Using factorizations

A factorization lets you find the greatest common divisor and the least common multiple of two numbers. Take the lowest power of each shared prime for the greatest common divisor, and the highest power of every prime that appears for the least common multiple. This method is often quicker than the Euclidean algorithm for small numbers.

Factorizations simplify fractions. A fraction whose top and bottom share a prime factor can be cancelled by that prime. Writing both numbers as products makes the common factors visible, so 360 over 420 becomes 2 cubed times 3 squared times 5, over 2 squared times 3 times 5 times 7, which cancels to 6 over 7.

Divisor counts also come from factorizations. Add one to each power and multiply the results. For 360, the powers are 3, 2 and 1, so the number of divisors is 4 times 3 times 2, which is 24. Finding that count without listing every divisor is a practical use of prime factors.

Frequently asked questions

Is the factorization always the same?

Yes. Apart from the order of the factors, each whole number greater than one has exactly one prime factorization.

What about a prime number?

A prime's factorization is just itself, with power one. The calculator will show that the number has no smaller prime factors.

Why are my factors not all small?

Some numbers have large prime factors. A number like 2 times a large prime needs the big factor listed as well, and it is still correct.

Can the factorization help with the square root?

Yes. Pair up equal prime factors, and each pair contributes one copy of the prime to the square root. Factors left unpaired mean the number is not a perfect square.

Related tools

Tools that pair well with this one.