Maths & numbers

Sum of positive divisors calculator

Sum all positive divisors, including the input itself.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

For a prime p the sum is 1+p. To obtain the proper-divisor sum, subtract n from the reported total.

THE FORMULAσ(n) = product of (1 + p + ⋯ + pᵉ)

A worked example

28 has divisors 1, 2, 4, 7, 14 and 28, which sum to 56.

Good to know

The input must be positive.

Build all divisors by choosing prime powers

The number 28 factors as 2² × 7. Every divisor chooses one of 1, 2 and 4 from the power of two and one of 1 and 7 from the power of seven. Multiplying these choices gives 1, 2, 4, 7, 14 and 28. Their sum is 56.

The distributive law collects the same sum as (1 + 2 + 4)(1 + 7) = 7 × 8 = 56. For a general prime power pᵉ, the contribution is 1 + p + … + pᵉ. Multiplying one contribution for each distinct prime produces the sum over every possible divisor choice.

Choosing a factor from each prime-power list generates six divisors of twenty-eight1 × 1 = 12 × 1 = 24 × 1 = 41 × 7 = 72 × 7 = 144 × 7 = 281 + 2 + 4 + 7 + 14 + 28 = 56
The choices from 2² are 1, 2 and 4. Multiplying by either 1 or 7 gives six divisors whose sum is 56.

Include the original number when using the sigma function

This output includes 28 itself. The proper-divisor sum omits that final divisor, so it is 56 − 28 = 28. The Abundant, deficient or perfect number calculator performs that subtraction before comparing the sum with the input. Confusing these two sums would change the classification.

For a prime p, the only divisors are 1 and p, and their sum is p + 1. For the input 1, the divisor list contains only 1 and the sum is 1. Zero is excluded because every positive integer divides zero, giving no finite list to sum. Distinct prime factors are essential in the product formula so each divisor is generated once.

A few questions, answered

How many divisors does 28 have?

Its exponent choices give (2 + 1)(1 + 1) = 6 positive divisors.

Can I use paired divisors as a check?

Yes. The pairs 1 × 28, 2 × 14 and 4 × 7 recover the same six divisors.

Find your calculator

Start typing to explore the library.