Digit Sum Calculator

Enter a whole number to add up its digits.

A whole number of up to 1000 digits.

Try

Result

You entered98759875

digit sum 29, digital root 2\displaystyle \text{digit sum } 29,\ \text{digital root } 2

Digit sum

29\displaystyle 29

Digital root

2\displaystyle 2
Show the work
  1. Digit sum

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

    9+8+7+5=299 + 8 + 7 + 5 = 29
  2. Digital root

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

    2+9=111+1=2\begin{gathered} 2 + 9 = 11 \\ 1 + 1 = 2 \end{gathered}
  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+(29−1) mod 9=1+1=2\begin{aligned} 1 + \left(29 - 1\right) \bmod 9 &= 1 + 1 \\ &= 2 \end{aligned}
  4. Result

    The digit sum is 2929 and the digital root is 22.

Worked examples