About the Prime Factorization Calculator
Prime factorization breaks a number into the primes that multiply to make it, the key step for simplifying fractions and finding common factors and multiples. This calculator writes the result in exponent form, so 360 = 2³ × 3² × 5, shows the division steps like a factor tree and uses the exponents to count and list all divisors, 24 in the case of 360.
The calculator divides by the smallest prime that goes in evenly, repeats with the quotient, and continues until the quotient is 1, which is the ladder or factor-tree method taught in school. Large numbers switch to Pollard's rho algorithm and a deterministic primality test, all in exact BigInt arithmetic. If n = p₁^a × p₂^b × …, the number of divisors is (a + 1)(b + 1)…, and every divisor is a product of the primes with smaller or equal exponents.
Example: 360 ÷ 2 = 180, ÷ 2 = 90, ÷ 2 = 45, ÷ 3 = 15, ÷ 3 = 5, ÷ 5 = 1, so 360 = 2³ × 3² × 5. It has (3 + 1)(2 + 1)(1 + 1) = 24 divisors, from 1, 2, 3, 4, 5, 6 up to 180 and 360, and their sum is 1,170. A prime such as 97 has exactly two divisors.
Prime factors make many other problems easy. Use them to find the greatest common factor and least common multiple, to simplify radicals with the square root calculator, and to check primes with the prime number checker.
How to use the Prime Factorization Calculator
- Enter a whole numberType any whole number greater than 1, as large as you like.
- Read the factorizationSee the prime factors in exponent form and as a plain product.
- Follow the stepsSee each division of the factor tree or ladder.
- Explore the divisorsSee the number of divisors, their sum and the full list.
Prime Factorization Calculator features
- Prime factorization in exponent form
- Step-by-step division ladder
- Number of divisors from the exponents
- Full list of divisors and their sum
- Handles very large numbers with Pollard's rho
- Exact BigInt arithmetic
- Copy results with one click
Common uses
- Factor-tree homework and exam practice
- Finding GCF and LCM by prime factors
- Simplifying fractions and radicals
- Counting divisors in number theory puzzles
- Checking whether a number is a perfect square or cube
Prime factorisation in practice: divisors, fractions, roots and common multiples
Every whole number above 1 can be written as a product of prime numbers in exactly one way, apart from the order. That fact, the fundamental theorem of arithmetic, turns prime factorisation into a practical tool. With a number's prime factors you can count its divisors, simplify fractions and square roots, and find greatest common factors and least common multiples quickly. This guide shows how, with worked examples.
Factor trees
A factor tree breaks a number into factors step by step until only primes remain. For 360, split it into 36 × 10, then 36 into 6 × 6 and 10 into 2 × 5, and each 6 into 2 × 3. Collecting the primes gives 2 × 2 × 2 × 3 × 3 × 5, written in exponent form as 2³ × 3² × 5. Any starting split gives the same final set of primes, which is exactly what the fundamental theorem guarantees.
Counting divisors
The exponents in a prime factorisation tell you how many divisors a number has. Add 1 to each exponent and multiply: for 360 = 2³ × 3² × 5¹, that is (3 + 1) × (2 + 1) × (1 + 1) = 24 divisors. This explains why 360 was chosen for the degrees in a circle by ancient astronomers: it has many divisors, so a circle divides evenly into many equal parts.
Simplifying fractions
To simplify a fraction, factorise the numerator and denominator and cancel common primes. For 84/126, 84 = 2² × 3 × 7 and 126 = 2 × 3² × 7. Cancelling 2, 3 and 7 leaves 2/3. This method shows exactly why the fraction simplifies and works even when the common factor is not obvious.
Greatest common factor and least common multiple
With two numbers factorised, the greatest common factor uses each shared prime with its smaller exponent, and the least common multiple uses every prime with its larger exponent. For 12 = 2² × 3 and 18 = 2 × 3², the greatest common factor is 2 × 3 = 6, and the least common multiple is 2² × 3² = 36. Prime factorisation makes these calculations transparent, especially for three or more numbers.
A worked example: scheduling
Two buses leave a station together, one every 12 minutes and the other every 18 minutes. They next leave together after the least common multiple of 12 and 18 minutes, which is 36 minutes. If a third route runs every 30 minutes, 30 = 2 × 3 × 5, and the least common multiple of all three is 2² × 3² × 5 = 180 minutes, so all three depart together every three hours.
Timetable planners, gear designers and anyone dealing with repeating cycles use exactly this reasoning.
Simplifying square roots
A number is a perfect square when every exponent in its factorisation is even. To simplify a square root, pair up the primes. For √72, 72 = 2³ × 3², which contains the pairs 2² and 3², leaving one 2 unpaired, so √72 = 2 × 3 × √2 = 6√2. Cube roots work the same way with groups of three.
Primes in nature
Some periodical cicadas in North America emerge from the ground only every 13 or 17 years, both prime numbers. One explanation scientists have proposed is that prime-numbered cycles rarely coincide with the shorter cycles of predators, since a prime shares no factors with smaller numbers. Whether or not that is the full story, it is a striking example of primes appearing in the natural world.
Large numbers and security
Factorising small numbers is quick, but factorising very large numbers made from two large primes is extraordinarily slow, even for powerful computers. Encryption systems such as RSA depend on that difficulty. The same mathematics that simplifies a school fraction protects online payments.
Common mistakes
- Stopping a factor tree before every branch ends in a prime.
- Forgetting repeated primes when writing exponent form.
- Using the larger exponents for the greatest common factor.
- Counting divisors by listing them and missing some.
Related tools
To test a single number, use Prime Number Checker. For common factors and multiples, try GCF Calculator and LCM Calculator.
The ladder method
A tidy alternative to a factor tree is the ladder method: divide the number repeatedly by the smallest prime that goes into it, writing each quotient below. For 360, divide by 2 to get 180, by 2 to get 90, by 2 to get 45, by 3 to get 15, by 3 to get 5, and by 5 to get 1. The primes on the left, 2, 2, 2, 3, 3 and 5, form the factorisation. The method is systematic, so it is easy to check and hard to get wrong.
Perfect numbers
A perfect number equals the sum of its divisors other than itself: 6 = 1 + 2 + 3, and 28 = 1 + 2 + 4 + 7 + 14. Euclid showed, and Euler later completed the proof, that every even perfect number has the form 2ᵖ⁻¹ × (2ᵖ − 1), where 2ᵖ − 1 is a Mersenne prime. So 6 = 2 × 3, 28 = 4 × 7 and 496 = 16 × 31. Prime factorisation reveals this hidden structure at once.
Limits
Factorisation is exact; very large numbers with large prime factors may take noticeably longer to factorise.
Frequently asked questions
What is prime factorization?
Writing a number as a product of primes. 84 = 2 × 2 × 3 × 7 = 2² × 3 × 7. The fundamental theorem of arithmetic says this product is unique apart from order.
How do I find prime factors with a factor tree?
Split the number into any two factors, then keep splitting each branch until every leaf is prime. The primes at the ends of the branches are the prime factorization.
How do I count the divisors of a number?
Add 1 to each exponent in the prime factorization and multiply. 360 = 2³ × 3² × 5¹ has (3 + 1)(2 + 1)(1 + 1) = 24 divisors. This works because each divisor chooses an exponent for every prime.
What is the prime factorization of 100?
100 = 2² × 5², so it has (2 + 1)(2 + 1) = 9 divisors: 1, 2, 4, 5, 10, 20, 25, 50 and 100. Their sum is 217, and since every exponent is even, 100 is a perfect square.
Is 1 a prime factor?
No. 1 is not prime, so it never appears in a prime factorization. The factorization of 1 itself is the empty product. Including 1 would also spoil uniqueness, since 6 = 2 × 3 = 1 × 2 × 3.
How does prime factorization help find the GCF?
Write both numbers as prime factors and multiply the primes they share, each to the lower power. For 360 = 2³ × 3² × 5 and 84 = 2² × 3 × 7, the GCF is 2² × 3 = 12.
Why is factoring large numbers hard?
No known fast method exists for very large numbers made of two big primes. That difficulty is what keeps RSA encryption secure, and why this calculator can take longer on huge inputs.
How do I find the prime factors of a large number?
Divide by 2 as often as possible, then by 3, 5, 7 and the following primes, stopping when the prime squared exceeds what is left; any remainder above 1 is itself prime. This calculator does the same, then switches to faster methods for very large numbers.