Calcist

Style

Buttons

Spacing

How much to show

Decimal places

Text size

Factor calculator

Enter a whole number to see all its factors, its factor pairs, its prime factorization with a factor tree, and whether it's prime.

Private: calculated on your device. Nothing you type is sent anywhere.

Next: Just need to know if a big number is prime? The prime number checker handles up to 100 digits. Comparing two numbers? Use the GCF or LCM calculator.

How it works

Every whole number above 1 can be written as a product of primes in exactly one way (the fundamental theorem of arithmetic). The calculator first finds that prime factorization, then builds everything else from it.

If n = p1a × p2b × …, then
number of factors = (a + 1)(b + 1)…
sum of factors = (p1a+1 − 1)/(p1 − 1) × (p2b+1 − 1)/(p2 − 1) × …

To find the primes, it divides by every small prime up to 1,009. Whatever is left is tested with the Miller–Rabin test and, if it isn't prime, split with Pollard's rho method, which finds the large factors of a 19-digit number in a fraction of a second.

Worked example: 360

  • Prime factorization: 360 = 2 × 2 × 2 × 3 × 3 × 5 = 2³ × 3² × 5.
  • Number of factors: (3 + 1)(2 + 1)(1 + 1) = 4 × 3 × 2 = 24.
  • Sum of factors: (2⁴ − 1)/1 × (3³ − 1)/2 × (5² − 1)/4 = 15 × 13 × 6 = 1,170.
  • Factor pairs: 1 × 360, 2 × 180, 3 × 120, 4 × 90, 5 × 72, 6 × 60, 8 × 45, 9 × 40, 10 × 36, 12 × 30, 15 × 24, 18 × 20.

Prime, composite, perfect

  • A prime has exactly two factors, 1 and itself. A composite number has more. 1 is neither.
  • A perfect number equals the sum of its other factors: 28 = 1 + 2 + 4 + 7 + 14. If the sum is bigger, the number is abundant; if smaller, deficient.
  • A number is a perfect square when every exponent in its prime factorization is even: 144 = 2⁴ × 3².

Limits

  • Numbers up to 19 digits are factored completely. For a bigger number, the prime number checker can still tell you if it's prime.
  • When a number has more than 5,000 factors, the count and sum are still exact, but the list isn't shown.
  • Factors here are positive. For a negative number, each factor also has a negative partner.

Sources

How we checked this

Before every update, this calculator is run in a real browser with these known answers, and it must match all of them:

  • 360 = 2³ × 3² × 5 ✓
  • 360 has 24 factors ✓
  • 600851475143 = 71 × 839 × 1471 × 6857 ✓
  • 1000000016000000063 = 1000000007 × 1000000009 ✓
  • 28 is a perfect number ✓
  • 1 is neither prime nor composite ✓

Last checked October 26, 2026. Spotted something wrong? The math is done in your browser with the formula shown on this page, so you can check any result by hand.

Add this calculator to your website (free)

Paste this code into any web page. The calculator works on your page, resizes itself, has no ads and no tracking, and nothing your visitors type is sent anywhere. More about embedding.

Questions people ask

What are the factors of 24?

1, 2, 3, 4, 6, 8, 12 and 24. As pairs: 1 × 24, 2 × 12, 3 × 8 and 4 × 6.

What is the prime factorization of 100?

100 = 2² × 5², or 2 × 2 × 5 × 5.

How do I make a factor tree?

Split the number into any two factors, then keep splitting each one until every branch ends in a prime. 60 → 2 × 30 → 2 × 2 × 15 → 2 × 2 × 3 × 5. You always end with the same primes, whichever split you start with.

How many factors does a number have?

Write its prime factorization, add 1 to each exponent and multiply. 72 = 2³ × 3², so it has (3 + 1)(2 + 1) = 12 factors.

What is the difference between factors and multiples?

Factors divide into a number; multiples are what you get by multiplying it. 6 is a factor of 18, and 18 is a multiple of 6.

Related calculators