Factor Calculator

Divisor Calculator

List every divisor of a number, plus divisor count, divisor sum, and number classification.

Divisors

Loading calculator…

A divisor of a number is any whole number that divides it exactly, with no remainder. This calculator goes beyond listing divisors — it computes the divisor count d(n), the divisor sum σ(n), the aliquot sum, and classifies the number as perfect, abundant, or deficient. For example, 120 has 16 divisors that sum to 360. For a plainer factor list, use the factor calculator.

Divisor or factor — which term is right?

For whole numbers, divisor and factor mean the same thing. The difference is only in how you're thinking about the operation:

  • Divisor — used when dividing. In 12 ÷ 3 = 4, the number 3 is the divisor.
  • Factor — used when multiplying. In 3 × 4 = 12, both 3 and 4 are factors.

Number theory tends to prefer "divisor" and uses the notation d(n) and σ(n); school arithmetic tends to prefer "factor". The list of numbers is identical either way.

The divisor count function d(n)

The divisor function d(n) — sometimes written τ(n) — tells you how many positive divisors a number has, without listing them.

The rule: take the prime factorization, add 1 to each exponent, then multiply.

Worked example — 120:

  • 120 = 2³ × 3¹ × 5¹
  • Exponents: 3, 1, 1
  • Add 1 to each: 4, 2, 2
  • Multiply: 4 × 2 × 2 = 16

So 120 has exactly 16 divisors. This works because each divisor is built by choosing a power of 2 (from 2⁰ to 2³ — four options), a power of 3 (two options), and a power of 5 (two options).

You can get any prime factorization from the prime factorization calculator.

The divisor sum function σ(n)

The divisor sum σ(n) adds every divisor together, including the number itself. There's a formula that avoids adding them one by one.

For each prime power pe in the factorization, the contribution is (pe+1 − 1) ÷ (p − 1). Multiply all the contributions.

Worked example — 12 = 2² × 3:

  • For 2²: (2³ − 1) ÷ (2 − 1) = 7 ÷ 1 = 7
  • For 3¹: (3² − 1) ÷ (3 − 1) = 8 ÷ 2 = 4
  • σ(12) = 7 × 4 = 28

Checking by hand: 1 + 2 + 3 + 4 + 6 + 12 = 28. The formula matches.

Perfect, abundant, and deficient numbers

Comparing a number to the sum of its proper divisors (all divisors except the number itself) gives a classification used throughout number theory.

TypeConditionExamples
PerfectProper divisors sum to exactly n6, 28, 496, 8128
AbundantProper divisors sum to more than n12, 18, 20, 24, 30
DeficientProper divisors sum to less than nAll primes, plus 4, 8, 9, 10

Perfect numbers are strikingly rare. Only 51 are known, the smallest being 6 (1 + 2 + 3 = 6) and 28 (1 + 2 + 4 + 7 + 14 = 28). Every one discovered so far is even, and whether an odd perfect number exists is still an open problem in mathematics.

Why perfect squares have an odd divisor count

Divisors normally come in pairs. For 12: (1, 12), (2, 6), (3, 4) — six divisors from three pairs. Because pairs come in twos, most numbers have an even divisor count.

Perfect squares break this pattern. For 36 the pairs are (1, 36), (2, 18), (3, 12), (4, 9), and (6, 6). That last pair uses 6 twice, so it contributes only one divisor. The total is 9 — odd.

This makes a neat test: a number has an odd number of divisors if and only if it is a perfect square.

Related tools

To find divisors shared between numbers, use the common factors calculator or the GCF calculator. For multiples rather than divisors, see the LCM calculator.

Frequently Asked Questions

What is a divisor?

A divisor of a number is a whole number that divides it exactly, leaving no remainder. For example, the divisors of 12 are 1, 2, 3, 4, 6, and 12. In everyday arithmetic, divisor and factor mean the same thing.

What is the difference between a divisor and a factor?

For whole numbers, divisor and factor are interchangeable — both describe a number that divides another exactly. The slight difference is in emphasis: "divisor" is used when dividing (12 ÷ 3, where 3 is the divisor), while "factor" is used when multiplying (3 × 4 = 12, where 3 and 4 are factors).

What is the divisor function d(n)?

The divisor function d(n), also written τ(n), counts how many positive divisors a number has. For example, d(12) = 6 because 12 has six divisors. It is catalogued in the OEIS as sequence A000005.

How do you calculate the number of divisors?

Take the prime factorization, add 1 to each exponent, and multiply the results. For 120 = 2³ × 3 × 5, the divisor count is (3+1) × (1+1) × (1+1) = 4 × 2 × 2 = 16. So 120 has exactly 16 divisors without needing to list them.

What is the sum of divisors σ(n)?

The divisor sum σ(n) adds up every positive divisor of a number, including the number itself. For 12: 1 + 2 + 3 + 4 + 6 + 12 = 28, so σ(12) = 28. It is OEIS sequence A000203.

What are proper divisors?

Proper divisors are all divisors of a number except the number itself. For 12, the proper divisors are 1, 2, 3, 4, and 6. Their total is called the aliquot sum, which for 12 is 16.

What is a perfect number?

A perfect number equals the sum of its proper divisors. The smallest is 6, since 1 + 2 + 3 = 6. The next are 28, 496, and 8128. Perfect numbers are extremely rare — only 51 are known, and all discovered so far are even.

What are abundant and deficient numbers?

A number is abundant when its proper divisors sum to more than the number, and deficient when they sum to less. 12 is abundant because 1 + 2 + 3 + 4 + 6 = 16 > 12. Every prime number is deficient, since its only proper divisor is 1.

How many divisors does a prime number have?

Every prime number has exactly two divisors: 1 and itself. This is the defining property of a prime. For example, 17 has only the divisors 1 and 17.

Why do perfect squares have an odd number of divisors?

Divisors normally pair up, giving an even count. A perfect square has one divisor that pairs with itself — for 36, the pair (6, 6) counts once rather than twice. That leaves an odd total: 36 has 9 divisors. Perfect squares are the only numbers with an odd divisor count.