Perfect Number Calculator
- List the proper divisors of 28 — every divisor except the number itself: 1, 2, 4, 7, 14.
- Their sum, the aliquot sum, is 1 + 2 + 4 + 7 + 14 = 28.
- Compare the aliquot sum with the number: 28 equals 28, so 28 is perfect — the three-way classification the Greeks built their number lore on.
- Perfect numbers are vanishingly rare — only 51 are known, all even, and whether any odd perfect number exists is one of the oldest open problems in mathematics; abundant and deficient numbers make up almost everything else.
A perfect number calculator tells you whether a whole number is perfect, abundant, or deficient by adding up its proper divisors — the positive divisors smaller than the number itself. A number is perfect when that sum equals the number exactly: 28 is perfect because 1 + 2 + 4 + 7 + 14 = 28. If the divisors add up to more than the number, it is abundant, as with 12, whose divisors 1, 2, 3, 4, and 6 sum to 16. If they add up to less, it is deficient, as with 8, whose divisors 1, 2, and 4 sum to 7. Enter a number and the calculator does the adding for you and labels the result.
The method behind the answer is the divisor-sum test itself, the standard definition mathematicians use to classify perfect, abundant, and deficient numbers, so the result rests on the accepted meaning of a perfect number rather than a shortcut. The page also shows the formula, step-by-step workings, and worked examples, and it cites its sources, so you can follow every step and check the arithmetic yourself. It also covers the bigger picture: only 51 perfect numbers are known, all of them even, and whether any odd perfect number exists is one of the oldest open problems in mathematics. Every even perfect number has the form 2^(p−1)(2^p − 1), where 2^p − 1 is a Mersenne prime — the Euclid–Euler theorem.
Worked examples
28 — the second perfect number
Primary result: Perfect. Full step-by-step working is shown with the result. (28)
| Classification | Perfect |
| Sum of proper divisors (aliquot sum) | 28 |
| Proper divisors | 1, 2, 4, 7, 14 |
| Sum minus the number | 0 |
12 — abundant
Primary result: Abundant. Try it with your own numbers in the calculator above. (12)
| Classification | Abundant |
| Sum of proper divisors (aliquot sum) | 16 |
| Proper divisors | 1, 2, 3, 4, 6 |
| Sum minus the number | +4 |
8 — deficient
Primary result: Deficient. Every intermediate value is printed in the worked steps. (8)
| Classification | Deficient |
| Sum of proper divisors (aliquot sum) | 7 |
| Proper divisors | 1, 2, 4 |
| Sum minus the number | -1 |
Perfect, abundant and deficient
The ancient Greeks sorted whole numbers into three groups by comparing each number with the sum of its proper divisors — the divisors smaller than the number itself, not counting the number. A perfect number equals that sum exactly. The classic example is 28: its proper divisors are 1, 2, 4, 7 and 14, and 28 = 1 + 2 + 4 + 7 + 14. A perfect number calculator does this same addition for any number you enter, so you can check the result yourself rather than take it on faith.
When the proper divisors add up to more than the number, the number is called abundant. Twelve is the smallest example: its proper divisors are 1, 2, 3, 4 and 6, which sum to 16 — four more than 12 itself. When the proper divisors add up to less than the number, it is called deficient. Eight shows this: its proper divisors are 1, 2 and 4, which sum to 7, one short of 8. The surplus or shortfall is sometimes called the number's abundance or deficiency, and it can be larger than the examples above suggest.
These three labels cover every whole number greater than 1, because the sum of the proper divisors is either equal to the number, greater than it, or less than it. That makes the classification a simple test you can run on any value: list the divisors, add them, and compare. The interesting part is how unevenly the three groups are populated. Perfect numbers are extremely rare, while deficient numbers are common — every prime, for instance, has only 1 as a proper divisor, so every prime is deficient.
Perfect numbers themselves are rarer still than the three-way split might imply. Only 51 perfect numbers are known, and all of them are even. Whether any odd perfect number exists is one of the oldest open problems in mathematics — no one has found one, and no one has proved that none can exist. Even perfect numbers follow a strict pattern: every even perfect number has the form 2^(p−1)(2^p − 1), where 2^p − 1 is a Mersenne prime. This result is known as the Euclid–Euler theorem, named for the Greek mathematician who first described the construction and the one who later proved it covers every even case.
How the classification is calculated
To classify a number, the perfect number calculator first lists its proper divisors — every positive whole number that divides it evenly, excluding the number itself — then adds them up and compares the total with the original number. The comparison produces one of three labels: perfect, abundant, or deficient.
Finding the divisors does not require testing every number below the target. Divisors come in pairs, and in each pair one factor is no larger than the square root of the number. So the calculation checks candidate divisors only up to that square root. When a candidate divides evenly, both members of the pair are recorded: the candidate and the quotient. For example, testing 28, the candidates run from 1 up to the square root, and the pairs are 1 and 28, 2 and 14, and 4 and 7. The number itself is dropped from the list, leaving the proper divisors 1, 2, 4, 7, and 14. This pairing shortcut keeps the work small even for large inputs, since the number of candidates grows with the square root rather than with the number itself.
The sum of those proper divisors decides the classification. If the sum equals the number, it is perfect: 28 = 1 + 2 + 4 + 7 + 14. If the sum is greater than the number, it is abundant: 12 has divisors 1, 2, 3, 4, and 6, summing to 16. If the sum is less than the number, it is deficient: 8 has divisors 1, 2, and 4, summing to 7. The same three-way check applies to every input, so the result is always one of these labels.
Perfect numbers themselves are rare. Only 51 perfect numbers are known, all of them even, and whether any odd perfect number exists is one of the oldest open problems in mathematics. For the even ones, structure is known: every even perfect number has the form 2^(p−1)(2^p − 1) with 2^p − 1 a Mersenne prime, a result called the Euclid–Euler theorem. That theorem explains why the known perfect numbers are even, while the odd case remains unsettled.
Perfect numbers and Mersenne primes
The link between perfect numbers and Mersenne primes is one of the most striking results in number theory. The Euclid–Euler theorem states that every even perfect number has the form 2^(p−1)(2^p − 1), where 2^p − 1 is a Mersenne prime. In other words, each even perfect number is built from a Mersenne prime, and each Mersenne prime produces exactly one even perfect number. This is why a perfect number calculator that checks the divisors of a number is testing a property that, for even numbers, is tied to a much narrower family of values.
The familiar examples fit the pattern. The proper divisors of 28 are 1, 2, 4, 7 and 14, and they sum to 28, so 28 is perfect. Numbers can also miss in either direction. When the proper divisors sum to more than the number, it is abundant: 12 has divisors 1, 2, 3, 4 and 6, which sum to 16. When they sum to less, it is deficient: 8 has divisors 1, 2 and 4, which sum to 7. Perfect numbers sit exactly on the boundary between these two cases, which is part of why they are so rare.
Rarity is the defining feature of the search. Only 51 perfect numbers are known, and all of them are even. Whether any odd perfect number exists is one of the oldest open problems in mathematics. Because the Euclid–Euler theorem covers only even perfect numbers, an odd perfect number, if one exists, would fall outside that formula entirely — a possibility that has kept the problem open despite centuries of effort.
The ongoing search is largely a distributed computing effort. Because each new even perfect number requires finding a new Mersenne prime, volunteers run software on their own machines to test candidate exponents, pooling computing power that no single researcher could assemble. That is also why the count of known perfect numbers grows so slowly: every new entry depends on a Mersenne prime being found and verified. A perfect number calculator is a quick way to explore the definition on small inputs, while the large-scale hunt continues on a completely different scale.
- Perfect: proper divisors sum to the number itself — 28 = 1 + 2 + 4 + 7 + 14.
- Abundant: proper divisors sum to more — 12 has divisors 1, 2, 3, 4, 6 summing to 16.
- Deficient: proper divisors sum to less — 8 has divisors 1, 2, 4 summing to 7.
- Even perfect numbers: form 2^(p−1)(2^p − 1) with 2^p − 1 a Mersenne prime (Euclid–Euler theorem).
- Known total: 51 perfect numbers, all even; the existence of an odd perfect number remains open.
How common is each class?
If you sort the counting numbers by how their proper divisors add up, the three classes are not remotely equal in size. Deficient numbers are the majority: for most numbers, the proper divisors fall short of the number itself. The small example 8 shows the pattern — its divisors are 1, 2, and 4, which sum to 7, one short of 8. A perfect number calculator can classify any single number you enter, but stepping back to look at the whole number line shows a very lopsided picture.
Abundant numbers are common, though not the dominant class. Here the proper divisors overshoot the number: 12 has divisors 1, 2, 3, 4, and 6, which sum to 16, more than 12 itself. Abundant numbers turn up early and often, and they are not limited to even values — the smallest odd abundant number is 945. That number is worth remembering, because it shows that oddness alone does not keep a number from being abundant.
Perfect numbers are vanishingly rare by comparison. A perfect number equals the sum of its proper divisors exactly, as in 28 = 1 + 2 + 4 + 7 + 14. Only 51 perfect numbers are known, and all of them are even. Whether any odd perfect number exists is one of the oldest open problems in mathematics — a question that has resisted every attempt at a proof or a counterexample. So the perfect class is not just sparse; it is sparse in a way that mathematicians still do not fully understand.
The rarity of perfect numbers has a structural reason. Every even perfect number has the form 2^(p−1)(2^p − 1), where 2^p − 1 is a Mersenne prime — a result known as the Euclid–Euler theorem. That formula ties each even perfect number to a Mersenne prime, and Mersenne primes themselves are scarce. The chain runs from a rare kind of prime to an even rarer kind of number, which helps explain why the known list stops at 51.
Put the three classes side by side and the contrast is stark. Deficient numbers form the bulk of the counting numbers. Abundant numbers are a large and easily found group, with 945 as the first odd member. Perfect numbers sit at the far edge of rarity, with only 51 known and every one of them even. When you use a perfect number calculator, you are testing a single number against a standard that almost nothing on the number line meets.
FAQs
What is a perfect number?
A perfect number is a positive integer equal to the sum of its proper divisors — the divisors smaller than the number itself. The classic example is 28: its proper divisors are 1, 2, 4, 7, and 14, and those add up to exactly 28. Because the sum matches the number, 28 is perfect.
Is 12 a perfect number?
No. 12 is abundant, not perfect. Its proper divisors are 1, 2, 3, 4, and 6, and these sum to 16, which exceeds 12. A number is perfect only when its proper divisors sum to exactly the number itself, so 12 fails that test because its aliquot sum is larger than the number.
What is a deficient number?
A deficient number is one whose proper divisors sum to less than the number itself. For example, 8 has proper divisors 1, 2, and 4, which sum to 7 — less than 8, so 8 is deficient. Most numbers fall into this category, making deficiency the most common classification.
How many perfect numbers are known?
Only 51 perfect numbers are known. All of them are even, and each is tied to a Mersenne prime through the Euclid–Euler theorem. That theorem links every even perfect number to a Mersenne prime, which is why the search for new perfect numbers depends on finding new Mersenne primes.
Is there an odd perfect number?
Nobody knows. No odd perfect number has ever been found, and none has been proved impossible, despite centuries of work. So the question of whether an odd perfect number exists remains one of the oldest open problems in number theory, with all 51 known perfect numbers being even.
What is an aliquot sum?
The aliquot sum is the sum of a number's proper divisors. Comparing that sum with the number itself gives the perfect, abundant, or deficient classification: equal means perfect, greater means abundant, and less means deficient. For instance, 12 has an aliquot sum of 16, which makes it abundant.