Divisibility Rules from 2 to 12
☰ Contents
A divisibility rule tells you whether one number divides into another exactly, without doing the division. Each one below comes with the reason it works, because a rule you can see the reason for is a rule you can rebuild when you forget it.
What are the divisibility rules?
A number divides by 2 when its last digit is even, by 5 when it ends in 0 or 5, and by 10 when it ends in 0. It divides by 4 when its last two digits do and by 8 when its last three do. It divides by 3 or by 9 when its digits add to a multiple of 3 or of 9, and by 11 when the digits tagged + and − alternately from the right add to 0 or a multiple of 11.
| Divides by | Test | Example |
|---|---|---|
| 2 | the last digit is even | 3746 ✓ |
| 3 | the digits add to a multiple of 3 | ✓ |
| 4 | the last two digits are a multiple of 4 | ✓ |
| 5 | the last digit is 0 or 5 | 4285 ✓ |
| 6 | it passes the tests for 2 and for 3 | 738 ✓ |
| 7 | double the last digit and take it off the rest | ✓ |
| 8 | the last three digits are a multiple of 8 | ✓ |
| 9 | the digits add to a multiple of 9 | ✓ |
| 10 | the last digit is 0 | 2910 ✓ |
| 11 | tag the digits + and − from the right; the total is 0 or a multiple of 11 | ✓ |
| 12 | it passes the tests for 3 and for 4 | 9348 ✓ |
The rest of this page is the reasons. They fall into three families: the last digits, the digit sum, and the alternating sum.
Why do the last digits decide 2, 5, 10, 4 and 8?
Because ten is already a multiple of 2, 5 and 10, so every ten in a number divides by all three and only the units digit is left to check. A hundred is a multiple of 4 and a thousand is a multiple of 8, so for those two the check moves along to the last two and the last three digits.
Write 3,746 as 374 tens and 6. Every one of those tens is 10, and 10 divides by 2, so the whole block of tens divides by 2 whatever 374 happens to be. Only the 6 can break it, and 6 is even, so 3,746 divides by 2.
Eight needs one more place, for the same reason: 1000 = 8 × 125, and 100 is not a multiple of 8. So 4,312 is 4 thousands and 312, the thousands take care of themselves, and 312 = 8 × 39 settles it.
Why do the digit sums work for 3 and 9?
Because every power of ten is one more than a multiple of 9: 10 is 9 + 1, 100 is 99 + 1, and 1000 is 999 + 1. Unbundling a number that way leaves a pile of 9s, 99s and 999s — all multiples of 9 — plus the digits themselves, so the digits carry the whole remainder.
471 = 100a + 10b + c: every hundred is 99 + 1 and every ten is 9 + 1, so unbundle them and see what 9 cannot swallow
Make 342 and unbundle it
Take 471. It is 4 hundreds, 7 tens and 1. Write each hundred as 99 + 1 and each ten as 9 + 1:
- 471 = 4 × 100 + 7 × 10 + 1
- = 4 × (99 + 1) + 7 × (9 + 1) + 1
- = (4 × 99 + 7 × 9) + (4 + 7 + 1)
The first bracket is built entirely from 99 and 9, so it is a multiple of 9 and contributes nothing to the remainder. What is left is 4 + 7 + 1 = 12 — the digit sum. So 471 and 12 leave the same remainder against 9, and 471 divides by 3 exactly when 12 does.
Keep folding if the sum is still large. For 8,946 the digits add to 27, and 27 adds to 9, so 8,946 divides by 9.
How do you test for 11?
Tag the digits + and − alternately from the right and add them. If the total is 0 or a multiple of 11, so is the number. For 2,728 that is 8 − 2 + 7 − 2 = 11, so 2,728 divides by 11, and indeed 2,728 = 11 × 248.
The signs alternate because 10 is one less than 11, not one more. Ten leaves −1 against 11, a hundred leaves +1, a thousand leaves −1 again, and so on down the places. Each digit therefore counts either forward or backward, and the pattern flips at every step to the left.
How do you test for 6, 12 and 15?
Split the number you are testing for into two factors that share nothing, and apply both rules. Six is 2 × 3, so test for 2 and for 3; twelve is 3 × 4; fifteen is 3 × 5. 9,348 has digits adding to 24 and ends in 48, so it passes both halves of the 12 test, and 9,348 = 12 × 779.
The condition that the two factors share no common factor is the whole of it, and it is where this goes wrong. Twelve is also 2 × 6, but 2 and 6 are both even, so passing both proves less than it looks:
Is there a rule for 7?
There is: take the last digit off, double it, and subtract it from the number that remains. Repeat until you can see the answer. 861 gives 86 − 2 = 84, and 84 gives 8 − 8 = 0, so 861 divides by 7 — it is 7 × 123.
It works because multiplying by 10 cannot create or destroy a factor of 7. If the shortened number a − 2b divides by 7 then so does ten times it, and ten times it differs from the original 10a + b by exactly 21b — three sevens for every b.
Worth saying plainly: this is the one rule here that often costs more than the division it saves. For 861 it is quick. For a six-digit number, dividing by 7 is usually faster.
Where this fits in the ladder
Divisibility is the tool you reach for when simplifying a fraction, finding a common denominator, or hunting for prime factors — every one of those starts with "what divides this?". The lesson in the app draws the tests and then asks you to use them.
Now you
A number divides by 10…
Which of these divides by 2?
Lesson complete. Practice this lesson in the app
Related guides: Factors, Multiples and Number Theory, Division and Fractions.
Practice it in the game
Math Challenge asks these as swipe questions mixed in with the rest of the number work, and brings back the ones you miss more often.
Your turn
Three to try — tap what you get.
Does 3,417 divide by 3?
Which test settles divisibility by 4?
18 divides by 2 and by 6. Does it divide by 12?
Questions and answers
- What are the divisibility rules?
- A number divides by 2 when its last digit is even, by 5 when it ends in 0 or 5, and by 10 when it ends in 0. It divides by 4 when its last two digits do, and by 8 when its last three do. It divides by 3 or 9 when its digits add to a multiple of 3 or 9, and by 11 when the digits tagged + and - alternately from the right add to 0 or a multiple of 11. For 6 and 12, apply two rules at once.
- Why does adding the digits test for 3 and 9?
- Because every power of ten is one more than a multiple of 9: 10 is 9 + 1, 100 is 99 + 1, 1000 is 999 + 1. Unbundle 471 into 4 x 99 + 4 + 7 x 9 + 7 + 1 and the 99 and the 9 are both multiples of 9, so what is left over is 4 + 7 + 1 = 12. The digit sum carries the same remainder as the number, against 9 and against 3.
- Is there a divisibility rule for 7?
- Yes: take the last digit off, double it, and subtract it from what is left. 861 gives 86 - 2 = 84, and 84 gives 8 - 8 = 0, so 861 divides by 7. It is the one rule on this page that is often slower than the division it replaces, and for a long number it is usually quicker to divide.
- How do you test whether a number divides by 12?
- Test for 3 and for 4. 9,348 has digits adding to 24, which divides by 3, and ends in 48, which divides by 4, so it divides by 12. The pair has to share no factor: testing for 2 and for 6 is not enough, because 18 passes both and does not divide by 12.
0 / 0 right on this page
Practice this lesson in the appThat is every question on this page.
0 / 0 right. Best run: 0
The app carries on from here: practice that adapts to you, the full lesson ladder, and your progress saved.
Keep going in the app