Perfect Number Checker

Perfect?—
Sum of proper divisors—

How Perfect Number Checker is calculated: A number is perfect when the sum of its proper divisors equals the number itself

What is a perfect number?

A perfect number is a whole number that equals the sum of its proper divisors, the numbers that divide it exactly without counting itself. 6 is perfect because its divisors 1, 2, and 3 add to 6, and 28 is perfect because 1, 2, 4, 7, and 14 add to 28. This page gives you that answer in a second, with the working shown beside the result, and everything runs entirely in your browser with no sign-up and no data sent anywhere.

Perfect numbers have fascinated mathematicians for over two thousand years, from the ancient Greeks, who saw a kind of balance in them, to modern researchers hunting for the next one. Students meet them as a puzzle in number theory, and this checker lets anyone test a number in a second. Students meet it in school maths, programmers meet it in code, and shopkeepers and clerks meet it whenever a total has to be split fairly or checked by hand.

The results box shows the answer first, in large type, and then the supporting numbers underneath it, so you can see both the headline and the working at a glance. Change any input and the answer updates at once, which makes it easy to test a few values and build a feel for how the numbers behave.

How a perfect number is tested

The checker lists every proper divisor of the number, adds them together, and compares the total with the number itself. For the default example, 28, the divisors are 1, 2, 4, 7, and 14, and their sum is 28, exactly the number tested, so the answer is yes. The sum is shown beside the answer so the working is visible.

The rule is that a number n is perfect when the sum of its proper divisors equals n. For 28, 1 plus 2 plus 4 plus 7 plus 14 is 28, and the two sides match exactly. If the sum is smaller, the number is called deficient; if it is larger, the number is called abundant, and 12 is the smallest abundant number.

The number 1 is not perfect, because its only proper divisor is none at all, so the sum is 0, not 1. Very large numbers take longer to test, because the checker must try every possible divisor up to half the number, so this page is best for numbers up to a few hundred thousand rather than millions.

A quick mental check for small numbers is to list divisors in pairs: if 2 divides 28, so does 14, and if 4 divides 28, so does 7. Pairing divisors this way means you only need to search up to the square root, and every divisor you find brings its partner with it.

Proper divisors are the whole test

The proper divisors are the input that matters, and the one mistake people make is including the number itself in the sum. The divisors of 28 are 1, 2, 4, 7, and 14, and adding 28 itself would give 56, which proves nothing. Proper means every divisor except the number, and that single word carries the whole definition.

Compare 28 with 12 to see the definition at work. The proper divisors of 12 are 1, 2, 3, 4, and 6, and they add to 16, which is more than 12, so 12 is abundant, not perfect. The proper divisors of 6 are 1, 2, and 3, and they add to exactly 6, so 6 is perfect, the smallest of all.

The safe habit is to read the input back before trusting the output: check the digits, check the sign, and check that you have not swapped the two numbers round. A calculator only repeats the question you actually asked it, so a careful ten seconds on the input saves a wrong answer later.

A worked example: 28, 12, and 6

First, the default example: 28. Its proper divisors are 1, 2, 4, 7, and 14. Add them step by step: 1 plus 2 is 3, plus 4 is 7, plus 7 is 14, plus 14 is 28. The sum equals the number, so 28 is a perfect number.

Second, 12. Its proper divisors are 1, 2, 3, 4, and 6. Add them: 1 plus 2 is 3, plus 3 is 6, plus 4 is 10, plus 6 is 16. The sum is 16, which is more than 12, so 12 is not perfect; it is abundant.

Third, 6. Its proper divisors are 1, 2, and 3. Add them: 1 plus 2 is 3, plus 3 is 6. The sum equals the number, so 6 is perfect, and it is the smallest perfect number there is.

The pattern is that perfect numbers are rare: 6 and 28 are the only ones below 100, and the next, 496, is the only one below 1,000. Most numbers are either deficient, with divisors adding to less, or abundant, with divisors adding to more, and perfection is the narrow balance in between.

Why perfect numbers still fascinate mathematicians

Perfect numbers are tied to Mersenne primes, primes of the form 2 to the power of p minus 1, and every even perfect number known comes from one. The search for new perfect numbers is really a search for new Mersenne primes, and the largest known primes are found this way, with volunteer computing projects running for years.

