Home · Everyday · Arithmetic · Divisor Calculator
Divisor Calculator
All positive divisors of a number, counted and summed — the raw material of factor puzzles and aliquot sequences.
What this calculator does
All positive divisors of a number, counted and summed — the raw material of factor puzzles and aliquot sequences. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.
The formula and method
All inputs are whole numbers; the tools use exact integer arithmetic.
Factorisations are found by trial division up to the square root, which is exact for the sizes accepted here.
The Euclidean algorithm replaces the larger number by the remainder until it reaches zero.
Worked example
With the example inputs this page opens with (integer n 12), the result is 6 — number of divisors of 12. All 6 positive divisors: 1, 2, 3, 4, 6, 12. The headline figure is the count.
Quick reference
| Integer n | Number of divisors of 12 |
|---|---|
| 6 | 4 |
| 9.6 | 4 |
| 12 | 6 |
| 15 | 4 |
| 18 | 6 |
| 24 | 8 |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
How does the Divisor Calculator work?
All positive divisors of a number, counted and summed — the raw material of factor puzzles and aliquot sequences. Integer n → Divisors. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.
What inputs does the Divisor Calculator need?
Integer n → Divisors. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.
Is the Divisor Calculator free to use?
Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.