Use this free prime factorization calculator to break a whole number into its prime factors. Enter a number, and the calculator shows its prime factorization, the exponent form (such as 2² × 3 × 5), a factor tree, whether the number is prime, and extras like the number of divisors. Steps are included. No signup needed.
Commas, spaces and underscores are ignored. Up to 1,000,000,000,000,000.
Add one to also get the GCF and LCM from the prime factors.
Uses exact integer arithmetic. Primes are tested only up to the square root of what is left. 0 and 1 have no prime factorization. For decimals or fractions, factor the numerator and denominator separately. Not designed for cryptography. Try the problem by hand first and use the calculator to check your work.
You can use commas, spaces, or underscores to make a long number easier to read. The calculator removes them. For decimals, negative numbers, and fractions, see the notes below.
360.A prime number is a whole number greater than 1 that has exactly two factors: 1 and itself. Examples: 2, 3, 5, 7, 11, 13.
A composite number is a whole number greater than 1 that has more than two factors, such as 12 (1, 2, 3, 4, 6, 12).
The number 1 is neither prime nor composite. The number 2 is the only even prime.
2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97
There are 25 primes below 100, and 168 primes below 1,000.
Prime factorization writes a number as a product of prime numbers. The Fundamental Theorem of Arithmetic says that every whole number greater than 1 can be written as a product of primes in exactly one way (apart from the order of the factors).
For 60:
60 = 2 × 2 × 3 × 5 = 2² × 3 × 5
Different trees give the same prime factors.
You only need to test primes up to the square root of the number. If none of them divides the number, the number is prime.
36
/ \
6 6
/ \ / \
2 3 2 397 is not divisible by any prime up to √97 ≈ 9.8 (2, 3, 5, 7).
91 is not divisible by 2, 3, or 5, but 91 ÷ 7 = 13.
A number is a perfect square exactly when all the exponents in its prime factorization are even.
Fermat thought numbers of the form 2^(2ⁿ) + 1 were all prime, but Euler found that this one is not.
If n = p₁^a × p₂^b × p₃^c × …, then:
Number of divisors: (a + 1)(b + 1)(c + 1)…
Sum of divisors: the product of (1 + p + p² + … + p^a) for each prime
GCF of two numbers: multiply the lowest power of each shared prime
LCM of two numbers: multiply the highest power of every prime that appears
Perfect square: all exponents are even
Perfect cube: all exponents are multiples of 3
Square root, simplified: take out each prime in pairs
These help you find prime factors quickly.
| Divisible by | Rule |
|---|---|
| 2 | The last digit is even |
| 3 | The sum of the digits is divisible by 3 |
| 5 | The last digit is 0 or 5 |
| 7 | Double the last digit and subtract it from the rest. The result is divisible by 7 (or is 0). |
| 11 | The alternating sum of the digits is 0 or divisible by 11 |
Rules for 4, 6, 8, 9, and 10 follow from these (4 is 2 × 2, 6 is 2 × 3, 9 is 3 × 3, and so on).
Writing a number as a product of prime numbers. For example, 60 = 2² × 3 × 5.
Divide the number by the smallest prime that divides it, and repeat with the result until you reach 1. For 60: 60 ÷ 2 = 30, 30 ÷ 2 = 15, 15 ÷ 3 = 5, and 5 ÷ 5 = 1, so the prime factors are 2, 2, 3, and 5.
A diagram that splits a number into two factors, and keeps splitting until all the ends are prime.
2³ × 3² × 5.
Check if any prime up to its square root divides it. If none does, it is prime. 97 is prime, but 91 = 7 × 13 is not.
No. A prime has exactly two factors, and 1 has only one.
Yes. It is the only even prime.
Factor each number, and multiply the lowest power of each prime they share. For 84 = 2² × 3 × 7 and 90 = 2 × 3² × 5, the GCF is 2 × 3 = 6.
Multiply the highest power of every prime that appears in either number. For 84 and 90, the LCM is 2² × 3² × 5 × 7 = 1,260.
Add 1 to each exponent and multiply. For 360 = 2³ × 3² × 5, the number of divisors is 4 × 3 × 2 = 24.
Numbers up to the limit shown on the tool. Very large numbers can take a long time, since factoring is a hard problem.
Yes. It is free, with no registration and no limits on use (apart from the size limit shown on the tool).
It uses exact integer arithmetic, so the factorization is exact.
A few of the most-used tools in each hub.
This calculator is for general and educational use. Factorizations are exact for numbers within the size limit of this tool. It is not designed for cryptography or security work. Try the problem by hand first and use the calculator to check your work. Follow your teacher’s rules on the method and the form of the answer.