Digit Sum & Digital Root Calculator

Add up the digits of a number, repeat to find its digital root, and see the alternating digit sum, digit product and digit frequencies.

Whole numbers up to 10,000 digits. Commas, spaces and a minus sign are ignored.
Digital root
2after 3 rounds of adding
Number of digits
7
Alternating digit sum
−6ones − tens + hundreds − …
Product of digits
60,480
Remainder when ÷ 9
2same as digital root mod 9
Divisible by 3? by 9?
No; No
Digit sum38digital root 2

Show the work

  1. Add the digits of 4,829,357: 4 + 8 + 2 + 9 + 3 + 5 + 7 = 38. The digit sum is 38.
  2. Add again: 3 + 8 = 11.
  3. Add again: 1 + 1 = 2.
  4. A single digit remains, so the digital root is 2.
  5. Shortcut check: digital root = 1 + ((digit sum − 1) mod 9) = 1 + ((38 − 1) mod 9) = 2.
How often each digit appears
DigitCountContribution to the sum
212
313
414
515
717
818
919

The digit sum of a number is just the total of its digits — simple enough to do in your head, yet surprisingly powerful. It decides divisibility by 3 and 9, powers the old “casting out nines” check for arithmetic, and repeated until one digit remains, it gives the digital root. This calculator handles numbers up to 10,000 digits and shows each round of adding.

How to use the digit sum calculator

  1. Type a whole number. Commas, spaces and a leading minus sign are ignored.
  2. Read the digit sum and the digital root on the tape, along with the number of digits, the alternating digit sum, the product of the digits, the remainder when divided by 9 and the 3-and-9 divisibility verdicts.
  3. The steps show each round of adding, and the table below counts how often each digit appears.

Digit sum and digital root formulas

For a number with digits dk … d1d0:

digit sum S(n) = d0 + d1 + … + dk

The digital root repeats the digit sum until one digit is left, and it can be computed directly:

dr(n) = 1 + ((n − 1) mod 9) for n > 0, and dr(0) = 0

The alternating digit sum, d0 − d1 + d2 − …, plays the same role for 11 that the ordinary digit sum plays for 9.

Worked example

Take 4,829,357.

Digit sum: 4 + 8 + 2 + 9 + 3 + 5 + 7 = 38.

Again: 3 + 8 = 11.

Again: 1 + 1 = 2, a single digit, so the digital root is 2.

Shortcut check: 1 + ((38 − 1) mod 9) = 1 + 1 = 2 ✓. And 4,829,357 ÷ 9 = 536,595 remainder 2, matching the digital root.

Divisibility: 38 is not a multiple of 3, so the number is not divisible by 3 or 9.

Why the digit sum works

Every power of 10 leaves a remainder of 1 when divided by 9, because 10 = 9 + 1, 100 = 99 + 1, and so on. So a number such as 4,829,357 = 4·106 + 8·105 + … + 7 leaves the same remainder as 4 + 8 + … + 7. Repeating the digit sum preserves that remainder at every step, which is why the digital root equals the remainder mod 9 (written as 9 instead of 0 for multiples of 9).

That single fact explains three familiar tricks:

  • Divisibility by 3 and 9: a number is divisible by 9 exactly when its digital root is 9, and by 3 when its digital root is 3, 6 or 9.
  • Casting out nines: to check 487 × 36 = 17,532, compare digital roots: dr(487) = 1, dr(36) = 9, and 1 × 9 = 9; dr(17,532) = 9. They match, as they must for a correct product.
  • Number puzzles: “think of a number, scramble its digits and subtract” always produces a multiple of 9, because scrambling keeps the digit sum the same.

Digital roots of special numbers

Numbers Digital roots
Multiples of 9 always 9
Perfect squares only 1, 4, 7 or 9
Perfect cubes only 1, 8 or 9
Powers of 2 cycle 1, 2, 4, 8, 7, 5
Even perfect numbers above 6 always 1

The square and cube rows give a quick test: a number whose digital root is 2, 3, 5, 6 or 8 cannot be a perfect square.

The divisibility rules checker applies the digit-sum test alongside rules for 2 through 13. For exact remainders, use the modulo calculator, and to see what each digit is worth, try the place value calculator.

Frequently asked questions

What is the difference between a digit sum and a digital root?

The digit sum adds the digits once: 4,829,357 gives 38. The digital root keeps adding until a single digit is left: 38 → 11 → 2. Both are useful, but only the digit sum can be large.

Is there a shortcut for the digital root?

Yes. For a positive whole number n, the digital root is 1 + ((n − 1) mod 9), which equals n mod 9 except that multiples of 9 give 9 instead of 0. So the digital root is really the remainder after dividing by 9.

What is casting out nines?

A traditional check for arithmetic. Replace each number in a sum or product by its digital root, do the same operation, and compare with the digital root of your answer. A mismatch proves a mistake; a match makes an error unlikely.

Do signs and decimal points matter?

A minus sign is ignored, since only the digits count. If you include a decimal point, it is ignored too and all digits are added, which is how digit sums are normally applied to decimals.

Last reviewed October 2026 by the CalcFluent editorial team. How we check our calculators.