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.
| Divisor | The number is divisible if… |
|---|---|
| 2 | the last digit is even (0, 2, 4, 6, 8) |
| 3 | the digits add up to a multiple of 3 |
| 4 | the last two digits form a multiple of 4 |
| 5 | the last digit is 0 or 5 |
| 6 | it is divisible by both 2 and 3 |
| 8 | the last three digits form a multiple of 8 |
| 9 | the digits add up to a multiple of 9 |
| 10 | the last digit is 0 |
| 11 | the 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
- Prealgebra 2e, §2.4 Find Multiples and Factors (divisibility tests for 2, 3, 5, 6 and 10) — OpenStax
- Divisibility Rules (rules for 4, 8, 9 and 11) — LibreTexts Mathematics (Mount Royal University)
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