Divisibility rules use the digits of an integer to decide whether division leaves remainder zero. They work because a decimal numeral is built from powers of ten, and those powers have predictable remainders.
A rule can replace a long division calculation when only divisibility is needed. Understanding its reason is more reliable than memorising a list of unrelated digit tricks.
On this page
Read the common base-ten tests
Apply the tests to the digits of the non-negative magnitude of an integer. A negative sign does not change whether a positive integer divides it.
| Divisor | Test |
|---|---|
| 2 | The final digit is even. |
| 3 | The digit sum is divisible by 3. |
| 4 | The last two digits form a number divisible by 4. |
| 5 | The final digit is 0 or 5. |
| 6 | The number is divisible by both 2 and 3. |
| 8 | The last three digits form a number divisible by 8. |
| 9 | The digit sum is divisible by 9. |
| 10 | The final digit is 0. |
| 11 | The alternating sum of the digits is divisible by 11, including zero. |
| 12 | The number is divisible by both 3 and 4. |
Shorter numbers can be padded with leading zeros when a test asks for two or three final digits. The tests are statements about base-ten notation; a different base changes which digit shortcuts work.
Explain the last-digit and last-block rules
Write a decimal integer as , where is the final digit. The term is divisible by 2 and 5, so divisibility by either depends only on .
For 4, use with . Since 100 is divisible by 4, the last two digits determine the remainder. Similarly, 1000 is divisible by 8, so the final three digits determine divisibility by 8.
For example, 73 128 ends in 28 and 128. Both are divisible by 4, and 128 is divisible by 8. Thus 73 128 passes both tests. Testing only the final two digits for 8 would fail as a general method because 100 is not divisible by 8.
Derive the digit-sum tests
For a three-digit number,
The first two terms are divisible by 9 and therefore by 3. The original number and its digit sum have the same remainder modulo either divisor. The same reasoning extends to longer numerals because is divisible by 9 for every positive integer .
For 73 128, the digit sum is . The number is divisible by 3, but not by 9. Since it is also even, it is divisible by 6. Since it is divisible by 4 and 3, it is divisible by 12:
Place value explains the digit-sum test
Diagram explanation and exact data
Because 10 is congruent to 1 modulo 9, every non-negative power of 10 is also congruent to 1. Weighting the digits by those remainders gives the digit sum.
| Digit | Place value | Contribution modulo 9 |
|---|---|---|
| 7 | 10000 | 7 |
| 3 | 1000 | 3 |
| 1 | 100 | 1 |
| 2 | 10 | 2 |
| 8 | 1 | 8 |
The general remainder explanation and additional tests are developed in Wolfram MathWorld’s divisibility reference.
Use alternating signs for eleven
Powers of ten alternate between remainders 1 and modulo 11. That produces an alternating digit sum. For 2728, working from the right gives
Since 11 is divisible by 11, so is 2728; indeed, . Starting from the left changes only the overall sign for an even-length numeral, so divisibility is unaffected.
An alternating sum of zero also passes. The test is not “the sum must equal 11”; any integer multiple of 11, positive, negative or zero, is suitable.
Derive a useful test for seven
Write the number as . Subtract twice its final digit from the remaining prefix: . The identity
shows that the two sides have the same remainder modulo 7. Since 10 and 7 are coprime, 7 divides the original number exactly when it divides .
For 203, calculate . Since 14 is divisible by 7, so is 203, with quotient 29. A negative result is acceptable; test its magnitude. Repeating the procedure may make a large number easier to handle, but direct division can be simpler once the result is small.
Combine tests without overclaiming
Divisibility by coprime numbers implies divisibility by their product. That is why the tests for 2 and 3 combine into a test for 6, and those for 3 and 4 combine into a test for 12.
When the divisors share a factor, the guaranteed combined divisor is their LCM, not necessarily their product. A number divisible by both 4 and 6 is divisible by 12, but need not be divisible by 24. The number 12 itself is a counterexample.
Recover a missing digit and recognise a weak check
Suppose the three-digit number is divisible by 9. Its digit sum is . With , the only multiple of 9 in the possible range is 9. Thus and the number is 432. Its last two digits, 32, also make it divisible by 4.
A digit check cannot certify an arbitrary calculation. The correct product and the incorrect value 319 have the same digit sum. A remainder-nine check cannot distinguish them. Passing a necessary test is weaker than proving an answer correct.
Practice questions
- Is 5120 divisible by 8? Explain without long division.
- Find every digit for which is divisible by 9.
- A number is divisible by 4 and 6. Must it be divisible by 24?
Check your answers
- Yes. The last three digits form 120, which equals . The full quotient is 640.
- The digit sum is . It can equal 9 or 18, giving or . Both 504 and 594 are divisible by 9.
- No. The number 12 is divisible by 4 and 6 but not by 24. The guaranteed combined divisor is .
Related topics
Remainders formalises what these tests detect. Modular Arithmetic extends the same idea from divisibility to general arithmetic with remainders.
