Prime factor calculator
Break a whole number into its prime factors.
Try it
Inputs
Result
The result appears here as you type.
About Prime factor calculator
A prime factor calculator breaks a whole number into the prime numbers that multiply together to make it. A prime number has no divisors other than one and itself, such as 2, 3, 5, 7 and 11. Enter a whole number greater than one, and the calculator returns its prime factorisation, such as 360 = 2³ × 3² × 5. Prime factorisation is used in fraction work, cryptography basics and number theory.
Every whole number greater than one has exactly one prime factorisation, apart from the order of the factors. The calculator tests divisors from the smallest prime upward until nothing remains.
How to use Prime factor calculator
- Enter a whole number greater than one.
- Read the prime factorisation, with repeated primes shown as powers.
- Check the count of prime factors if you need it.
- Use the factors to find the greatest common divisor or least common multiple.
- Use the result to simplify fractions with large numbers.
How the factors are found
Start with the smallest prime, 2, and divide the number by it as many times as possible. Then move to the next prime and repeat, stopping when the square of the next prime exceeds what remains. Any value left over is a prime itself.
For 360, dividing by 2 three times leaves 45, then dividing by 3 twice leaves 5, which is prime. So 360 is 2³ × 3² × 5.
Why it matters
Prime factors make it easy to find common divisors and multiples of several numbers. They also explain why some fractions cannot be simplified further, since their numerator and denominator share no prime factor.
Very large numbers with two prime factors of similar size are hard to factor, which is the basis of many encryption systems.
Frequently asked questions
Is 1 a prime number?
No. The prime numbers start at 2, and 1 is excluded because it has only one divisor.
Can a prime number be factored?
No. A prime's only factors are 1 and itself, so its factorisation is just itself.
How large a number can I enter?
The calculator works well for numbers up to a very large size, but very large numbers take longer.
Related tools
Tools that pair well with this one.