Digit Sum Calculator

Enter a whole number to add up its digits.

A whole number of up to 1000 digits.

Try

Result

You entered999999

digit sum 27, digital root 9\displaystyle \text{digit sum } 27,\ \text{digital root } 9

Digit sum

27\displaystyle 27

Digital root

9\displaystyle 9
Show the work
  1. Digit sum

    Add up every digit of the number, each counted as its own value.

    9+9+9=279 + 9 + 9 = 27
  2. Digital root

    The digital root comes from adding the digits again and again until a single digit is left.

    2+7=92 + 7 = 9
  3. Digital root by remainder

    A number and its digit sum leave the same remainder when divided by 9, so the digit sum can stand in for nn. For a positive number the digital root is one more than the remainder of n−1n - 1 on division by 9.

    Using dr(n)=1+(n−1) mod 9dr(n) = 1 + (n - 1) \bmod 9

    1+(27−1) mod 9=1+8=9\begin{aligned} 1 + \left(27 - 1\right) \bmod 9 &= 1 + 8 \\ &= 9 \end{aligned}
  4. Result

    The digit sum is 2727 and the digital root is 99.

Worked examples