Updated on April 18th, 2026

Prime Factorization Calculator

Created By Jehan Wadia

Supports integers and expressions with +, -, *, /, ^, and parentheses.
Computing...
Factorizing...

Prime Factorization Results

Input Number

84,000

Number of Prime Factors

4

Total Divisors

60

Exponential Form
25 × 3 × 53 × 7
Product Form
2 × 2 × 2 × 2 × 2 × 3 × 5 × 5 × 5 × 7
Prime Factors
2 3 5 7
All Divisors (60)
Factor Tree

Introduction

Prime factorization is the process of breaking a number down into the smallest prime numbers that multiply together to give you that number. For example, the prime factorization of 12 is 2 × 2 × 3, because those prime numbers multiply to equal 12. Every whole number greater than 1 can be written as a product of primes, and there is only one way to do it. This is known as the Fundamental Theorem of Arithmetic.

Our Prime Factorization Calculator makes this process quick and simple. Just enter any positive whole number, and the tool will find all of its prime factors for you. This is useful for simplifying fractions, finding the greatest common factor (GCF), calculating the least common multiple (LCM), or just learning how numbers are built from their basic parts.

How to Use Our Prime Factorization Calculator

Enter any whole number greater than 1, and this calculator will break it down into its prime factors. You will see the results in exponential form, product form, a full list of divisors, and an optional factor tree diagram.

Enter a Number or Expression: Type the whole number you want to factorize into the input field. You can enter a simple number like 84000 or a math expression using +, -, *, /, ^, and parentheses. For example, typing 2^64 - 1 will calculate that value first and then find its prime factors.

Number Base: Choose whether your input is in Decimal (base 10) or Hexadecimal (base 16). Most users should leave this set to Decimal. Select Hexadecimal if you are working with hex numbers.

Show Factor Tree: Check this box if you want to see a visual factor tree diagram that shows how your number splits into prime factors step by step. This is helpful for learning how prime factorization works.

Verbose Output: Check this box to see a detailed step-by-step breakdown of every division performed during the factorization process. Each step shows which number was divided, what it was divided by, and the result.

Factorize Button: Click this button after entering your number to run the calculation. The results will appear below, showing the input number, the number of unique prime factors, the total count of divisors, the exponential form, the product form, a list of all prime factors, and a list of every divisor of your number.

What Is Prime Factorization?

Prime factorization is the process of breaking a number down into the set of prime numbers that multiply together to give that number. A prime number is a number greater than 1 that can only be divided evenly by 1 and itself. Examples of prime numbers include 2, 3, 5, 7, 11, and 13. Every whole number greater than 1 is either a prime number itself or can be written as a product of prime numbers. This idea is so important that mathematicians call it the Fundamental Theorem of Arithmetic.

For example, the number 84,000 can be broken down into 2 × 2 × 2 × 2 × 2 × 3 × 5 × 5 × 5 × 7. No matter what method you use, you will always get the same set of prime factors. That is what makes prime factorization unique — every number has exactly one prime factorization.

How Prime Factorization Works

The simplest method is called trial division. You start by dividing the number by the smallest prime, which is 2. You keep dividing by 2 until it no longer goes in evenly. Then you move on to 3, then 5, then 7, and so on. You repeat this process until the remaining number is 1. Each time a prime divides evenly, that prime is one of the factors.

For very large numbers, trial division can be slow. In those cases, advanced methods like Pollard's Rho algorithm are used. This algorithm finds factors much faster by using a clever mathematical shortcut that detects hidden patterns in the number. This calculator uses trial division for smaller factors and automatically switches to Pollard's Rho when dealing with large composite numbers.

Key Terms in the Results

Why Prime Factorization Matters

Prime factorization is used throughout math and everyday applications. It is the basis for finding the greatest common factor (GCF) and least common multiple (LCM) of two or more numbers, which helps when simplifying fractions or solving problems with ratios. In computer science, the difficulty of factoring extremely large numbers is what keeps modern encryption and online security systems safe. The RSA encryption method, used to protect passwords and financial data, relies on the fact that multiplying two large primes is easy, but reversing that process is extraordinarily hard.

