Sum of Divisors Calculator

The sum of divisors of a whole number adds up every positive number that divides it exactly, including one and the number itself. Known as the sigma function, it underpins the study of perfect, deficient, and abundant numbers and appears throughout number theory. This tool computes the full sum of divisors, the aliquot sum (the total of the proper divisors only), and classifies the number as perfect, deficient, or abundant. It works efficiently by testing divisors up to the square root and pairing each with its quotient.

0.00
0.00
0.00

Sum of divisors formula

Sigma(N) = sum of every divisor d of N (including N)
Aliquot sum = Sigma(N) - N
Perfect if aliquot sum = N; deficient if less; abundant if more

Here N is your number. Divisors are found in pairs up to the square root, taking care to count the square root of a perfect square only once.

How the sum of divisors works

  • The sum of divisors includes one and the number itself.
  • The aliquot sum excludes the number itself, summing only the proper divisors.
  • A perfect number equals its aliquot sum; the smallest examples are 6 and 28.
  • A deficient number has an aliquot sum below itself; an abundant number above.
  • For a prime number the sum of divisors is the number plus one.

Sum of divisors: frequently asked questions

What is the sum of divisors?

The sum of divisors of a whole number is the total of every positive whole number that divides it exactly, including 1 and the number itself. For 12 the divisors are 1, 2, 3, 4, 6 and 12, which add up to 28. Mathematicians call this the sigma function, written with the Greek letter sigma.

What is the aliquot sum?

The aliquot sum is the sum of a number's proper divisors, that is, all its divisors except the number itself. It equals the full sum of divisors minus the number. For 12 the aliquot sum is 28 minus 12, which equals 16. The aliquot sum tells you whether a number is deficient, perfect, or abundant.

What is a perfect number?

A perfect number equals the sum of its proper divisors, so its aliquot sum equals the number itself. The smallest perfect number is 6, since 1 plus 2 plus 3 equals 6. The next is 28. This calculator reports whether your input is perfect, deficient (aliquot sum less than the number), or abundant (aliquot sum greater).

How is the sum of divisors calculated efficiently?

The calculator tests divisors only up to the square root of the number. Each divisor i found below the root contributes both i and the paired quotient N divided by i to the sum, with care taken not to count the square root twice for a perfect square. This is far faster than checking every number up to N.

What inputs are valid?

The sum of divisors is defined for positive whole numbers. The calculator floors any decimal you enter and rejects zero and negatives. To keep the page fast, very large inputs are capped, and the cap is shown if you exceed it. For a prime number the sum of divisors is simply the number plus one.

Official sources

Reviewed by the CalculatorHub team, edited by James Graham, 16 June 2026. See our methodology.