Digital Root Calculator
This calculator works out the digital root of any whole number, the single digit left after repeatedly adding all its digits together until only one digit remains. Digital roots are used to teach modular arithmetic and number theory, and for the age-old arithmetic check called casting out nines, where a mismatched digital root flags a likely calculation error. Enter any positive whole number of any length, or pick one of the quick examples provided, and the calculator instantly returns three results: the Digital Root itself, the Sum of Digits from the first pass before further reduction, and the number of Steps taken to reach a single digit. Below the results, a step-by-step working list shows exactly how each pass added the digits, so you can follow the reduction from start to finish, and a short summary confirms the digital root and notes if the number is a multiple of 9. Only the digits of a non-negative whole number are used, so negative numbers, decimals and other characters are stripped out; for a single pass of digit addition without repeated reduction, use the separate Digit Sum Calculator instead.
1. Enter Your Number
2. About Digital Roots
The digital root is found by adding all the digits of a number together, then repeating that process on the result until only one digit remains. It is always a whole number between 0 and 9. There is also a fast shortcut: for any positive integer, the digital root is 1 + (n - 1) mod 9, which is why digital roots are closely linked to divisibility by 9.
Step-by-Step Working
How the Digital Root Is Calculated
The digital root of a whole number is found by adding together all its digits, then repeating this addition on the resulting sum, until only a single digit from 0 to 9 remains. For example, take the number 12345: adding 1 + 2 + 3 + 4 + 5 gives 15. Since 15 has more than one digit, add again: 1 + 5 gives 6. Because 6 is a single digit, the digital root of 12345 is 6.
The Shortcut Formula
Rather than adding digits repeatedly, you can use a direct formula based on modular arithmetic. For any positive whole number n, the digital root is:
digital root = 1 + (n - 1) mod 9
The one exception is n = 0, which has a digital root of 0. This formula works because 10 is congruent to 1 (mod 9), so every place value in a base-10 number contributes its digit value, unchanged, to the remainder when the whole number is divided by 9. This is also why the digital root of any multiple of 9 (other than 0 itself) is always 9, not 0.
Worked Example
| Step | Working | Result |
|---|---|---|
| Start | 12345 | 5 digits |
| Pass 1 | 1 + 2 + 3 + 4 + 5 | 15 |
| Pass 2 | 1 + 5 | 6 |
| Result | Single digit reached | Digital root = 6 |
Digital Roots and Casting Out Nines
Digital roots are the basis of an old arithmetic-checking technique called "casting out nines". Since the digital root of a number is the same as its remainder when divided by 9 (with multiples of 9 showing a root of 9 rather than 0), you can use digital roots to spot-check addition, subtraction and multiplication. If the digital root of your calculated answer does not match the digital root you would expect from combining the digital roots of the inputs, you have likely made an arithmetic error. This method will not catch every mistake (for example, transposed digits and errors that are themselves multiples of 9 can slip through), but it is a fast mental sanity check.
Common Uses
- Teaching modular arithmetic and number theory in schools
- Quick mental arithmetic checks (casting out nines)
- Recreational maths and number puzzles
- Numerology, where digital roots are given symbolic meanings (not a mathematical or scientific application)
Related Calculators
- Maths and Stats Calculators: the full hub of maths and statistics tools.
- Digit Sum Calculator: add up the digits of a number in a single pass.
- Prime Number Checker: check whether a number is prime.
- Armstrong Number Calculator: test whether a number equals the sum of its digits raised to a power.
- Harshad Number Calculator: check if a number is divisible by its digit sum.
Sources: Digital root and casting-out-nines definitions follow standard elementary number theory (modular arithmetic, mod 9 properties of base-10 numbers).
This calculator handles whole numbers of any length entered as digits. Negative numbers and decimals are not valid inputs for a digital root; only the digits of a non-negative integer are used.