Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Divisibility Rules






Testing Divisibility at a Glance

Checking whether one number divides another by performing the full division works — but it is slow, especially for large numbers. For the most common divisors, patterns in the decimal digits provide an answer instantly. Each pattern is a consequence of how modular arithmetic interacts with the base-1010 place value system, compressed into a rule simple enough to apply mentally.



What Are Divisibility Rules?

A divisibility rule is a shortcut that determines whether a number is divisible by a given divisor without carrying out the division. Instead of computing 7,836÷37{,}836 \div 3 and checking for a remainder, the rule says: add the digits 7+8+3+6=247 + 8 + 3 + 6 = 24, and check whether that sum is divisible by 33. It is, so 378363 \mid 7836.

Every rule exploits the structure of base-1010 representation. A number like 5,4325{,}432 is shorthand for 5103+4102+310+25 \cdot 10^3 + 4 \cdot 10^2 + 3 \cdot 10 + 2. The behavior of the powers of 1010 under modulo determines which digit patterns reveal divisibility — and different divisors respond to different patterns.

The rules are shortcuts, not definitions. The definition of divisibility is aba \mid b when b=akb = a \cdot k for some integer — equivalently, when bmoda=0b \bmod a = 0. The rules provide fast paths to that same conclusion.

Divisibility by 2

A number is divisible by 22 if its last digit is even: 0,2,4,60, 2, 4, 6, or 88.

Since 1010 is divisible by 22, every power of 1010 is also divisible by 22. The contribution of each digit beyond the ones place — d10kd \cdot 10^k for k1k \geq 1 — is automatically a multiple of 22. Only the final digit d0d_0 remains outside that guarantee, so d0d_0 alone determines divisibility.

The number 1,7461{,}746 ends in 66 (even), so 217462 \mid 1746.

The number 3,8213{,}821 ends in 11 (odd), so 238212 \nmid 3821.

The even numbers — ,4,2,0,2,4,6,\ldots, -4, -2, 0, 2, 4, 6, \ldots — are precisely the integers divisible by 22. The odd numbers are those that leave a remainder of 11.

Divisibility by 3

A number is divisible by 33 if the sum of its digits is divisible by 33.

The reason traces to a single congruence: 101(mod3)10 \equiv 1 \pmod{3}. Every power of 1010 is also congruent to 11 modulo 33: 102110^2 \equiv 1, 103110^3 \equiv 1, and so on. A digit dd in the kkth place contributes d10kd1=d(mod3)d \cdot 10^k \equiv d \cdot 1 = d \pmod{3}. The place value drops away entirely, and only the digit itself matters. The number is congruent to the sum of its digits modulo 33.

The number 729729: 7+2+9=187 + 2 + 9 = 18, and 1+8=91 + 8 = 9. Since 393 \mid 9, the number is divisible by 33.

The number 1,2341{,}234: 1+2+3+4=101 + 2 + 3 + 4 = 10, and 1+0=11 + 0 = 1. Since 313 \nmid 1, the number is not divisible by 33.

The process can be repeated: if the digit sum is large, sum its digits again. The chain always terminates at a single digit, and that digit determines divisibility.

Divisibility by 4

A number is divisible by 44 if its last two digits form a number divisible by 44.

The number 100100 is divisible by 44, and so is every higher power of 1010. Every digit beyond the tens place contributes a multiple of 100100 — automatically a multiple of 44. Only the last two digits affect the remainder when dividing by 44.

The number 3,5163{,}516: the last two digits form 1616, and 16÷4=416 \div 4 = 4 exactly. So 435164 \mid 3516.

The number 7,2307{,}230: the last two digits form 3030, and 30÷4=7.530 \div 4 = 7.5. So 472304 \nmid 7230.

For quick mental checks, it helps to know which two-digit endings are divisible by 44: 00,04,08,12,16,20,24,28,32,36,40,44,00, 04, 08, 12, 16, 20, 24, 28, 32, 36, 40, 44, \ldots — every fourth number from 0000 onward.

Divisibility by 5

A number is divisible by 55 if its last digit is 00 or 55.

The logic is the same as for 22: since 1010 is divisible by 55, every digit beyond the ones place contributes a multiple of 55. Only the last digit matters, and the only single digits divisible by 55 are 00 and 55.

