Prime Factorization Tool With Factor Tree
This is a free prime factorization tool for students and teachers. Enter any whole number to break it into prime factors, see a factor tree and the steps, and get the answer in exponent form. It works for small and large numbers.
Prime Factorization & Factor DB Tool
2^3 × 3^2 × 5
1, 2, 3...
This prime factorization tool breaks any whole number that is 2 or greater into a product of primes and also lists all of its factors. Enter a number and press the button to see the result right away. It is handy for students checking homework, or for splitting a number into primes before reducing fractions or finding common factors.
How to use the prime factorization tool
- Enter a whole number of 2 or greater in the "Target number (whole number)" field, such as 360.
- Press the "Decompose" button.
- See the result under "Prime Factorization". It is shown in exponent form, for example 2^3 × 3^2 × 5.
- See all factors from smallest to largest under "All Factors". The pie chart below shows how many times each prime factor appears.
Formula and method
Number of factors = (a + 1)(b + 1)(c + 1) …
The tool uses trial division: it tries dividing by 2, then 3, and so on. Each time a divisor goes in evenly, it records that prime factor and keeps dividing the quotient, until what is left is a prime. To list all factors, it only needs to check up to √n, because each factor d it finds also gives the pair n ÷ d. You can use the factor-count formula above to check that the list is complete.
Example
Take 360: 360 ÷ 2 = 180, 180 ÷ 2 = 90, 90 ÷ 2 = 45, 45 ÷ 3 = 15, 15 ÷ 3 = 5, and 5 is prime, so 360 = 2^3 × 3^2 × 5. The number of factors is (3+1)(2+1)(1+1) = 24: 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, 18, 20, 24, 30, 36, 40, 45, 60, 72, 90, 120, 180, 360.
Common questions
What is prime factorization?
Prime factorization writes a composite number as a product of primes. For example, 12 = 2 × 2 × 3 = 2^2 × 3. Every whole number greater than 1 has exactly one prime factorization, not counting the order of the factors.
What is the difference between factors and prime factors?
Factors are all the positive whole numbers that divide the number evenly. Prime factors are only the factors that are prime. For example, the factors of 12 are 1, 2, 3, 4, 6 and 12, but its prime factors are only 2 and 3.
Is 1 a prime number?
No. A prime has exactly two different factors: 1 and itself. The number 1 has only one factor, so it is neither prime nor composite. That is why this tool asks for a whole number of 2 or greater.
How can I tell whether a number is prime?
A number is prime if it has no factors other than 1 and itself. Enter it in this tool: if it is prime, the prime factorization shows only the number itself and the factor list has just two entries, such as 1, 97.
What is 60 in prime factors?
60 in prime factors is 2 squared times 3 times 5, or 2² × 3 × 5.
Related tools: Prime Factors & All Factors Finder, Prime Factorization Calculator, Greatest Common Factor Calculator.