StatGardenREF. DESK
Calculators/Maths/Digital root
Maths

Digital root calculator

Repeatedly sums the digits of a number until one digit remains.

Published 6 August 2026 · Updated 23 September 2026

What this calculator does

Summing the digits of a number, then summing the digits of that result, and repeating, always ends at a single digit. That endpoint is the digital root, and it is reached surprisingly quickly even for large numbers.

It is really modular arithmetic in disguise. The digital root is the remainder on division by 9, with 9 itself standing in for a remainder of zero, so 99 reaches 9 while 12345 reaches 6.

The formula

FormulaFor n > 0: digital root = 1 + (n − 1) mod 9 (0 stays 0)

The digits are summed, and the process repeats on each result until a single digit remains. Every intermediate step is shown.

TermMeaning
Digital rootThe single digit reached by repeated digit summing.
Casting out ninesThe old arithmetic check that uses this property.
Modulo 9The operation the digital root is equivalent to, with 9 replacing 0.

The inputs explained

FieldWhat to enter
Whole numberThe whole number to reduce. The sign is ignored.

When to use it

Checking arithmetic

Casting out nines catches many addition and multiplication errors.

Testing divisibility by 9

A digital root of 9 means the number divides by 9.

Recreational mathematics

Digital roots underpin a great many number tricks.

Worked examples

Every figure in the tables below is produced by this page’s own calculator at build time, so the numbers and the tool always agree. Select any row to load that scenario.

How quickly does each number reduce?

The full reduction chain for each.

Three numbers of different sizes
NumberDigital rootSteps
99999 → 18 → 9
12,345612345 → 15 → 6
493,1932493193 → 29 → 11 → 2
99 reaches 9 in two steps, via 18. The six-digit 493193 takes only three steps, going 29 then 11 then 2, which shows how fast the reduction converges even for large inputs.

Questions

Why is the digital root the remainder modulo 9?

Because summing the digits preserves the remainder on division by 9, for the same reason the divisibility rule for 9 works. Repeating until one digit remains therefore lands on that remainder, with 9 standing in for zero.

What is casting out nines?

An old check for arithmetic. Take the digital roots of the operands, perform the same operation on them, and compare against the digital root of the answer. A mismatch proves an error, though a match does not prove correctness.

Why does casting out nines miss some errors?

Because it only checks the remainder modulo 9. Any error that happens to be a multiple of 9, including transposing two digits, passes undetected. It catches most errors but not all.

Does the digital root of zero exist?

It is zero by convention, which is the one case that breaks the modulo 9 pattern. Every other multiple of 9 has a digital root of 9 rather than 0.

For divisibility rules generally, see the divisibility test calculator. For modular arithmetic, see the modular exponentiation calculator.