Prime Factorization Calculator

Find the prime factorization of any positive integer.

By Konstantin Iakovlev · Updated September 2026 · Source: Khan Academy

Factorization

2^3 x 3^2 x 5

Prime?

No

Prime Factors

Number360.00
Prime Factors2 x 2 x 2 x 3 x 3 x 5
Unique Primes3.00
Expression2^3 x 3^2 x 5

Use the Prime Factorization Calculator above to calculate your results. Enter your values and see instant results — all calculations run in your browser.

Disclaimer: This calculator is for informational purposes only. Results are estimates based on the information you provide and the assumptions described on this page.

How It Works

Every whole number greater than one can be written as a product of primes, and this tool finds that unique decomposition for any positive integer you enter. Prime factorization sits at the heart of number theory, and the difficulty of factoring very large numbers is what RSA encryption relies on. Students, teachers, and working professionals can all use it to turn a tedious hand calculation into an instant result.

Behind the scenes, the method is plain trial division. The number is divided by 2 as many times as it will go, then by 3, 4, 5 and so on; a composite divisor such as 4 never divides, because its prime factors have already been removed. Each successful division strips out one prime factor, and the search stops once the divisor squared exceeds what is left: anything above 1 that remains at that point is itself prime. The result lists the factors and writes them as a product of prime powers.

Input matters here: factorization is defined for whole numbers above one, so the calculator rounds a decimal down and drops a minus sign (84.9 and -84 are both factored as 84), and 0 or 1 gives no result. Type the number without commas. Note that 1 is never prime and so never appears in any factorization. The factors can technically be written in any order, but the output lists them from smallest to largest by convention.

Example: Factoring 1,234,567,890

  1. 1 Enter 1234567890 (without commas) into the Prime Factorization Calculator.
  2. 2 Trial division: 1,234,567,890 ÷ 2 = 617,283,945; ÷ 3 = 205,761,315; ÷ 3 = 68,587,105; ÷ 5 = 13,717,421. No divisor from 6 up to 3,606 goes into 13,717,421, but 3,607 does: 13,717,421 ÷ 3,607 = 3,803.
  3. 3 Since 3,608² is far larger than 3,803, the search stops and 3,803 is prime. The calculator shows 2 x 3^2 x 5 x 3607 x 3803, with 5 unique primes, and answers No to "Prime?".
  4. 4 Check: 2 × 9 × 5 × 3,607 × 3,803 = 90 × 13,717,421 = 1,234,567,890. A ten-digit number like this factors instantly; the numbers behind RSA keys are chosen to be far too large for trial division or any known method to factor in practice.

Source: Khan Academy · Last updated: September 2026

Frequently Asked Questions

What is prime factorization?
Prime factorization breaks a number into the product of its prime factors. For example, 60 = 2 x 2 x 3 x 5, or 2^2 x 3 x 5. Every integer greater than 1 has a unique prime factorization, a principle known as the Fundamental Theorem of Arithmetic.
How do I find the prime factorization of a number?
Start dividing by the smallest prime (2), continue dividing until you cannot, then try the next prime (3, 5, 7, 11...). For 360: 360/2=180, 180/2=90, 90/2=45, 45/3=15, 15/3=5, 5/5=1. So 360 = 2^3 x 3^2 x 5.
What is prime factorization used for?
Prime factorization is used to find the greatest common divisor and least common multiple, simplify fractions, solve problems in number theory, and is fundamental to modern cryptography (RSA encryption relies on the difficulty of factoring large numbers).