Number of Divisors Calculator
Enter a whole number to find out exactly how many divisors it has.
Result
How to use
- Enter your values in the fields above.
- Press Calculate to see your result instantly.
- Use the Share button to copy a link to your result.
About this calculator
The divisor function d(n) counts how many positive integers evenly divide a whole number n. The efficient way to compute it, and the method this calculator uses, is trial division up to the square root of n: every divisor found below the square root pairs with a corresponding divisor above it, so checking only up to √n and counting both members of each pair covers every divisor without brute-forcing the full range up to n.
Number theory connects this directly to prime factorization: if n factors as p1^a1 × p2^a2 × ... × pk^ak, then d(n) equals (a1+1) × (a2+1) × ... × (ak+1), which is why highly composite numbers like 12 or 60 have disproportionately many divisors relative to their size. Students studying number theory, and programmers working on divisor-related problems in competitive programming, use this count as a basic building block.
Enter any whole number and this calculator returns its total number of positive divisors along with the underlying factor logic.
Was this helpful?
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
No calculators found
Comments (0)