Skip to main content
Calcimator

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

Abundance0
Proper Divisor Count5
How to Use This Calculator
  1. Enter Number.
  2. Review Classification and Sum of Proper Divisors.
  3. Use Abundance and Proper Divisor Count to inform your decision.
  4. 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

  1. Identify Input Parameters
    Number = 28 = 1 input(s) provided
  2. Calculate Classification
    Perfect = Perfect
  3. Calculate Sum of Proper Divisors
    28 = 28
  4. Calculate Abundance
    0 = 0
  5. Calculate Proper Divisor Count
    Proper Divisor Count = divisors.length
    5 = 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.

The questions that sit next to this one — chosen by subject, including calculators filed under a different category.

More in Math & Statistics.