Digital Root Calculator (Casting Out Nines)

Find the digit sum and digital root of a whole number, and use casting out nines to check an addition, subtraction or multiplication.

Up to 1000 digits. Commas and spaces between digit groups are ignored.

Results

Digital root of 5,624,398
1
Digit sum (all the digits added once)
37
Add the digits until one digit is left
5 + 6 + 2 + 4 + 3 + 9 + 8 = 37 3 + 7 = 10 1 + 0 = 1
Remainder when divided by 9
1
Divisible by 9?
No

How it’s calculated

The digit sum of a number is all its digits added together. Keep adding the digits of the result until one digit is left: that single digit is the digital root. It is closely tied to dividing by 9, because a number and its digit sum always leave the same remainder when divided by 9. A digital root of 9 means the number divides exactly by 9; in that case the remainder is 0, and some textbooks write the digital root as 0 for this reason.

digital root = 1 + (n − 1) mod 9 for n ≥ 1 remainder after dividing by 9 = (digit sum) mod 9

Example: 5,624,398. 5 + 6 + 2 + 4 + 3 + 9 + 8 = 37, then 3 + 7 = 10, then 1 + 0 = 1. You can “cast out” any 9s and any digits that make 9 (5 + 4, 6 + 3, 9) first: only 2 + 8 = 10 → 1 is left.

Checking arithmetic. Replace each number by its nines remainder, do the same calculation, and compare with the remainder of your answer. For 723 + 412 = 1,135: 723 → 3 and 412 → 7, 3 + 7 = 10 → 1, and 1,135 → 1, so the check passes. For 43 × 52 = 2,136: 7 × 7 = 49 → 4, but 2,136 → 3, so 2,136 is wrong (the right answer is 2,236). A pass makes an answer likely, not certain.

Frequently asked questions

What is the digital root of a number?

The single digit you get by adding the digits, then adding the digits of that answer, and so on. For 97: 9 + 7 = 16, then 1 + 6 = 7.

Why does casting out nines work?

Each power of 10 is 1 more than a multiple of 9 (10 = 9 + 1, 100 = 99 + 1, …), so a number and the sum of its digits leave the same remainder when divided by 9. Sums and products keep those remainders.

Can casting out nines miss a mistake?

Yes. It cannot spot two digits swapped (2,136 for 2,316), a misplaced decimal point, or an answer that is off by a multiple of 9.

How do I know if a number is divisible by 9?

It is divisible by 9 exactly when its digit sum is divisible by 9, which is when its digital root is 9.

Embed this calculator

Add this free calculator to your own website. Copy the code below into your page’s HTML:

Need this calculator branded, changed or built around your own prices?See custom business solutions →

Sources

Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.

Added · Last updated · How we check our calculators

Spotted a mistake or missing option? Report a problem· Suggest a calculator