Divisor Sum Calculator
Enter a positive integer to get the sum and count of its divisors.
Result
How it is calculated
The tool finds every positive divisor of n by testing each i from 1 up to √n. Whenever i divides n, both i and its partner n / i are added, counting a perfect-square root only once. This gives σ(n), the sum of all divisors including 1 and n, and τ(n), how many divisors there are. Equivalently, if n = pa × qb × … then σ(n) is the product of (1 + p + … + pa) for each prime. The input must be a whole number from 1 to 100,000,000; decimals, zero, negatives and larger numbers give no result.
Worked example
Take n = 360. Its prime factorisation is 23 × 32 × 5. The divisor sum multiplies the parts: (1+2+4+8) × (1+3+9) × (1+5) = 15 × 13 × 6 = 1,170. The divisor count is (3+1) × (2+1) × (1+1) = 24. Since 1,170 is greater than 2 × 360 = 720, 360 is an abundant number.
Common mistakes
- Expecting the sum to exclude n itself. This σ(n) includes n, so a perfect number such as 28 shows 56, which is 2n, not 28.
- Comparing σ(n) with n instead of 2n when classifying. Perfect means σ(n) = 2n, abundant means more than 2n.
- Entering a decimal or a negative number; only positive whole numbers up to 100,000,000 are accepted.
- Mixing up the divisor count and the divisor sum, which are the two results shown. 360 has 24 divisors but they add up to 1,170.
- Counting only prime divisors. Every divisor is included, composite ones like 12 and 36 as well as 1 and n.
About this calculator
The divisor sum function, σ(n), adds up every positive divisor of an integer n, including 1 and n itself — for example, σ(12) = 1+2+3+4+6+12 = 28. It's a foundational function in elementary number theory, alongside the related divisor-count function τ(n).
σ(n) is central to classifying numbers by how their divisors compare to n itself: a perfect number satisfies σ(n) = 2n (like 6 or 28), an abundant number has σ(n) > 2n, and a deficient number has σ(n) < 2n. This calculator returns both σ(n) and the count of divisors for any positive integer.
Was this helpful?
You can pick up to 3 reactions.
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
- Loan Calculator
- Profit Calculator
- Discount Calculator
- BMI Calculator
- Percentage Calculator
- Ideal Weight Calculator
- Age Calculator
- Pregnancy Due Date Calculator
- Compound Interest Calculator
- BMR Calculator (Basal Metabolic Rate)
- Tip Calculator
- Fuel Cost Calculator
- Date Difference Calculator
- Sleep Cycle Calculator
- Daily Water Intake Calculator
- Simple Interest Calculator
- Heart Rate Zones Calculator
- Running Pace Calculator
- Pet Age Calculator
- Calories Burned Calculator
- Macro Calculator
- TDEE Calculator (Total Daily Energy Expenditure)
- Waist-to-Hip Ratio Calculator
- Honor Roll Calculator
- One Rep Max (1RM) Calculator
- Ovulation Calculator
- Electricity Cost Calculator
- Unit Price Calculator
- Savings Goal Calculator
- Break-Even Point Calculator
- Paint Calculator
- Course Grade Average Calculator
- Business Days Calculator
- Time Duration Calculator
- Fuel Economy Calculator
- Temperature Converter
- Tile Calculator
- Aspect Ratio Calculator
- Roman Numeral Converter
- Goal Weight Timeline Calculator
- Salary Converter (Hourly to Annual)
- Credit Card Validator (Luhn)
- Body Surface Area (BSA) Calculator
- Feels-Like Temperature Calculator
- Ohm’s Law Calculator
- PPI (Pixel Density) Calculator
- Molar Mass Calculator
- Zodiac Sign Calculator (Western + Chinese)
- IBAN Validator
- Shoe Size Converter
- Country Info & Dialing Code Lookup
- Time Zone Difference (World Clock)
- CAGR (Compound Annual Growth Rate) Calculator
- Rule of 72 Calculator
- Blood Alcohol Content (BAC) Calculator
- Lean Body Mass (LBM) Calculator
- Pythagorean Theorem Calculator
- Speed Converter
- Download Time Calculator
- Date Calculator (Add/Subtract)
No calculators found
Comments (1)
A quick sanity check: for a prime p the sum is p + 1 and the count is 2, and subtracting n from the sum gives the sum of its proper divisors. That is how amicable numbers show up: 220 gives 504, so its proper divisors total 284, while 284 gives 504 and returns 220. The perfect numbers 6, 28, 496, 8,128 and 33,550,336 all fit under the tool's 100,000,000 limit. Which number or family of numbers are you exploring?