Prime factorization also plays a role in simplifying square roots, understanding number patterns, and solving problems in algebra. Related concepts like factorials, combinations, and permutations all benefit from a solid understanding of how numbers decompose into primes. Whether you are working on a homework problem or exploring number theory, knowing how to break a number into its prime factors is a fundamental and powerful skill.


Frequently Asked Questions

What is a prime number?

A prime number is a whole number greater than 1 that can only be divided evenly by 1 and itself. For example, 2, 3, 5, 7, 11, and 13 are all prime numbers. The number 4 is not prime because it can be divided by 2.

Can I enter negative numbers or zero?

No. This calculator only works with whole numbers greater than 1. Prime factorization is not defined for 0, 1, or negative numbers. If you enter a value of 1 or less, the tool will show an error message.

What is the largest number this calculator can handle?

The calculator uses BigInt math, so it can handle very large numbers. It works well with numbers that have many small prime factors or a few large ones. For extremely large numbers with two big prime factors, the computation may take longer. You can click the Stop button if it takes too long.

What does the exponential form mean?

Exponential form groups repeated prime factors using exponents. Instead of writing 2 × 2 × 2, you write 23. It is a shorter way to show the same prime factorization.

What is the difference between prime factors and divisors?

Prime factors are the prime numbers that multiply together to make your number. Divisors are all the numbers that divide evenly into your number, including 1 and the number itself. For example, the prime factors of 12 are 2 and 3, but the divisors of 12 are 1, 2, 3, 4, 6, and 12.

How do I enter a math expression instead of a plain number?

Type your expression directly into the input field using +, -, *, /, ^, and parentheses. For example, you can type 2^10 - 1 or (50 + 10) * 3. The calculator will evaluate the expression first and then factorize the result.

What is a factor tree?

A factor tree is a diagram that shows how a number breaks apart into prime factors step by step. At the top is the original number. Each level splits a composite number into two factors until only prime numbers remain at the bottom. It is a helpful visual way to understand the factorization process.

Why is 1 not a prime number?

By definition, a prime number must have exactly two distinct divisors: 1 and itself. The number 1 only has one divisor (itself), so it does not meet the definition. Excluding 1 from the primes also keeps the Fundamental Theorem of Arithmetic true — every number has exactly one unique prime factorization.

What does the verbose output show?

Verbose output shows every division step the calculator performed. Each line tells you which number was divided, what prime it was divided by, and the result. If the calculator used Pollard's Rho algorithm for a step, it will note that too. This is useful for learning or checking the work.

Is 2 the only even prime number?

Yes. The number 2 is the only even prime number. Every other even number can be divided by 2, so none of them can be prime. This makes 2 special in number theory.

What is Pollard's Rho algorithm?

Pollard's Rho is a fast method for finding factors of large numbers. It uses a math trick to detect patterns and find a divisor without testing every possible number. This calculator uses it automatically when trial division would be too slow.

How is the total number of divisors calculated?

Take the exponential form of the prime factorization. Add 1 to each exponent, then multiply those results together. For example, if a number equals 23 × 52, the divisor count is (3+1) × (2+1) = 12.

Why does the calculator limit the divisor list to 500?

Some numbers have thousands or even millions of divisors. Listing all of them would slow down your browser and be hard to read. The calculator caps the displayed list at 500 divisors to keep things fast and usable. The total count is still shown.

Can I use hexadecimal input?

Yes. Select the Hexadecimal option under Number Base. You can then type hex values like FF or 0x1A3. The results will also be displayed in hexadecimal format.

What happens if my number is already prime?

If you enter a prime number, the calculator will show that the number itself is its only prime factor. The exponential form and product form will just show that single prime. The only divisors will be 1 and the number itself.

Why is the factor tree not showing?

The factor tree is hidden if the Show Factor Tree checkbox is unchecked. It also will not display if your number has more than 50 prime factors (counting repeats), because the tree would be too large to read. Check the box and try a smaller number if you want to see the tree.


Related Calculators

GCF Calculator

Visit GCF Calculator

LCM Calculator

Visit LCM Calculator