Prime Factorization

Break any integer down into its prime factors instantly. Free, private, and calculated right in your browser.

Type in any positive integer and get its full breakdown into prime factors, with repeated primes grouped as exponents (like 360 = 2^3 × 3^2 × 5), handy for simplifying fractions, checking GCD/LCM by hand, or just settling a homework argument about whether a number is prime.

How to use it

  1. Enter a positive integer
  2. Hit factor to run the calculation
  3. Read off the prime factors and exponents

Frequently asked questions

How do you factor a really big number?
Trial division gets slow past a few million digits, so the tool switches to Pollard's rho for large factors before falling back to a final primality check. You'll still get an answer for numbers with dozens of digits in a reasonable time.
How can I tell the result is fully factored, not just divided once?
Each factor shown has already been tested with a primality check, and repeated factors are grouped with exponents (e.g. 2^4 × 3^2 × 7), so what you see is the complete prime factorization, not a partial split.
Does it work on numbers that are already prime?
Yes. If the number itself is prime, the tool just returns that single number as its only factor instead of trying to force a split.