Digit Sum Calculator

Add the digits of a number, reduce it to a digital root and test divisibility with it.

Digit sum
Adjust the inputs

Your result updates live as you type.

Adding the digits of a number seems like a trivial operation, but it carries real information because of how base ten works. Ten leaves a remainder of one when divided by nine, and so does every power of ten. That means a number and its digit sum always leave the same remainder when divided by nine, which is why the digit sum tests divisibility by nine and by three.

Repeat the digit sum until one digit remains and you have the digital root. It equals the number modulo nine, with nine standing in for zero. Accountants once used this as casting out nines, a quick check on long addition and multiplication: if the digital roots of the operands do not combine to the digital root of the answer, there is an error somewhere. It catches most slips, though not a transposition, since swapping digits leaves the sum unchanged.

The formula

digit sum = Σ digits  ·  digital root = 1 + ((n − 1) mod 9)
n
The number whose digits are being added
Σ digits
The digits added once
digital root
The result of repeating that until one digit remains
mod 9
The remainder on division by nine, which the digital root reproduces

How it works, step by step

  1. Enter a whole number.
  2. The gauge shows the sum of its digits.
  3. The digital root below reduces that to a single digit.
  4. A digit sum divisible by three or nine means the number is too.

Worked examples

987,654 digit by digit

9 + 8 + 7 + 6 + 5 + 4 = 39, and 39 reduces to 12 then to 3. A digital root of 3 means the number is divisible by three but not by nine, and indeed 987654 ÷ 3 = 329,218.

Casting out nines as a check

To check 4,821 × 37 = 178,377, take digital roots: 4,821 gives 6 and 37 gives 1. Their product 6 has digital root 6, matching the root of 178,377, which is 6. The answer survives the check.

How to read your score

0–10Single-digit sumAlready the digital root, so no further reduction is needed.
10–25ModestA typical sum for a number of four to six digits.
25–45HighThe digits skew large, or the number is a long one.
45–—Very highA long number made largely of eights and nines.

Frequently asked questions

Why does the digit sum test divisibility by nine?

Because every power of ten leaves remainder one when divided by nine. A number is therefore congruent to the sum of its digits modulo nine, so if the digit sum divides by nine, so does the number.

What is a digital root used for?

Casting out nines — a fast sanity check on hand arithmetic. It also appears in checksum schemes, though modern ones use weighted sums because a plain digit sum misses transpositions.

Does it catch every arithmetic error?

No. It misses any error that changes the value by a multiple of nine, including swapping two digits. It is a filter that catches most slips cheaply, not a proof of correctness.

Is there a shortcut to the digital root?

Yes: it is 1 + ((n − 1) mod 9) for any positive n, so no repeated summing is needed. Zero is the only number with a digital root of zero.

Digit sums and roots

Reduction and what the root reveals
NumberDigit sumDigital rootDivisible by
12333 only
991899 and 3
123663 only
9992799 and 3
4,8211563 only
987,6543933 only
1,000,00011neither

The digital root equals the number modulo nine, with nine used in place of zero.

Related calculators