Learn

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 byTestExample
2the last digit is even3746 ✓
3the digits add to a multiple of 3471 → 12
4the last two digits are a multiple of 49316 → 16
5the last digit is 0 or 54285 ✓
6it passes the tests for 2 and for 3738 ✓
7double the last digit and take it off the rest861 → 84
8the last three digits are a multiple of 84312 → 312
9the digits add to a multiple of 9738 → 18
10the last digit is 02910 ✓
11tag the digits + and − from the right; the total is 0 or a multiple of 112728 → 11
12it passes the tests for 3 and for 49348 ✓

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.

123456789101112131415161718192021222324252627282930
even numbers
A number divides by 2 when its last digit is even. Full lesson: Divisibility Tests

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.

The same sentence works for 5 and for 10, because 10 divides by both. It does not work for 4: 10 does not divide by 4, so a block of tens is not automatically safe. A block of hundreds is, because 100 = 4 × 25. So for 4 you check the last two digits, and 9,316 becomes 93 hundreds and 16 — the hundreds are free and 16 divides by 4.
123456789101112131415161718192021222324252627282930
ending 0 or 5
It divides by 5 when it ends in 0 or 5, and by 10 only when it ends in 0. Full lesson: Divisibility Tests

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.

100100100100hundreds10101010101010tens1ones471 = 100 × 4 + 10 × 7 + 1unbundle: 100 = 99 + 1, 10 = 9 + 1

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:

  1. 471 = 4 × 100 + 7 × 10 + 1
  2. = 4 × (99 + 1) + 7 × (9 + 1) + 1
  3. = (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.

This is also why the test is different for 3 and for 9 even though the arithmetic is identical. 12 divides by 3, so 471 divides by 3: 471 = 3 × 157. But 12 does not divide by 9, so neither does 471. The digit sum tells you the remainder, not just a yes or a no.

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.

A total of 0 counts: 2,013 gives 3 − 1 + 0 − 2 = 0, and 2,013 = 11 × 183. The worked version with figures is on the trick page for divisibility by 11.

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:

18 divides by 2 and by 6, and does not divide by 12. The two tests check the same factor of 2 twice over and nobody checks the second one. Splitting 12 as 3 × 4 avoids that, because 3 and 4 have no factor in common.

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

÷ 10what makes a number divide by 10?

A number divides by 10…

15, 14, 17which one divides by 2?

Which of these divides by 2?

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?

Math ChallengePractice that adapts to you, the whole lesson ladder, and your progress saved.
Practice divisibility free

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.
Mr. Chalk Practice this lesson in the app