In school, perfect numbers are a neat way to practise finding divisors, because the test forces you to list every factor of a number and add them carefully. A prime number checker and a GCD calculator use the same divisor skills, and students who can find all the divisors of 28 can handle most factor work. A prime number checker and a factorial calculator sit next to this kind of work in most maths toolboxes, and people often use two or three of them together on the same problem.

The ancient Greeks called 6 perfect because they saw the number as complete, and the idea has survived in puzzles, textbooks, and programming exercises ever since. Testing a number for perfection is a classic first program for learners, because it needs a loop, a test, and a running total, and nothing else.

Try a few values yourself once you have read the worked examples, changing one input at a time and watching how the answer moves, then check one result by hand with the method above before you trust the screen. That habit, one hand check for every new kind of problem, is what turns a quick answer into real understanding, and it catches the typing slips that no calculator can catch for you.

Perfect number checker vs a prime number checker

A perfect number checker adds up all the divisors of one number, while a prime number checker asks whether a number has any divisors at all besides 1 and itself. The two tools share the same divisor work, but they ask opposite questions about it. A Fibonacci calculator answers a different question, so the two tools complement each other rather than competing.

Use this checker when the question is whether a number equals the sum of its parts. Use a prime checker when the question is whether a number can be split at all. A prime number can never be perfect, because its only proper divisor is 1, which is far too small a sum.

Perfect numbers also sit near factorials and the Fibonacci sequence in the world of special numbers, since all three are families defined by a simple rule that produces rare and interesting members. A GCD calculator is another tool people reach for on the same kind of problem, and keeping the three together covers most everyday cases.

Common perfect number mistakes

The most common mistake is including the number itself in the sum. The proper divisors of 28 are 1, 2, 4, 7, and 14, and adding 28 gives 56, which is not the test. Proper divisors always exclude the number itself, and forgetting that word breaks the definition.

The second mistake is missing a divisor. The divisors of 28 include 14, which is easy to forget because it is large, and missing it drops the sum from 28 to 14. Listing divisors in pairs, 1 with 28, 2 with 14, 4 with 7, catches the ones that are easy to skip.

The third mistake is calling 1 perfect. The proper divisors of 1 add to 0, since 1 has no proper divisors at all, so 1 is deficient, not perfect. The smallest perfect number is 6, and there is nothing smaller.

The fourth mistake is assuming perfect numbers are common. Only four are below 10,000, and only 51 were known as of 2024, so a random number is almost certainly not perfect. If the checker says no, that is the normal answer, not a surprise.

How to use this perfect number checker

Type any whole number in the box and read the answer at once: yes or no, with the sum of the proper divisors underneath. The result updates live as you type, so try 6, 28, and 496 to see the first three perfect numbers pass the test.

Read the yes-or-no answer first, then the divisor sum. If the sum equals your number, it is perfect; if the sum is smaller, the number is deficient; if it is larger, the number is abundant. The sum tells you not just whether the number is perfect, but how close it came.

If an answer surprises you, check the input first, then run the worked example from this page through the calculator and confirm it gives the same result. When the known example is right and your own input is right, the answer is right, and that two-step check settles almost every disagreement between a person and a calculator.

Nothing you type leaves your device, so you can use the perfect number checker as often as you like, for homework, for work, or just to settle an argument. Bookmark the page and it is ready whenever the next number needs checking.

Frequently Asked Questions

A perfect number equals the sum of its proper divisors, the numbers that divide it exactly, not counting itself. 6 is perfect because 1 plus 2 plus 3 is 6, and 28 is perfect because 1 plus 2 plus 4 plus 7 plus 14 is 28.

Yes. The proper divisors of 28 are 1, 2, 4, 7, and 14, and they add up to 28 exactly: 1 plus 2 is 3, plus 4 is 7, plus 7 is 14, plus 14 is 28. That is the definition of a perfect number.

No. The proper divisors of 12 are 1, 2, 3, 4, and 6, and they add up to 16, which is more than 12. Numbers whose divisors add to more than the number are called abundant, and 12 is the smallest abundant number.

The first four perfect numbers are 6, 28, 496, and 8128. They get rare very fast: the fifth is 33,550,336. Every even perfect number known follows the form 2 to the power of p minus 1, times 2 to the power of p minus 1, where the first part is a Mersenne prime.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.