KAPREKAR.FUN

Sign up for Starlink and get €45

Fast, reliable internet at home and on the go. Sign up through our link and get €45 in cash or Starlink service credit. Terms apply.
Get €45
← All articles

The power of 9

Digital roots and casting out nines

4 min read · Updated 19 September 2026

Add up the digits of a number. If the result has more than one digit, add again. The single digit you end with is the digital root. It looks like a party trick, but it reveals the remainder after dividing by 9, gives a quick way to check arithmetic and explains why every result of Kaprekar’s routine, including 6174 and 495, is a multiple of 9.

Computing a digital root

6174 → 6 + 1 + 7 + 4 = 18 → 1 + 8 = 9

2026 → 2 + 0 + 2 + 6 = 10 → 1 + 0 = 1

There is also a formula: for any positive whole number n, the digital root is 1 + ((n − 1) mod 9). In words, it is the remainder after dividing by 9, except that multiples of 9 give 9 rather than 0.

Why digit sums reveal remainders

The reason is that 10 leaves remainder 1 when divided by 9, and so do 100, 1,000 and every other power of 10. That means:

6174 = 6·1000 + 1·100 + 7·10 + 4

≡ 6·1 + 1·1 + 7·1 + 4 (mod 9)

= 18 ≡ 0 (mod 9)

A number always leaves the same remainder mod 9 as the sum of its digits. Repeating the digit sum does not change the remainder, which is why the digital root ends up equal to it.

Casting out nines

Because digital roots behave well under addition and multiplication, they give a quick check for arithmetic. To check 347 × 86 = 29,842:

  1. Digital root of 347: 3 + 4 + 7 = 14 → 5.
  2. Digital root of 86: 8 + 6 = 14 → 5.
  3. Multiply the roots: 5 × 5 = 25 → 7.
  4. Digital root of 29,842: 2 + 9 + 8 + 4 + 2 = 25 → 7. The check passes.

Bookkeepers used this method for centuries, long before calculators. Its name comes from the habit of crossing out any digits that add up to 9, since they do not affect the result.

What the check cannot catch

Casting out nines only compares remainders, so errors that leave the remainder unchanged slip through. Swapping two digits is the classic example: 29,842 and 29,482 have the same digital root. Misplacing a zero, or an error of exactly 9, 18 or 27, will also pass. A passed check means “probably right”, not “certainly right”.

Divisibility tests from the same idea

Since a number and its digit sum leave the same remainder after dividing by 9, a number is divisible by 9 exactly when its digit sum is. The same argument works for 3, because 10 also leaves remainder 1 when divided by 3. So 6174 is divisible by both 3 and 9, and 2026 is divisible by neither.

A related test works for 11. Because 10 leaves remainder −1 when divided by 11, you alternate the signs of the digits from the right: for 6174 that gives 4 − 7 + 1 − 6 = −8, which is not a multiple of 11, so 6174 is not divisible by 11. For 1089 it gives 9 − 8 + 0 − 1 = 0, and indeed 1089 = 11 × 99.

The link with Kaprekar’s routine

Rearranging digits does not change their sum, so the descending and ascending arrangements in Kaprekar’s routine always have the same remainder mod 9. Their difference therefore has remainder 0: it is a multiple of 9. That is why every step of the routine produces a multiple of 9.

NumberDigit sumMultiple of 9?
6174189 × 686
495189 × 55
3087189 × 343
8352189 × 928

The same idea explains the 1089 trick and much of the structure in why every number reaches 6174.

Try it: pick any number, scramble its digits and subtract the smaller from the larger. The digital root of the answer will always be 9 (or the answer will be 0).

KAPREKAR.FUN

A playground for curious numbers.

info@kaprekar.fun