Perfect Number Check Calculator
A perfect number is a positive whole number that equals the sum of its own proper divisors, the divisors smaller than the number itself. The first perfect number is six, whose proper divisors one, two and three add up to six; the next is twenty-eight, then four hundred ninety-six. This calculator takes a whole number and tells you whether it is perfect by computing the sum of its divisors and checking whether that sum equals twice the number, which is the same as saying the proper divisors total the number. The calculator also shows the proper divisors and their sum so you can see the test directly. Perfect numbers have fascinated mathematicians since antiquity and are tied to Mersenne primes through a classical theorem of Euclid and Euler. They are rare: only a handful are known among small numbers, and all known perfect numbers are even. Students, number-theory enthusiasts and puzzle solvers use this check to explore the idea. Enter a whole number to get the verdict immediately; the input is a plain integer, so no decimal formatting applies. Every figure here is computed deterministically from the rule shown below, with a worked example that reconciles exactly to the calculator so you can follow each step yourself.
A number is perfect when its proper divisors sum to itself, that is sigma(n) = 2n. For 28, the proper divisors 1 + 2 + 4 + 7 + 14 = 28, so 28 is perfect.
Perfect Number Check formula
n is perfect if sigma(n) = 2n
equivalently: sum of proper divisors = n
proper divisors exclude n itself
sigma(n) = sum of all divisors
examples: 6, 28, 496, 8128
Add up all divisors of the number smaller than itself. If that sum equals the number, it is perfect. Equivalently, the sum of all divisors including itself equals twice the number.
Worked example
Check whether 28 is a perfect number.
- Proper divisors of 28: 1, 2, 4, 7, 14
- Sum = 1 + 2 + 4 + 7 + 14 = 28
- Sum equals 28, so 28 is a perfect number
28 is a perfect number. This is the calculator's default input, so the result above matches the widget exactly.
Perfect numbers and near misses
Sum of proper divisors compared to n.
| n | Proper divisor sum | Type |
|---|---|---|
| 6 | 6 | Perfect |
| 12 | 16 | Abundant |
| 28 | 28 | Perfect |
| 8 | 7 | Deficient |
| 496 | 496 | Perfect |
Number-theory reference: US National Institute of Standards and Technology (NIST).
Perfect Number Check Calculator: frequently asked questions
What is a perfect number?
A perfect number is a positive integer equal to the sum of its proper divisors, the divisors smaller than itself. Six is perfect because 1 plus 2 plus 3 equals 6. The next perfect numbers are 28, 496 and 8128, and they become very sparse after that.
How is the test carried out?
Add up all the divisors of the number that are less than the number. If the total equals the number, it is perfect. An equivalent test is that the sum of all divisors including the number itself equals twice the number, written sigma of n equals 2n.
Are all perfect numbers even?
Every perfect number found so far is even, and even perfect numbers correspond exactly to Mersenne primes through the Euclid-Euler theorem. Whether any odd perfect number exists is a famous unsolved problem; none has ever been found despite extensive searching.
What are abundant and deficient numbers?
If the proper divisors sum to more than the number it is abundant, and if they sum to less it is deficient. Perfect numbers sit exactly on the boundary. For example 12 is abundant because its proper divisors sum to 16, while 8 is deficient.
What is the perfect-number test?
A number is perfect when the sum of all its divisors equals twice the number, sigma(n) = 2n. For 28 the divisors 1, 2, 4, 7, 14 and 28 sum to 56, which is twice 28, so 28 is perfect.
Official sources
- Mathematical functions and integer-sequence reference data (Digital Library of Mathematical Functions): US National Institute of Standards and Technology (NIST). As at 25 June 2026.
Reviewed by the CalculatorHub team, edited by James Graham, 25 June 2026. See our methodology. This is general information, not financial, tax, legal or investment advice.