Divisibility Rules Calculator (2, 3, 4, 5, 6, 8, 9, 10, 11)

Test whether a number is divisible by 2, 3, 4, 5, 6, 8, 9, 10 or 11 and see the quick rule and working for each one, without long division.

A whole number up to 60 digits. Commas or spaces between groups of digits are fine. A minus sign is ignored.

Results

123,456 is divisible by
2, 3, 4, 6, 8
Not divisible by
5, 9, 10, 11
Working for each rule (YES or NO)
YES, 2: Rule: the last digit is 0, 2, 4, 6 or 8. The last digit is 6, which is even. YES, 3: Rule: the digits add up to a multiple of 3. digit sum: 1 + 2 + 3 + 4 + 5 + 6 = 21; 21 ÷ 3 = 7. YES, 4: Rule: the number made by the last two digits is a multiple of 4. Last two digits: 56 → 56 ÷ 4 = 14. NO, 5: Rule: the last digit is 0 or 5. The last digit is 6. YES, 6: Rule: divisible by both 2 and 3. Divisible by 2; divisible by 3. YES, 8: Rule: the number made by the last three digits is a multiple of 8. Last three digits: 456 → 456 ÷ 8 = 57. NO, 9: Rule: the digits add up to a multiple of 9. digit sum: 1 + 2 + 3 + 4 + 5 + 6 = 21; 21 ÷ 9 = 2 remainder 3. NO, 10: Rule: the last digit is 0. The last digit is 6. NO, 11: Rule: add and subtract the digits alternately starting from the right; the result must be 0 or a multiple of 11. 6 − 5 + 4 − 3 + 2 − 1 = 3, which is not a multiple of 11.
Sum of the digits
21

How it’s calculated

A divisibility rule is a quick test that tells you whether one number divides another exactly, without doing the division. They look only at the digits, which works because our number system is based on 10.

DivisorThe number is divisible if…
2the last digit is even (0, 2, 4, 6, 8)
3the digits add up to a multiple of 3
4the last two digits form a multiple of 4
5the last digit is 0 or 5
6it is divisible by both 2 and 3
8the last three digits form a multiple of 8
9the digits add up to a multiple of 9
10the last digit is 0
11the digits, added and subtracted alternately from the right, give 0 or a multiple of 11

Why they work: 10, 100 and 1000 are all multiples of 2 and 5, and 100 is a multiple of 4, 1000 is a multiple of 8, so only the last few digits matter for those divisors. Since 10 leaves remainder 1 when divided by 3 or 9, each digit contributes only itself, which is why the digit sum works for 3 and 9. Powers of 10 alternate between remainder 1 and −1 for 11.

Example: 123,456. It ends in 6 (even), so divisible by 2. Digit sum 1 + 2 + 3 + 4 + 5 + 6 = 21, a multiple of 3 but not of 9, so divisible by 3 but not 9. Because it divides by 2 and 3, it divides by 6. Last two digits 56 = 4 × 14, so by 4. Last three digits 456 = 8 × 57, so by 8. It does not end in 0 or 5. Alternating sum from the right: 6 − 5 + 4 − 3 + 2 − 1 = 3, not a multiple of 11. So 123,456 is divisible by 2, 3, 4, 6 and 8.

Frequently asked questions

What is the divisibility rule for 7?

There is a trick (double the last digit and subtract it from the rest, repeating), but it is slower than dividing, so this page covers the rules that are quick: 2, 3, 4, 5, 6, 8, 9, 10 and 11.

Why does the digit sum test work for 3 and 9?

Every power of 10 is one more than a multiple of 9 (10 = 9 + 1, 100 = 99 + 1, …), so a number has the same remainder as its digit sum when divided by 9 or by 3.

Can I check a negative number?

Yes. Divisibility does not depend on the sign, so the minus sign is ignored.

Is 0 divisible by these numbers?

Yes. 0 = 0 × any number, so zero is divisible by every non-zero number.

Embed this calculator

Add this free calculator to your own website. Copy the code below into your page’s HTML:

Need this calculator branded, changed or built around your own prices?See custom business solutions →

Sources

Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.

Added · Last updated · How we check our calculators

Spotted a mistake or missing option? Report a problem· Suggest a calculator