🧮
🧮 Math & statistics

Divisors (Factors) of a Number Calculator

Results update as you type.

Your numbers

Understanding the divisors calculator — concept and principle

The divisors (or factors) of a whole number n are all the positive whole numbers that divide n with no remainder. This calculator lists them in order, counts them, adds them up, and classifies n as perfect, abundant or deficient. Divisor lists help with arranging items in equal rows, choosing group sizes, simplifying fractions and solving number puzzles.

The 12 divisors of 72 paired upDivisors 1, 2, 3, 4, 6, 8 pair with 72, 36, 24, 18, 12, 9; 72 dots fit in an 8 by 9 rectangle; the divisors sum to 195 and 72 is abundant.Divisors of 72 come in pairs123468912182436721×72 · 2×36 · 3×24 · 4×18 · 6×12 · 8×98 rows × 9 = 72Count: 12Sum: 195without 72: 123 > 72→ abundant number
Each divisor up to √72 ≈ 8.5 has a partner above it.

How it is calculated

  1. For each i from 1 while i × i ≤ n, check whether n mod i = 0.
  2. If it does, both i and n ÷ i are divisors; when i × i = n the pair is a single divisor.
  3. Sort the list. Count is its length and Sum is σ(n), the total of all divisors including n itself.
  4. Compare the sum of the proper divisors, s(n) = σ(n) − n, with n: equal means perfect, larger means abundant, smaller means deficient.

Valid inputs are whole numbers from 1 to 10¹².

The principle

Divisors come in pairs i × (n ÷ i) = n, and in each pair one member is at most √n. So scanning up to √n finds every divisor while doing only about √n checks: for n = 10¹² that is a million steps instead of a trillion. The classification goes back to Greek mathematics, where a number was compared with the sum of its "parts". If n = p₁^e₁ × p₂^e₂ × …, the count is (e₁ + 1)(e₂ + 1)… which gives a quick check on the list length.

Worked example

  1. Input: 72. √72 ≈ 8.49, so test i = 1 to 8.
  2. Pairs found: 1 × 72, 2 × 36, 3 × 24, 4 × 18, 6 × 12, 8 × 9. (5 and 7 do not divide 72.)
  3. Sorted list: 1, 2, 3, 4, 6, 8, 9, 12, 18, 24, 36, 72; count 12. Check: 72 = 2³ × 3², so (3 + 1)(2 + 1) = 12.
  4. Sum: 195.
  5. Proper divisors sum to 195 − 72 = 123, which is greater than 72, so 72 is abundant.
How Count changes with NumberHow Count changes with Number68101214161836547290108144Example: 12Number
Each point is the calculator re-run with only “Number” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
NumberCount
186
369
548
7212
9012
10812
14415

How to read the result

An odd count means n is a perfect square, because its square root pairs with itself. Primes have exactly two divisors. Most numbers are deficient; the smallest abundant number is 12, and the only perfect numbers below 10,000 are 6, 28, 496 and 8128. A large count relative to size (such as 60, 72 or 360) makes a number easy to split into equal groups.

Common mistakes

Keep in mind: The search limit is 10¹²; above that the √n loop becomes too slow for a browser and integers approach the limits of double precision.

Frequently asked questions

Why does a square number have an odd number of divisors?

Divisors pair up as i and n ÷ i, but √n pairs with itself, leaving one unpaired divisor.

Are there odd perfect numbers?

None is known. Whether one exists is a famous open problem; every known perfect number is even.

Do negative numbers have divisors?

Yes, −2 divides 72 as well, but lists of divisors conventionally include only positive ones.

Sources: Euclid, Elements, Book VII, Definitions, and Book IX, Proposition 36 (even perfect numbers) · G. H. Hardy and E. M. Wright, An Introduction to the Theory of Numbers, Chapter 16

Checked 8 Nov 2026. Standard formulas, computed in your browser with double-precision numbers.

🧮 All math & statistics tools →🌍 Calculators by country →