About the Prime Factorization Calculator tool
Prime factorization writes a whole number as a product of prime numbers, such as 360 = 2³ × 3² × 5. Every integer greater than 1 has exactly one such factorization, which is why it underpins so much of number theory and school maths: simplifying fractions and square roots, finding the greatest common factor and least common multiple, counting divisors and understanding why some numbers are prime.
This calculator factors a whole number of up to 60 digits and shows the result in exponent form and expanded form. For learning it draws a factor tree, splitting off the smallest prime at each branch, and lists the division ladder (360 ÷ 2 = 180, 180 ÷ 2 = 90, …) that you would write in class. From the factorization it also derives the number of divisors, their sum and, when there are no more than 300, the full list of divisors.
Small factors are found by trial division using primes below 50,000. Larger cofactors are tested with the Miller–Rabin primality test and split with Pollard's rho algorithm, which can factor numbers like 2⁶⁷ − 1 = 193,707,721 × 761,838,257,287 in a fraction of a second. If a very large number has two huge prime factors that cannot be separated within a few seconds, the tool says so honestly rather than guessing.
How to use Prime Factorization Calculator
- Type a whole number greater than 1 into “Whole number”, or tap one of the example chips.
- Read the prime factorization in exponent form in the result card.
- Check the expanded form, number of divisors, sum of divisors and the divisor list.
- Scroll down to the factor tree to see how the number splits.
- Open “Show division ladder” for the repeated-division working.
Features
Factor tree and division ladder
Both classroom methods are shown for the same number.
Exponent and expanded forms
For example 2³ × 3² × 5 and 2 × 2 × 2 × 3 × 3 × 5.
Divisor facts
Number of divisors, sum of divisors and the full divisor list for smaller numbers.
Handles big numbers
Up to 60 digits using Miller–Rabin testing and Pollard's rho factoring.
Honest limits
If a hard composite cannot be split within the time limit, it is clearly reported as unfactored.
When to use it
- Check prime factorization homework with a factor tree.
- Find the prime factors needed to calculate a GCF or LCM by hand.
- Simplify a square root such as √72 = 6√2 using the factor pairs.
- Count how many divisors a number has for a number theory puzzle.
- Test whether a large number is prime.
Frequently asked questions
What is prime factorization?
Writing a number as a product of primes. 84 = 2 × 2 × 3 × 7 = 2² × 3 × 7. By the fundamental theorem of arithmetic, this product is unique apart from the order of the factors.
How do you make a factor tree?
Split the number into two factors, then keep splitting any factor that is not prime until every branch ends in a prime. This tool always splits off the smallest prime first, but any valid tree gives the same primes.
Is 1 a prime number?
No. A prime has exactly two divisors, 1 and itself; 1 has only one divisor, so it is neither prime nor composite and has no prime factorization.
How do I find the number of divisors from the prime factorization?
Add 1 to each exponent and multiply. For 360 = 2³ × 3² × 5¹ that is (3 + 1)(2 + 1)(1 + 1) = 24 divisors.
How large a number can this factor?
Up to 60 digits. Numbers whose factors are all below about 20 digits are usually factored quickly; a product of two very large primes may be too hard to split in the browser's time limit.