Math calculator

Digital Root Calculator

Every round of addition, and the shortcut that skips them.

Add the digits until one is left

Every round shown, and the shortcut alongside.

digital root of 9,875

2

Reached after 3 rounds of adding the digits together.

Each round of addition

  1. 1Round 19 + 8 + 7 + 5 = 29
  2. 2Round 22 + 9 = 11
  3. 3Round 31 + 1 = 2

1 + (9,875 − 1) mod 9 = 2, which is the same answer without the repeated addition.

Digital root

2

the single digit left

Additive persistence

3

how many rounds it took

Divisible by 3

no

root is 3, 6 or 9

Divisible by 9

no

root is exactly 9

  • A digital root outside 3, 6 and 9 means the number is not divisible by 3.
  • Casting out nines checks arithmetic by comparing digital roots on both sides — but it never catches a transposition, because swapping two digits leaves the digit sum untouched.

Check a sum by casting out nines

Claim that a + b = c, and see whether the digital roots agree.

Root of a + b

6

from the two inputs

Root of the claim

6

from the answer given

Verdict

passes

consistent, but not proof

Actually correct?

yes

the real answer, for comparison

The digital roots agree, so the result passes the check. Passing does not prove it right — one error in nine slips through, and a transposition always does.

What this tool shows

Adding the digits until one remains always lands on 1 + (n − 1) mod 9, which is why a digital root of 9 means divisible by nine. Casting out nines uses it to check arithmetic — but a transposition escapes the test every time.

  • The digital root of any whole number
  • Each round of digit addition
  • The closed form that skips them
  • Additive persistence
  • Divisibility by three and by nine
  • Casting out nines, and what it misses
Every round shown The mod-9 shortcut Honest about its limits Divisibility by 3 and 9

The checker below shows a wrong sum passing, on purpose.

Updated 7 September 2026 · Works in any browser, no installation

Add the digits, and keep adding until one digit is left. For 9875: 9+8+7+5 = 29, then 2+9 = 11, then 1+1 = 2. The shortcut 1 + (n − 1) mod 9 gives the same 2 in one step, because ten leaves a remainder of one when divided by nine.

At a glance

Formula shown
For n > 0, the digital root is 1 + (n − 1) mod 9; the root of 0 is 0. It works because 10 ≡ 1 (mod 9), so every power of ten is congruent to 1 and a number is congruent to the sum of its digits.
Scenario support
Checking a long addition or multiplication by hand; testing divisibility by three or nine without dividing; a quick sanity check on a total.
Educational estimate
Planning support from the values you enter — not professional advice.

Why it is always mod 9

The reason is one fact: 10 leaves a remainder of 1 when divided by 9. So does 100, and 1,000, and every power of ten.

That means 300 and 3 leave the same remainder mod 9, and 40 and 4 do, and so on. Adding the digits is therefore not an approximation of the number — it is a number with the same remainder mod 9, which is why repeating it converges to something meaningful rather than to noise.

The only wrinkle is that the remainders run 0 to 8 while digital roots run 1 to 9. A multiple of nine has remainder 0 and digital root 9, not 0. That is what the “1 + (n − 1)” in the formula is fixing.

Zero is the exception: its digital root is 0, and it is the only number for which that is true.

Divisibility falls straight out

Because the digital root shares a remainder mod 9 with the number, two divisibility tests come for free.

Divisible by 9 exactly when the digital root is 9.

Divisible by 3 exactly when the digital root is 3, 6 or 9 — because 3 divides 9, so the same congruence works one level down.

There is no equivalent for 7 or 11 by this route. 10 is not congruent to 1 modulo either of them, so the digits do not sum in a useful way — the 11 test alternates signs instead, which is a different trick from the same family.

Casting out nines

An old and genuinely useful way to check arithmetic done by hand.

Take the digital root of each input, do the same operation on those small numbers, take the digital root of the result, and compare it with the digital root of the answer you got. If they disagree, the answer is wrong.

It works because digital roots respect addition and multiplication — the root of a sum is the root of the sum of the roots. So the whole calculation can be shadowed by a much smaller one running alongside it.

