Prime Factorization Calculator

Break any whole number into prime factors and see all its factors, the number and sum of divisors, and whether it is prime. Even numbers above a trillion take a split second.

—
—Number of divisors
—Sum of divisors
—Distinct prime factors

All factors

Division steps

    About the Prime Factorization Calculator

    Prime factorization writes a whole number as a product of prime numbers – numbers divisible only by 1 and themselves. For example, 360 = 2³ × 3² × 5. This calculator factors the number you enter and also shows the number and sum of its divisors, the complete list of factors and whether the number is prime.

    It is exact for every whole number up to 2⁵³−1 (about 9 quadrillion) and shows the repeated-division steps you learn at school.

    How to use

    1. Enter a whole number. Thousands separators are fine.
    2. The result appears in exponent form such as 2³ × 3² × 5; a prime number is labeled as prime.
    3. Below you find the number and sum of divisors, every factor and the division steps.

    Formulas for the number and sum of divisors

    If n = pa × qb × rc, then:

    • Number of divisors = (a + 1)(b + 1)(c + 1)
    • Sum of divisors = (1 + p + … + pa)(1 + q + … + qb)(1 + r + … + rc)

    Example: 360 = 2³ × 3² × 5 → number of divisors = 4 × 3 × 2 = 24, sum of divisors = 15 × 13 × 6 = 1,170

    How to check if a number is prime

    To test whether n is prime, divide it by every number from 2 up to √n. If n had a factor larger than √n, it would also have a matching factor smaller than √n. This calculator only tries 2, 3 and numbers of the form 6k ± 1, which makes it fast.

    NumberPrime factorizationDivisors
    122² × 36
    1002² × 5²9
    1,0017 × 11 × 138
    1,0242¹⁰11

    FAQ

    Is 1 a prime number?

    No. A prime has exactly two divisors (1 and itself). The number 1 has only one divisor, so it is neither prime nor composite.

    Which numbers have an odd number of divisors?

    Perfect squares. The product of (exponent + 1) is odd only when every exponent is even. Example: 36 = 2² × 3² has 9 divisors.

    Why is the list of factors cut off?

    For numbers with very many divisors, only the first 1,000 are listed to keep the page readable. The number and sum of divisors are always computed in full.

    Is a factor tree the same as this?

    Yes – a factor tree and the repeated-division method always end with the same prime factors, because every whole number has exactly one prime factorization.