Perfect Number Calculator
Check if a number is perfect, abundant, or deficient by computing the sum of its proper divisors.
About this calculator
A number is classified here by comparing it to the sum of its own proper divisors — every divisor smaller than the number itself, always including 1. When that sum equals the number, the calculator labels it Perfect; the default value of 28 is one of the four smallest examples, since 1 plus 2 plus 4 plus 7 plus 14 adds back up to exactly 28. When the sum exceeds the number, it is Abundant, and Abundance reports how far over it runs; when the sum falls short, it is Deficient, and Abundance reports the shortfall as a negative figure — so Abundance is one signed number that tells you both which category applies and by how much it applies.
The divisor search only tests candidates up to the square root of the number, pairing each divisor it finds with its complement (the number divided by that divisor), which is why the search stays fast even near the ten-million ceiling this tool allows. What the tool does not attempt is any deeper classification: it will not tell you whether a perfect number is even or odd — every one discovered so far is even, but no one has proved an odd one is impossible — and it sorts every non-perfect number into simply abundant or deficient without flagging how rare true perfect numbers actually are among the integers this calculator can reach; there are only a handful below ten million.
Inputs
Results
Classification
Perfect
Sum of Proper Divisors
28
How to Use This Calculator
- Enter Number.
- Review Classification and Sum of Proper Divisors.
- Use Abundance and Proper Divisor Count to inform your decision.
- Use the chart to visualize the results and explore different scenarios by adjusting inputs.
What each input means
- Number
- Enter a positive integer to classify (1 to 10,000,000)
How this is calculated
Worked example, using the default values
- Identify Input ParametersNumber = 28 = 1 input(s) provided
- Calculate ClassificationPerfect = Perfect
- Calculate Sum of Proper Divisors28 = 28
- Calculate Abundance0 = 0
- Calculate Proper Divisor CountProper Divisor Count = divisors.length5 = 5
Engine last updated . Checked against 5 independently-derived tests — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.
Frequently Asked Questions
Why is 28 the default value, and what makes it special?
28 is the second-smallest perfect number: its proper divisors are 1, 2, 4, 7, and 14, and adding those five numbers back together produces exactly 28 again. It sits between 6, the smallest perfect number, and 496, the next one after 28.
What does the Abundance figure actually mean?
It is the difference between the sum of proper divisors and the number itself, and its sign tells you the classification directly. Zero means Perfect, a positive value means Abundant by that many, and a negative value means Deficient by that many.
How does the calculator avoid testing every number up to n as a possible divisor?
It only checks candidate divisors up to the square root of n. Whenever a divisor below that square root is found, its complement — n divided by that divisor — is added to the total at the same time, so every pair is captured with roughly half the work.
Are there many perfect numbers below the ten-million limit this tool allows?
Only four: 6, 28, 496, and 8,128. Perfect numbers get rare very quickly as numbers grow, and every one known to exist is even and tied to a specific pattern involving Mersenne primes, which is part of why they stay so scarce.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Prime Factorization Calculator
Find the prime factorization of any number. Shows all prime factors, divisors, and whether the number is prime, perfect, abundant, or deficient.
Number TheoryDivisibility Calculator
Check if one number divides another. Shows remainder, quotient, and total factor pair count.
Number TheoryChinese Remainder Theorem Calculator
Solve systems of congruences using the Chinese Remainder Theorem. Find x such that x ≡ r1 (mod m1) and x ≡ r2 (mod m2).
Number TheoryContinued Fraction Calculator
Convert a fraction to its continued fraction representation. Shows coefficients, convergents, and approximation error.
More in Math & Statistics.