Balanced factor tree
The tree splits each number into the two factors closest to its square root, so even large numbers give a neat, readable diagram.
Free online tool · Instant results
Type any whole number to see its prime factors in exponent form, a visual factor tree and the division ladder you would write by hand. This free prime factorization calculator also lists every factor and factor pair and tells you whether the number is prime.
360 = 23 × 32 × 5
2 × 2 × 2 × 3 × 3 × 5
Most calculators stop at the answer. This one also shows the working and the number facts teachers and puzzle fans actually ask about.
The tree splits each number into the two factors closest to its square root, so even large numbers give a neat, readable diagram.
See the repeated division method exactly as it is taught in class, dividing by the smallest prime each time until you reach 1.
Get the full sorted list of factors with the primes highlighted, plus every factor pair that multiplies to your number.
Know at a glance whether a number is prime or composite, along with the nearest primes on either side of it.
Number of factors, sum of factors, Euler's totient, perfect, abundant or deficient, and whether it is a perfect square or cube.
Factor any whole number up to 9,007,199,254,740,991 in your browser, usually in well under a second, with nothing uploaded.
Type any whole number from 1 upwards. Commas and spaces are ignored, so 1,000,000 works fine.
Results update as you type. The top card shows the exponent form and the expanded product.
Switch between the factor tree, division steps, all factors and factor pairs using the tabs.
Copy the result for your notes, or copy a link that opens the calculator with your number.
There are two classic methods. Both always lead to the same primes, because every whole number above 1 has exactly one prime factorization.
Write the number at the top and split it into any two factors. Keep splitting every composite branch until each one ends in a prime, then multiply the primes together.
360 → 18 × 20 → …Divide by the smallest prime that goes in evenly, starting with 2. Repeat with each answer, moving to 3, 5, 7 and so on, until you reach 1.
360 ÷ 2 = 180 … 5 ÷ 5 = 1Group repeated primes with powers. Three 2s become 23 and two 3s become 32, which is shorter and easier to compare.
2·2·2·3·3·5 = 23·32·5Add 1 to each exponent and multiply the results. This gives the total number of factors without listing them all.
(3+1)(2+1)(1+1) = 24Even numbers divide by 2. If the digit sum divides by 3, so does the number. Numbers ending in 0 or 5 divide by 5.
360: even, 3+6+0 = 9, ends in 0You only need to test primes up to the square root. If none divides the number, what is left is itself prime.
√97 ≈ 9.8, so 97 is primeA quick reference chart. Primes are shown in green; for anything bigger, use the calculator above.
Cancel shared primes from the top and bottom to reduce any fraction to its simplest form.
Compare factorizations: the GCF uses the lowest powers of shared primes, the LCM the highest powers of all primes.
Pull pairs of primes outside the root, for example √72 = √(23·32) = 6√2.
RSA security relies on the fact that multiplying two huge primes is easy, but factoring the result is extremely hard.
Compare each step of your factor tree or ladder with ours to spot exactly where a mistake crept in.
Coding challenges and puzzle books often ask for the largest prime factor or number of divisors, which you get here instantly.
Prime factorization means writing a whole number as a product of prime numbers, for example 360 = 2³ × 3² × 5. Every whole number greater than 1 has exactly one prime factorization, apart from the order of the factors. This is known as the fundamental theorem of arithmetic.
Divide the number by the smallest prime that goes in evenly, then repeat with the answer until you reach 1. The primes you divided by are the prime factors. A factor tree does the same job by splitting the number into any two factors until every branch ends in a prime.
No. A prime number has exactly two different factors, 1 and itself. The number 1 has only one factor, so it is neither prime nor composite and it has no prime factorization.
A factor tree is a diagram that splits a number into two factors, then splits each composite factor again until only primes are left at the ends of the branches. Different trees for the same number always finish with the same set of primes.
Add 1 to each exponent in the prime factorization and multiply the results. For example, 360 = 2³ × 3² × 5¹, so it has (3 + 1)(2 + 1)(1 + 1) = 24 factors.
It factors any whole number up to 9,007,199,254,740,991, which is 2⁵³ − 1 and the largest integer a browser can store exactly. Even near that limit, the result usually appears in well under a second.
Factors are all the whole numbers that divide a number exactly, while prime factors are only the primes among them. For example, 360 has 24 factors, but its prime factors are just 2, 3 and 5.
Add up all the factors of a number except the number itself. If the total equals the number, it is perfect, like 6 and 28. If the total is bigger, it is abundant, like 12. If it is smaller, it is deficient, which includes every prime number.
Use the prime factorization calculator for homework, puzzles or curiosity, and see the tree, the steps and every factor at once. For more maths help, explore our free online tools.
Factorize a number More maths tools