Divisibility Rules Calculator (2 to 12) with Explanations
Check whether a number is divisible by 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 and 12 using the divisibility rules, with the digit sum, last-digit and alternating-sum checks shown.
How it works
2, 5, 10: last digit · 4: last two digits · 8: last three digits · 3, 9: digit sum · 11: alternating digit sum · 7: n → (n without last digit) − 2 × last digit · 6 = 2 and 3 · 12 = 3 and 4
Divisibility rules let you tell whether one whole number divides another without doing the division. Because 10, 100 and 1,000 are multiples of 2, 4 and 8, only the last one, two or three digits matter for those divisors. Because 10 leaves a remainder of 1 when divided by 3 or 9, a number and its digit sum share the same remainder. For 11, the powers of 10 alternate between remainders +1 and −1, so the alternating digit sum decides. For 7, removing the last digit b and subtracting 2b keeps divisibility by 7 because 10a + b and a − 2b differ by a multiple of 7. Rules for 6 and 12 combine two coprime rules.
Worked example
Take 3,960. It ends in 0, so it is divisible by 2, 5 and 10. Its last two digits 60 ÷ 4 = 15 and last three 960 ÷ 8 = 120, so 4 and 8 work. The digit sum 3 + 9 + 6 + 0 = 18 is divisible by 3 and 9, so 6 and 12 work too. The alternating sum 0 − 6 + 9 − 3 = 0 makes it divisible by 11. For 7: 3,960 → 396 → 27, and 27 is not a multiple of 7. So 3,960 is divisible by 2, 3, 4, 5, 6, 8, 9, 10, 11, 12 — 10 of the 11 divisors.
Sources: Divisibility rule — Wikipedia · Divisibility rules — Math is Fun
Frequently asked questions
What is the divisibility rule for 7?
Double the last digit and subtract it from the number formed by the remaining digits; repeat until the number is small. If the result is a multiple of 7 (including 0 or a negative multiple), so is the original. Example: 343 → 34 − 6 = 28 = 4 × 7.
Why does the digit sum 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 and the sum of its digits leave the same remainder when divided by 3 or 9.
How does the rule for 11 work?
Starting from the units digit, add and subtract the digits alternately. If the result is 0 or a multiple of 11, the number is divisible by 11: for 918,082 the alternating sum 2 − 8 + 0 − 8 + 1 − 9 = −22 is a multiple of 11.
Why can’t I check 12 with 2 and 6?
The two parts must be coprime. 2 and 6 share a factor, so 18 passes both but is not divisible by 12. Use 3 and 4 instead, which have no common factor.
Related calculators
This calculator is for educational purposes. Double-check important results before acting on them.