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
| Number | 360.00 |
| Prime Factors | 2 x 2 x 2 x 3 x 3 x 5 |
| Unique Primes | 3.00 |
| Expression | 2^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 Enter 1234567890 (without commas) into the Prime Factorization Calculator.
- 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 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 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?
How do I find the prime factorization of a number?
What is prime factorization used for?
You might also need
Percentage Calculator
Calculate percentages three ways: what is X% of Y, X is what % of Y, and percentage change from X to Y.
Fraction Calculator
Add, subtract, multiply, and divide fractions. Results shown as fraction, mixed number, and decimal.
Standard Deviation Calculator
Calculate mean, variance, and standard deviation (population and sample) from a data set.