Sum of Divisors Calculator

Add every positive divisor of an integer, then see the aliquot sum and whether the number is perfect.

Math and PercentUpdated 2026-11-183 min read
Sum of Divisors Calculator
A whole number from 1 to 1,000,000,000,000.
Sum of divisors sigma(n)
...
Aliquot sum, excluding n...
Prime factorization...

What it does

The divisors of a number are the integers that divide it without a remainder. Adding them produces the divisor sum, written sigma(n). For 12 the divisors are 1, 2, 3, 4, 6 and 12, and their total is 28. That single number links to several classical questions about how integers are built.

If you leave n itself out of the total, you get the aliquot sum. When the aliquot sum equals n, the number is called perfect. The smallest example is 6, whose proper divisors 1, 2 and 3 add back to 6. When the aliquot sum is larger the number is abundant, and when it is smaller the number is deficient.

Listing divisors one by one is fine for small numbers but slow for large ones. The compact formula uses the prime factorization. Each prime power p^e contributes (p^(e+1) - 1)/(p - 1), and the contributions multiply because the divisor sum is a multiplicative function.

This page factors n, applies that product, and shows both sigma(n) and the aliquot sum. It also reports the factorization so each step can be checked by hand, and it labels the number as perfect, abundant or deficient based on how the aliquot sum compares with n.

All results are exact integers. No rounding is involved, and the tool accepts inputs up to one trillion, which is far past the point where drawing a divisor list by hand is realistic.

How to use

  1. Type a whole number n of at least 1 into the input.
  2. Read sigma(n) as the main result, which includes n itself.
  3. Read the aliquot sum beside it to see the total without n.
  4. Use the factorization to follow how each prime power contributed.
  5. Compare the aliquot sum with n to classify the number.
  6. Enter 28 to see a second perfect number and check the tool.

Formula

sigma(n) = product over prime powers p^e in n of (p^(e+1) - 1)/(p - 1)
n
The positive integer whose divisors are summed.
p^e
A prime power in the factorization of n, with exponent e.
sigma(n)
The sum of all positive divisors of n, including n.

For 12 the factorization is 2^2 x 3. The prime power 2^2 contributes (2^3 - 1)/(2 - 1) = 7, and 3 contributes (3^2 - 1)/(3 - 1) = 4, so sigma(12) = 7 x 4 = 28. For a prime p the formula reduces to p + 1. The aliquot sum is simply sigma(n) - n.

Worked example

Example: sigma(12)

Use n = 12, the default already loaded in the tool.

  1. Factor 12 as 2^2 x 3.
  2. For 2^2 compute (2^3 - 1)/(2 - 1) = 7.
  3. For 3^1 compute (3^2 - 1)/(3 - 1) = 4.
  4. Multiply the contributions: 7 x 4 = 28.
  5. The tool reports sigma(12) = 28, aliquot sum 16, and factorization 2^2 x 3.
  6. Check by hand: 1 + 2 + 3 + 4 + 6 + 12 = 28, and dropping 12 leaves 16.
  7. Since 16 is greater than 12, the number is abundant.

Reference table

Divisor sums for small integers
nDivisorssigma(n)Aliquot sum
61, 2, 3, 6126
101, 2, 5, 10188
121, 2, 3, 4, 6, 122816
151, 3, 5, 15249
281, 2, 4, 7, 14, 285628

Limits

  • Only positive divisors are counted, not negative ones.
  • Inputs above one trillion are rejected to keep factoring quick.
  • The tool does not search for amicable partners or aliquot chains.
  • Classification uses the exact sum and ignores rounding conventions used in some tables.

Common mistakes

  • Forgetting to include n itself when reporting sigma(n).
  • Mixing up the aliquot sum with sigma(n).
  • Treating 1 as a prime factor when it contributes nothing to the product.
  • Adding prime contributions instead of multiplying them.
  • Calling a number perfect when only sigma(n) is even, which is not the test.

Try it yourself

Quick checks. Answers sit tucked under each question.

What is sigma(6) and its aliquot sum?

sigma(6) = 1 + 2 + 3 + 6 = 12, and the aliquot sum is 12 - 6 = 6, so 6 is perfect.

What is sigma(28)?

28 = 2^2 x 7, so sigma(28) = 7 x 8 = 56 and the aliquot sum is 28.

Is 10 abundant or deficient?

sigma(10) = 18 and the aliquot sum is 8, which is less than 10, so 10 is deficient.

Questions

What is the aliquot sum?

It is the sum of the proper divisors, meaning every positive divisor except the number itself.

What makes a number perfect?

Its aliquot sum equals the number. Six and 28 are the first two examples.

What does abundant mean?

The aliquot sum is larger than the number. Twelve is abundant because 16 exceeds 12.

Is sigma multiplicative?

Yes. If two numbers are coprime, sigma of their product equals the product of their sigmas.

What is sigma of a prime?

A prime p has divisors 1 and p, so sigma(p) = p + 1.

Why stop at one trillion?

That bound keeps the browser factorization fast and still covers far more than hand calculation can manage.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.