ARITHMETIC WORKSHEETS

Checking divisibility by nine through a decimal digit sum

An integer and the sum of its decimal digits leave the same remainder when divided by nine. This guide shows why, tests it on 3141, and uses it to check quotients and products.

The rule and the reason it works

Every power of ten leaves a remainder of one when divided by nine. Ten is 9 plus 1, one hundred is 99 plus 1, one thousand is 999 plus 1, and so on, because numbers made only of nines are divisible by nine. A decimal number is a sum of digits times powers of ten, so each digit contributes itself plus a multiple of nine. Adding up the digits therefore gives a number with the same remainder as the original. If the digit sum is divisible by nine, so is the original number, and if the digit sum leaves remainder r, the original leaves remainder r too, after reducing the digit sum when it is 9 or more.

Testing 3141

The digits of 3141 are 3, 1, 4 and 1, and they add up to 9. Since 9 is divisible by nine, the rule says 3141 is divisible by nine. To confirm without trusting the rule, divide: the quotient is 349. The first case below multiplies 349 by 9 and gets 3141 back, which proves the division is exact. The reconstruction is the stronger evidence, because it checks the integer itself, while the digit sum only checks a property of how the integer is written. Using both together, one as a quick screen and one as proof, is a reliable pattern.

A nearby number with remainder one

Change the last digit to get 3142. Its digit sum is 3 plus 1 plus 4 plus 2, which is 10. A sum of 10 leaves remainder 1 when divided by nine, so 3142 should leave remainder 1. Indeed 3142 equals 3141 plus 1, and 3141 is a multiple of nine, so the remainder is one. The second case below adds one to 3141 to show this. Adding one to a multiple of nine always gives remainder one, and the digit sum moves from 9 to 10 in step. When a digit sum has more than one digit, add its digits again until a single digit remains. Ten becomes one, which matches.

More examples with larger numbers

Consider 7281. Its digit sum is 7 plus 2 plus 8 plus 1, which is 18, and 18 is divisible by nine, so 7281 should be too. Dividing gives 809, and 809 times 9 is 7281, so it checks out. Now take 5476, with digit sum 22. Since 22 equals 18 plus 4, the remainder should be 4. Indeed 608 times 9 is 5472, and 5476 is four more. Reducing a digit sum to a single digit gives the same answer, as 2 plus 2 is 4. This repeated reduction is sometimes called the digital root, and a digital root of 9 means the number is divisible by nine.

Casting out nines to check multiplication

Accountants and teachers once used this property to check hand arithmetic, a method called casting out nines. To check 47 times 38 equals 1786, reduce each factor: 47 has digit sum 11, which reduces to 2, and 38 has digit sum 11, which also reduces to 2. The product of the reductions is 4. The result 1786 has digit sum 22, which reduces to 4. The two agree, so the answer passes. The method catches many mistakes but not all. A transposition of digits, or an error of exactly nine, leaves the digit sum unchanged, so a passing check is evidence, not proof.

Related rules for three and for eleven

Because three divides nine, the same digit sum tells you about divisibility by three. A number is divisible by three exactly when its digit sum is, so 3141 is divisible by three as well, and 349 times 3 is 1047, which is one third of it. Nine and three are the only divisors for which the plain digit sum works in base ten. Eleven has its own rule, using an alternating sum of digits, because ten leaves remainder negative one when divided by eleven. Keeping these rules distinct matters. Using the plain digit sum to test divisibility by seven or eleven gives wrong answers.

The base of the notation matters

The nine-based test comes from the fact that the written base is ten, which is one more than nine. In base eight, the analogous rule applies to divisibility by seven, and in base sixteen it applies to fifteen. Writing the same quantity in another base changes the digits and the digit sum, so the rule cannot be applied to a hexadecimal string as if it were decimal. The test also requires digits of the integer itself. A number with a decimal point or an exponent should be converted to an integer first. Stating the base keeps the check meaningful.

Why a digit sum cannot prove everything

The digit sum carries information only about the remainder modulo nine, so many different numbers share the same value. The numbers 3141, 3150 and 3114 all have digit sum 9, 9 and 9, yet only some of them are what you meant to write. An error that moves digits around, such as typing 3114 for 3141, keeps the digit sum and passes the screen. An error that changes a digit by exactly nine, or that replaces a 0 with a 9, also passes. This explains why the test is paired with a reconstruction. If the reconstruction fails, the entry is wrong. If only the digit sum passes, the entry may still be wrong.

Using the check responsibly

A digit sum is a screening tool that is quick to run on paper, but it is no substitute for the actual division or product when the result matters. For large computed values, the calculator output is the authoritative source, and the digit sum is a second opinion that can flag an entry error. If a long number was copied by hand, comparing digit sums of the original and the copy catches many single-digit typos. The worksheet cases here use small integers so each reconstruction is simple, and the same two-step habit works at any size: screen with the digit sum, then reconstruct to confirm. For a long account number or serial code that must be a multiple of nine, the screen takes seconds, while the division takes a calculator and a moment of care. Use the faster step to decide whether the slower one is needed.

Reproduce the checks

Exact quotient reconstruction

Open the Basic calculator and enter:

First number
349
Operation
multiply
Second number
9

Expected output:

Result

3141

The product confirms divisibility.

Nearby remainder reconstruction

Open the Basic calculator and enter:

First number
3141
Operation
add
Second number
1

Expected output:

Result

3142

One added unit produces remainder one.

References and implementation scope

The examples describe the behavior of the linked Computandum tools. A successful local check does not establish that another application accepts the same format or applies the same limits.

Related tasks