Digital Root & Digit Sum Calculator

Digital Root & Digit Sum Calculator

Emerging AI Skill PRO

Enter Calculation

Formula

S=∑i=1kdi,DR={0S=01+((S−1)mod9)S>0where{di=the i-th digit of Numberk=digit count of Number\begin{gathered} S = \sum_{i=1}^{k} d_i, \qquad DR = \begin{cases} 0 & S = 0 \\ 1 + \left((S - 1) \bmod 9\right) & S > 0 \end{cases} \\[1.5em] \text{where}\quad \left\{ \begin{aligned} d_i &= \text{the } i\text{-th digit of } \text{Number} \\ k &= \text{digit count of } \text{Number} \end{aligned} \right. \end{gathered}
Usage stats

Advertisement

Results

Digital Root
9
single-digit repeated digit sum
Digit Sum 18
Number of Digits 2

Report an error on this page

What Is a Digit Sum and Digital Root?

The digit sum of a number is simply the total you get by adding all of its individual digits together. The digital root goes one step further: you keep adding the digits repeatedly until only a single digit (1 through 9) remains. This calculator gives you both at once for any whole number.

Repeated digit-sum reduction of a number down to a single digit
Repeatedly summing digits until one digit remains gives the digital root.

How to Use It

Type any whole number into the box and submit. The calculator returns the digital root as the headline figure, plus the one-pass digit sum and the count of digits. Commas and other separators are ignored, so you can paste large numbers freely.

The Formula Explained

The slow way to find a digital root is to add digits over and over. The fast way uses modular arithmetic: for any positive integer n, the digital root equals

$$DR = 1 + \left((n - 1) \bmod 9\right)$$

This works because a number and its digit sum always leave the same remainder when divided by 9. A digital root of 9 indicates the number is divisible by 9, and a digital root of 0 only occurs for the number 0 itself.

$$S = \sum_{i=1}^{k} d_i, \qquad DR = \begin{cases} 0 & S = 0 \\ 1 + \left((S - 1) \bmod 9\right) & S > 0 \end{cases}$$
Advertisement
Number wheel of digits 1 through 9 cycling repeatedly
Digital roots cycle through 1 to 9, matching \(1 + (n-1) \bmod 9\).

Worked Example

Take 12345. The digit sum is

$$1 + 2 + 3 + 4 + 5 = 15$$

Adding again, \(1 + 5 = 6\), so the digital root is 6. Using the formula on the digit sum:

$$1 + (15 - 1) \bmod 9 = 1 + (14 \bmod 9) = 1 + 5 = 6$$

Both methods agree.

Advertisement

Digit Sum vs Digital Root for Different Numbers

The digit sum \(S\) adds every base-10 digit of a whole number once. The digital root \(DR\) repeats that process until a single digit remains. For \(S > 0\) it equals \(1 + ((S - 1) \bmod 9)\), and for \(S = 0\) it equals 0. The table below compares both values for several numbers.

Number Digit count Digit sum Digital root
7 1 7 7
99 2 18 9
999 3 27 9
1000 4 1 1
987654321 9 45 9
0 1 0 0

How to read the results

  • 99: \(9 + 9 = 18\), then \(1 + 8 = 9\). Using the formula: \(1 + ((18 - 1) \bmod 9) = 1 + (17 \bmod 9) = 1 + 8 = 9\).
  • 999: \(9 + 9 + 9 = 27\). Then \(1 + ((27 - 1) \bmod 9) = 1 + (26 \bmod 9) = 1 + 8 = 9\).
  • 1000: \(1 + 0 + 0 + 0 = 1\), so the digital root is also 1.
  • 987654321: \(9+8+7+6+5+4+3+2+1 = 45\). Then \(1 + ((45 - 1) \bmod 9) = 1 + (44 \bmod 9) = 1 + 8 = 9\).
  • 0: The digit sum is 0, so the digital root is defined as 0.

Any positive multiple of 9 has a digital root of 9, as 99, 999 and 987654321 show. Numbers whose digit sum is already a single digit, like 7 and 1000, have a digital root equal to their digit sum.

FAQ

What is the digital root of a multiple of 9? It is always 9 (except for 0 itself).

Is the digit sum the same as the digital root? Not always. The digit sum is one pass of addition; the digital root repeats until a single digit remains. For numbers under 10 they are equal.

Why is the digital root useful? It is a quick divisibility test for 3 and 9, and it underpins the classic "casting out nines" method for checking arithmetic.

Last updated:

Most popular in Math and Statistics

View all Math and Statistics calculators