Prime Factorization Calculator
Find the prime factors for a number, including large numbers, by entering the number below. The calculator will also indicate if the number is a prime number or not.
132 = 22 × 31 × 111
On this page:
How To Find Prime Factors
The prime factors of a number are a set of prime numbers that, when multiplied together, equal the number.
A prime number is a number that is only divisible by itself and 1.
Prime factorization of a number is the act of finding all of the prime factors of a number. This process is also known as Prime Decomposition.
There is no mathematical formula for finding all the prime factors of any number. In fact, mathematicians wonder if there is a largest prime number and are using computer algorithms to try and find it if it exists, but so far, one has not been found.
Trial Division Method
One method of prime factorization is called the trial division method. To use this method to find all the prime factors of a number, say x, for example, start by dividing x by any prime number.
If the resulting value is not a whole number, then that prime number is not a prime factor of x. If it is, then divide the result by another prime number. Continue this process until the final result is also a prime number.
That is, the final result should only be divisible by itself and 1
This method is often visualized using a factor tree (see the diagram below for an example). The original number sits atop the tree, and its divisors are the branches. The ends of all the branches are the prime factors of the original number.
How do we know which prime numbers to use when dividing the original number? This will take some trial and error, hence the name Trial Division Method. A good strategy is to determine if the number is even or odd.
If even, start by dividing the number by 2 and continue to do so until the resulting value is odd, then try to divide by 3, then 5, and so on. Any prime number that you use to divide either the original number or a resulting value is a prime factor of the original number.
To know which numbers are prime that you should try dividing the original number by, see the list of all of the prime numbers under 1000 below as a helpful reference.
As you divide the original number and resulting factors by prime numbers following the example below, you’ll see that you will be creating your own factor tree!
You might also find our greatest common factor calculator helpful to find all factors for a number.
For example, let’s find the prime factors of the number 132.
Since 132 is an even number, start by dividing 132 by 2, which equals 66. 2 is a prime number and cannot be divided further, so it is a prime factor.
However, 66 can be divided by 2 again to get 33. Now we have another 2 as a prime factor.
We can divide 33 by 3 to get 11. 3 is a prime number, so it’s also a prime factor. 11 cannot be divided again and so it is also a prime factor.
Putting it all together, the prime factors of 132 are [11,3,2,2]. These are all prime numbers, and if we multiply them all together, we’ll get 132.
List of Prime Factors Under 1,000
Frequently Asked Questions
Perform all numbers have prime factors?
Yes! In fact, the Fundamental Theorem of Arithmetic states that every integer greater than one can be written as a product of prime numbers.
What is prime factorization used for?
Prime factorization is used for finding the least common multiple of multiple numbers, for example, when combining fractions. In addition, it’s also used in cryptography to help protect digital codes on computers.
Can negative numbers be prime factors?
By definition, all prime numbers are positive, so generally no, negative numbers cannot be prime factors. However, prime numbers can be negative if they are defined such that they are prime if they can only be divided by -1 and itself.
Except for rare cases, you probably won’t encounter negative prime factors.