Before calculators this was standard practice in bookkeeping, and a ledger page would carry the check in the margin.

What the check cannot catch

The test is one-directional, and being clear about which direction matters.

A mismatch is conclusive. If the roots disagree, the arithmetic is definitely wrong. No exceptions.

A match proves nothing. Roughly one wrong answer in nine has the right digital root by coincidence and sails through.

And one error type escapes every time: a transposition. Writing 21 where you meant 12 leaves the digit sum untouched, so the root is unchanged and the check passes. Transpositions are among the commonest copying errors there are, which is a real limitation rather than a footnote — and it is exactly why account numbers use a proper check digit instead.

The calculator above lets you feed it a wrong sum on purpose, so the failure mode is something you can see rather than something you have to take on trust.

Where it gets used

Checking hand arithmetic. Still the fastest sanity check on a long addition or multiplication, and it needs no equipment.

Divisibility. Deciding whether a large number is a multiple of three or nine without dividing it.

Recreational number theory. Digital roots turn up in magic squares, in patterns in the nine times table, and in the Vedic-mathematics tradition where they are called the “beejank”.

Check digits, by contrast. Modern schemes — ISBN, IBAN, the Luhn algorithm on a card number — weight the digits by position precisely so that transpositions do change the result. They are the answer to this page's limitation.

Sources and methodology

The result and its limits are elementary number theory; these are the references.

Method. Digital roots are computed on arbitrary-precision integers, so a hundred-digit number is handled exactly rather than through a double that would have lost its low digits long before. The repeated addition and the closed form are both computed and the suite checks them against each other on every number from 1 to 2,000 — a page that showed the working from one route and the answer from another could otherwise drift without anyone noticing. That engine is verified on every change against 140 hand-written assertions, including that repeated addition and the mod-9 shortcut agree on every number from 1 to 2,000, and that an off-by-one error is caught by casting out nines in all 3,600 generated cases while a transposition is not. The count and the per-case breakdown are published on the formula verification page.

Related calculators

Where this goes next:

Prime FactorizationBreak any number into primes with the division ladder shown, the number of trial divisions reported, and the argument for why the search can stop at the square root.
ModuloAll three conventions at once, because −7 mod 3 is −1 in JavaScript and 2 in Python and a page that gives only one of those is wrong for half its readers.
Floor and CeilingFloor, ceiling and truncation side by side — because for negative numbers those are three different answers, and floor(−2.5) is −3 while truncating gives −2.
CoprimeSet coprimality and pairwise coprimality are different conditions: 6, 10 and 15 have gcd 1 and not one coprime pair. Both are reported, with the offending pairs named.
Place ValueEvery digit named and valued, in all three expanded forms and in words — including the decimals, where the first place after the point is tenths and not 'oneths'.
Prime NumberWhether a number is prime, with a divisor named when it is not and the size of the search stated when it is. Deterministic, not probabilistic.

More in Math, or browse all calculators.

Read the guide

The congruence the shortcut rests on — that ten is congruent to one modulo nine — is worked through on the Modulo Calculator.

Educational use disclaimer

This is an educational tool. Digital roots are computed on arbitrary-precision integers, so a number far beyond a calculator’s display is handled exactly.

How we calculate · Found an error? email us

Authorship & verification

Written and maintained by , a business operator who builds spreadsheet-based calculators.

What's changed (3 updates)

Published 7 September 2026

  1. Published the digital root page showing every round of addition and the closed form 1 + (n − 1) mod 9 alongside, with the suite checking the two against each other on every number from 1 to 2,000 so the working and the answer cannot drift.
  2. The casting-out-nines checker is honest about its direction: a mismatch proves an error, a match proves nothing, and a transposition escapes every time because swapping two digits leaves the digit sum untouched.
  3. Lets a reader feed it a wrong sum on purpose, so the one-in-nine failure mode is something you can watch rather than something you have to take on trust.

Add this calculator to your site

Responsive embed — and private: nothing your visitors type leaves their browser.