Skip to main content

Lessons by topic

Divisibility tests: rules for 2, 3, 4, 5, 9, 10 and 25

5 min read

Divisibility tests let us check whether a number is divisible by a given number without a remainder, without using long division. For 2, 5 and 10, the last digit is enough; for 4 and 25, the last two digits; and for 3 and 9, the sum of the digits.

Below you will find explanations of why each rule works, step-by-step examples and checks that help you avoid choosing the wrong rule.

First, a term: if the number aa is divisible by bb without a remainder, we call aa a multiple of bb. For example, 1818 is a multiple of 33 because 18=3⋅618 = 3 \cdot 6. Divisibility tests quickly answer precisely this question: "Is this number a multiple of the given number?"

Divisibility tests for 2, 5 and 10

All three tests look only at the last digit.

Divisibility by 2: if the number ends in an even digit (0,2,4,6,80, 2, 4, 6, 8). For example, 358358 ends in 88, so it is divisible by 2, whereas 471471 ends in an odd digit, so it is not.

Divisibility by 5: if the number ends in 00 or 55. The numbers 815815 and 2 3402\,340 are divisible, but 802802 is not.

Divisibility by 10: if the number ends in 00. This is essentially a combination of the tests for 2 and 5, since 10=2⋅510 = 2 \cdot 5.

Why is the last digit enough? Any natural number can be written in the form 10k+r10k + r (where rr is the last digit), and the 10k10k part is always divisible by 2, 5 and 10. So everything depends on rr.

Divisibility tests for 3 and 9

Both of these tests use the sum of the digits.

Divisibility by 3: if the sum of the digits is divisible by 3, the number itself is also divisible by 3.

Divisibility by 9: if the sum of the digits is divisible by 9, the number is divisible by 9.

For example, for 714714 we have 7+1+4=127 + 1 + 4 = 12. The number 1212 is divisible by 3, so 714714 is too: 714=3⋅238714 = 3 \cdot 238. But 1212 is not divisible by 9, so 714714 is not divisible by 9 either.

An important connection: every multiple of 9 is also a multiple of 3, but the converse is not always true.

Divisibility tests for 4 and 25

Now we use the last two digits, because 100100 is divisible by both 4 and 25 — the part of the number in the hundreds and higher places does not affect the test.

Divisibility by 4: if the number formed by the last two digits is divisible by 4. For example, the last two digits of 1 9361\,936 are 3636, and 36=4⋅936 = 4 \cdot 9, so 1 9361\,936 is divisible by 4.

Divisibility by 25: if the number ends in 0000, 2525, 5050 or 7575. For example, 4 7254\,725 ends in 2525, so it is divisible by 25.

A number ending in 0000 (for example, 1 3001\,300) is divisible by 4, 25 and, of course, 100: 1 300=4⋅325=25⋅521\,300 = 4 \cdot 325 = 25 \cdot 52.

Worked examples

Example 1. Determine which of the following numbers divide 4 7254\,725: 2, 3, 4, 5, 9, 10, 25.

Solution. The last digit, 55, is odd, so the number is not divisible by 2 or 10, but it is divisible by 5. The sum of the digits is 4+7+2+5=184 + 7 + 2 + 5 = 18; 1818 is divisible by 9, so the number is a multiple of both 3 and 9. Its last two digits are 2525, so it is divisible by 25, but because 2525 is not divisible by 4, the number is not divisible by 4. Check: 4 725=9⋅525=25⋅1894\,725 = 9 \cdot 525 = 25 \cdot 189. Answer: it is divisible by 3, 5, 9 and 25.

Example 2. Which of the following numbers is 2 3402\,340 a multiple of: 2, 3, 4, 5, 9, 10 and 25?

Solution. The number ends in 00, so it is divisible by 2, 5 and 10. The sum of the digits is 2+3+4+0=92 + 3 + 4 + 0 = 9, so it is also divisible by 3 and 9. Its last two digits are 4040; 40=4⋅1040 = 4 \cdot 10, so it is divisible by 4. But 4040 is not in the list 00,25,50,7500, 25, 50, 75, so the number is not divisible by 25. Check: 2 340=4⋅585=9⋅2602\,340 = 4 \cdot 585 = 9 \cdot 260. Answer: it is a multiple of all of them except 25.

Example 3. For a four-digit number of the form 73x2‾\overline{73x2} to be a multiple of 9, what must the digit xx be?

Solution. The sum of the digits is 7+3+x+2=12+x7 + 3 + x + 2 = 12 + x. This sum must be divisible by 9. Since xx is a digit, the value of 12+x12 + x ranges from 1212 to 2121, and the only number in this range divisible by 9 is 1818. Therefore, x=6x = 6. Check: 7 362=9⋅8187\,362 = 9 \cdot 818. Answer: x=6x = 6.

Example 4. How many natural numbers from 1010 to 100100, including both endpoints, are multiples of 25?

Solution. Such a number must end in 2525, 5050, 7575 or 0000. In this range, they are 2525, 5050, 7575 and 100100. Answer: 44.

Independent practice

For the number 58x6‾\overline{58x6} to be divisible by 9, what must the digit xx be? Short answer: 5+8+x+6=19+x5+8+x+6=19+x; the multiple of 9 in this range is 2727, so x=8x=8.

Common mistakes

Using the digit sum to test divisibility by 4. The digit-sum test works only for 3 and 9. For example, the digits of 2626 have a sum of 88, which is divisible by 4, but 2626 itself is not divisible by 4. For 4, always look at the last two digits.

Checking only the last digit for divisibility by 4. The number 1414 ends in 44, but the division 14:414 : 4 leaves a remainder. One digit is not enough — you need two.

Thinking "If a number is divisible by 3, it is also divisible by 9." The number 2121 is a multiple of 3 (2+1=32 + 1 = 3), but it is not divisible by 9. The reasoning works only in the opposite direction: a number divisible by 9 is also divisible by 3.

Testing divisibility by 25 only by checking whether the number ends in 55. The number 135135 is divisible by 5, but its last two digits are 3535, so it is not a multiple of 25.

Summary and next step

Read reviews in the original language