Skip to content
MasterMath

Digit Sum Calculator

Add the digits of a number and reduce to its digital root, which reveals at a glance whether it divides by 3 or by 9.

Sum of the digits

—

Sum of the digits—
Digital root—
How many digits—
Product of the digits—
Divisibility—

How this was worked out

    The rule

    digital root = keep adding the digits until one is left

    Why it works

    Adding the digits, and adding again until a single digit remains, gives the digital root. It equals the number's remainder modulo 9, with 9 standing in for 0, which is why it detects divisibility by 3 and 9 so directly.

    How to do it by hand

    1. Add all the digits together
    2. If the result has more than one digit, add again
    3. Repeat until a single digit is left
    4. A root of 3, 6 or 9 means divisible by 3; a root of 9 means divisible by 9

    What is worth knowing

    The link to 9 is not a coincidence: 10 leaves remainder 1 when divided by 9, so 100, 1000 and every power of ten do too. That means a number and its digit sum always have the same remainder modulo 9, which is exactly the divisibility test. The same fact powers casting out nines, a checking method used by merchants for centuries before calculators: if the digital roots of your operands do not match the digital root of your answer, the arithmetic is wrong. It catches most errors, though not digit transpositions, which leave the sum unchanged.

    Frequently asked questions

    What is a digital root?

    The single digit you reach by repeatedly adding a number's digits. It equals the remainder modulo 9, with 9 in place of 0.

    How does it test divisibility by 3 and 9?

    If the digit sum divides by 3, so does the number. The same applies to 9, because 10 leaves remainder 1 modulo 9.

    What is casting out nines?

    An old method of checking arithmetic using digital roots. If the roots do not match, the calculation is wrong.

    Does it catch every error?

    No. It misses transposed digits, since swapping them leaves the sum unchanged.