The number 4,8354{,}835 ends in 55, so 548355 \mid 4835.

The number 7,8327{,}832 ends in 22, so 578325 \nmid 7832.

This is the second simplest rule after divisibility by 1010 — a single-digit check with only two possible passing values.

Divisibility by 6

A number is divisible by 66 if it is divisible by both 22 and 33.

Since 6=2×36 = 2 \times 3 and gcd(2,3)=1\gcd(2, 3) = 1, divisibility by 66 requires passing both individual tests: the last digit must be even, and the digit sum must be divisible by 33.

The number 1,2541{,}254: last digit 44 (even — passes the 22 test), digit sum 1+2+5+4=121 + 2 + 5 + 4 = 12 (divisible by 33 — passes the 33 test). Both conditions hold, so 612546 \mid 1254.

The number 2,1352{,}135: last digit 55 (odd — fails the 22 test). No need to check the digit sum. The number is not divisible by 66.

This approach generalizes. For any composite divisor n=a×bn = a \times b where aa and bb are coprime, divisibility by nn is equivalent to divisibility by both aa and bb.

Divisibility by 8

A number is divisible by 88 if its last three digits form a number divisible by 88.

The number 1,0001{,}000 is divisible by 88 (1000=8×1251000 = 8 \times 125), and so is every higher power of 1010. Digits beyond the hundreds place contribute multiples of 1,0001{,}000 — all divisible by 88. Only the last three digits affect the outcome.

The number 53,10453{,}104: the last three digits form 104104, and 104÷8=13104 \div 8 = 13 exactly. So 8531048 \mid 53104.

The number 12,34512{,}345: the last three digits form 345345, and 345÷8=43.125345 \div 8 = 43.125. So 8123458 \nmid 12345.

This rule is harder to apply mentally than the rules for 22 or 55, since it requires dividing a three-digit number by 88. For quick estimates, checking whether the three-digit number is close to a known multiple of 88 (8,16,24,,992,10008, 16, 24, \ldots, 992, 1000) can help.

Divisibility by 9

A number is divisible by 99 if the sum of its digits is divisible by 99.

The reasoning is identical to the rule for 33: 101(mod9)10 \equiv 1 \pmod{9}, so every power of 1010 is congruent to 11 modulo 99, and each digit contributes only its face value. The number is congruent to its digit sum modulo 99.

The number 8,1278{,}127: 8+1+2+7=188 + 1 + 2 + 7 = 18, and 18÷9=218 \div 9 = 2 exactly. So 981279 \mid 8127.

The number 4,8254{,}825: 4+8+2+5=194 + 8 + 2 + 5 = 19, and 19÷9=219 \div 9 = 2 remainder 11. So 948259 \nmid 4825.

Since 9=329 = 3^2, every number divisible by 99 is automatically divisible by 33 — but not the other way around. The number 729729 is divisible by both; the number 1212 is divisible by 33 but not by 99.

Divisibility by 10

A number is divisible by 1010 if its last digit is 00.

This is the simplest rule of all. The base of the number system is 1010, so a number has no remainder when divided by 1010 exactly when the ones place is empty.

The number 5,2305{,}230 ends in 00, so 10523010 \mid 5230.

The number 5,2355{,}235 ends in 55, so 10523510 \nmid 5235.

Since 10=2×510 = 2 \times 5, divisibility by 1010 requires divisibility by both 22 and 55. The only digit that is simultaneously even and a multiple of 55 is 00 — which is why the rule reduces to a single condition.

Divisibility by 11

A number is divisible by 1111 if the alternating sum of its digits (from right to left: add, subtract, add, subtract, \ldots) is divisible by 1111.

The congruence behind the rule is 101(mod11)10 \equiv -1 \pmod{11}. Successive powers of 1010 alternate: 100=110^0 = 1, 101110^1 \equiv -1, 102110^2 \equiv 1, 103110^3 \equiv -1. Each digit's contribution to the remainder alternates in sign depending on its position.

The number 9,2739{,}273: alternating sum from the right gives 37+29=113 - 7 + 2 - 9 = -11. Since 11(11)11 \mid (-11), the number is divisible by 1111.

The number 5,8315{,}831: alternating sum gives 13+85=11 - 3 + 8 - 5 = 1. Since 11111 \nmid 1, the number is not divisible by 1111.

If the alternating sum is negative, that is fine — a negative multiple of 1111 still indicates divisibility. The result 11-11, 22-22, or 00 all confirm the number is divisible by 1111.

Combining Rules

Divisibility by a composite number can be tested by checking its coprime factors separately.

Is 2,3402{,}340 divisible by 1212? Since 12=4×312 = 4 \times 3 and gcd(4,3)=1\gcd(4, 3) = 1, check each factor independently. Last two digits: 4040, and 40÷4=1040 \div 4 = 10 exactly — divisible by 44. Digit sum: 2+3+4+0=92 + 3 + 4 + 0 = 9, divisible by 33. Both conditions hold, so 12234012 \mid 2340.

Is 8,9108{,}910 divisible by 1515? Since 15=5×315 = 5 \times 3 and gcd(5,3)=1\gcd(5, 3) = 1, check both. Last digit: 00 — divisible by 55. Digit sum: 8+9+1+0=188 + 9 + 1 + 0 = 18 — divisible by 33. Both pass, so 15891015 \mid 8910.

The coprimality condition is essential. Testing divisibility by 1212 as "divisible by 2\text{divisible by } 2 and divisible by 6\text{divisible by } 6" is not sufficient, because gcd(2,6)=21\gcd(2, 6) = 2 \neq 1. The factorization must split 1212 into coprime components — 44 and 33 — for the combined test to work.

Worked Examples

Which of 2,3,4,5,6,8,9,102, 3, 4, 5, 6, 8, 9, 10 divide 4,3204{,}320? Last digit 00: divisible by 22, 55, and 1010. Digit sum 4+3+2+0=94 + 3 + 2 + 0 = 9: divisible by 33 and 99. Since divisible by both 22 and 33: divisible by 66. Last two digits 2020: 20÷4=520 \div 4 = 5 — divisible by 44. Last three digits 320320: 320÷8=40320 \div 8 = 40 — divisible by 88. The number passes every test.

Is 7,6237{,}623 divisible by 33? Digit sum: 7+6+2+3=187 + 6 + 2 + 3 = 18. Since 3183 \mid 18, yes.

Is 7,6237{,}623 divisible by 99? Same digit sum: 1818. Since 9189 \mid 18, yes.

Is 7,6237{,}623 divisible by 66? Last digit 33 is odd, so 276232 \nmid 7623. Therefore 676236 \nmid 7623, regardless of the digit sum.

Is 31,72431{,}724 divisible by 1111? Alternating sum from the right: 42+71+3=114 - 2 + 7 - 1 + 3 = 11. Since 111111 \mid 11, yes.

Common error: testing divisibility by 1212 by checking 22 and 66 instead of 44 and 33. The number 1818 is divisible by both 22 and 66, but 121812 \nmid 18. Coprime factorization is required.

Why These Rules Work

Every divisibility rule is a consequence of how the base 1010 behaves under modular arithmetic.

A number written in decimal is dk10k+dk110k1++d110+d0d_k \cdot 10^k + d_{k-1} \cdot 10^{k-1} + \cdots + d_1 \cdot 10 + d_0. Reducing this expression modulo a divisor nn replaces each 10j10^j with its remainder modulo nn, and the pattern of those remainders determines the rule.

For n=2n = 2 or n=5n = 5: 10010 \equiv 0, so all terms except d0d_0 vanish. Only the last digit matters.

For n=4n = 4: 1000(mod4)100 \equiv 0 \pmod{4}, so all terms beyond d110+d0d_1 \cdot 10 + d_0 vanish. The last two digits determine divisibility.

For n=8n = 8: 10000(mod8)1000 \equiv 0 \pmod{8}, extending the same logic to the last three digits.

For n=3n = 3 or n=9n = 9: 10110 \equiv 1, so 10k110^k \equiv 1 for all kk. Every digit contributes its face value and nothing more. The number reduces to its digit sum.

For n=11n = 11: 10110 \equiv -1, so 10k10^k alternates between 11 and 1-1. Digits contribute with alternating signs, producing the alternating-sum rule.

Each rule is a human-readable compression of a modular identity. The modular arithmetic page develops these identities in full.