Try it with your numbers
Show every step
These shortcuts save time on dividing integers, reducing fractions and factoring. Each rule comes from one idea about place value, so once you see that idea you can rebuild any rule from scratch instead of memorizing it.
Divisibility rules from 2 to 12 at a glance
The table covers every divisor from to with a number that passes. Rules for and are combinations of simpler rules, and is the only one that needs real arithmetic.
| Divisor | Test | Passing example |
|---|---|---|
| Last digit is | ||
| Digit sum divisible by | (sum ) | |
| Last two digits divisible by | (since ) | |
| Last digit is or | ||
| Passes both the and tests | ||
| Rest of number minus double the last digit | () | |
| Last three digits divisible by | (since ) | |
| Digit sum divisible by | (sum ) | |
| Last digit is | ||
| Alternating digit sum is or a multiple of | ||
| Passes both the and tests |
A useful side fact: divisibility by needs the last two digits to be , , or . If you want to see these patterns as lists, the multiples of numbers 1 to 100 and the factors of numbers 1 to 100 show them directly.
Why do divisibility rules work?
Every rule rests on how place value splits a number. Take a three-digit number with digits , , . It equals , and you can regroup it around multiples of or :
The first bracket is always a multiple of , so and its digit sum leave the same remainder when divided by (or by , since divides ). The second bracket is always a multiple of , so behaves like the alternating sum . The one-line reason is that leaves remainder when divided by and remainder when divided by .
The last-digit rules use the opposite trick. Since , and are multiples of and , is a multiple of and , and is a multiple of , everything except the last one, two or three digits is already divisible. Only the tail can spoil it. In modular notation, means , and each rule is a quick way to find .
Quick check
Answer: Yes
How to use the divisibility rules for 3, 9 and 11
The digit-based rules reward a systematic habit: write the digits, do the sum, and test the sum, not the number. Here is a full test of against , and .
Example 1. Test .
- Digit sum: .
- is divisible by , so is divisible by , and therefore by .
- Alternating sum from the right: . Zero counts, so is divisible by .
- Check: and , so .
That last line is the payoff. Each passed test peels off a factor, which makes prime factorization fast.
The trap that costs the most points is mixing up which rules use digit sums. Digit sums work only for and . Students often apply the digit sum to , or directly, or conclude that a digit sum of means divisibility by . Always compare the digit sum with the divisor you are testing: is a multiple of but not of .
If the digit sum is large, add its digits again. For the sum is , then , so the number is divisible by but not by .
What is the divisibility rule for 7 and 13?

The rule for is the one that most people forget, but it follows the same logic. Write , where is the last digit and is everything before it. Then
Since is always a multiple of , and shares no factor with , is divisible by exactly when is. That is the doubling rule.
- Cut off the last digit.
- Double it.
- Subtract it from the remaining number.
- Repeat until the result is small enough to recognize, then ask whether it is a multiple of (including or a negative multiple).
For : , then . Zero is a multiple of , so . The same pattern with in place of tests .
For long numbers there is a faster route. Because , split the number into groups of three digits from the right and alternate the signs.
Example 2. Test against , and .
Since , the number is divisible by and by . It is not divisible by , because is not a multiple of . Check: .
Any number of the form equals , so it is always divisible by , and . For instance, .
Divisibility rules for 6, 12 and other composite numbers

To test a composite divisor, split it into factors that share no common factor, then test each one. A number is divisible by if it is divisible by and , and by if it is divisible by and . The pair must be coprime. Using and to test would be wrong, and this is the trap that costs the most points here.
The reason is that the product of coprime divisors divides the number, but shared factors get counted twice. A number divisible by both and is only guaranteed to be divisible by their least common multiple, which is , not . The number itself passes both tests and fails the test.
Example 3. Is divisible by ? By ?
- For , test and . Digit sum: , a multiple of . Last two digits: . Both pass, so , and .
- For , use the coprime pair and . The digit sum still passes. Last three digits: . Both pass, so , and .
The same method gives rules for (test and ), (test and ) and (test and ).
Quick check
Answer: No (for example, 30)
Do divisibility rules work for negatives and zero?
They do, with a few clarifications. A number and its opposite have identical divisors, so test the absolute value and ignore the sign. For example, is divisible by because .
Zero is divisible by every nonzero integer, because . It also passes every digit test: its digit sum is . What fails is using as the divisor, since division by zero is undefined. Also, divides everything, and every nonzero number divides itself.
Divisibility is defined for integers only. A statement like ” is divisible by ” is not used, even though , because the question asks whether the quotient is a whole number when dividing integers. The statement ” divides ” is written , which the page on what a|b means in math covers in detail.
Try this: Pick any number between and . Reverse its digits and subtract the smaller number from the larger. Test the difference for divisibility by and by . You will find it always passes both, and the regrouping from the earlier section tells you why.
How divisibility rules help with fractions and primes
The most common use is reducing fractions. To simplify , run the tests: both are even and both have digit sums divisible by ( and ). The last two digits and are multiples of , so divide by to get , then by to get , then by to get . The product is the greatest common factor, and the same reasoning drives simplifying fractions.
Divisibility rules also speed up primality testing. To decide whether is prime you only need to test primes up to . For anything under , that means just , , and .
Because , any composite number below has a prime factor of or less. Test : it fails , and , and passes, so .
That is why is a favorite trick question: it looks prime but is not. You can check any result against the prime numbers from 1 to 100.
Calendars use the same idea. A year is a leap year when:
- it is divisible by , and
- it is not divisible by , unless it is also divisible by .
So was a leap year, will not be, and will be.
How to check your arithmetic with casting out nines
Because a number and its digit sum leave the same remainder mod , you can check a multiplication of integers by replacing each number with its digit sum, reducing to a single digit, and comparing. If , the check goes:
The two results agree, so the answer is very likely right. The method also works for addition and subtraction.
The limits matter. A matching result does not prove the answer: any error that changes the result by a multiple of goes unnoticed, and swapping two digits does exactly that. A mismatch, however, always means a mistake. Treat the check as a fast filter for wrong answers, not as proof of a right one.
The same idea applies to any divisor. Check the remainder against using the alternating sum, and you catch the digit swaps that casting out nines misses. Running both checks together is a quick safeguard for hand calculations.
Quick check
Answer:
Practice problems
0 of 5 solved
- Is divisible by ?
Answer: Yes
A number is divisible by when it is divisible by both and . The last digit is even, so . The digit sum is , so . Both hold, so . - What digit makes divisible by ?
Answer:
The digit sum must be a multiple of . The sum is . The only digit that makes a multiple of is , giving . Check: . - Use the alternating sum to decide whether is divisible by .
Answer: Yes
Start from the right: . This equals . Since is a multiple of , the number is divisible by . Check: . - Use the doubling rule to decide whether is divisible by .
Answer: Yes
Remove the last digit and subtract its double from : . Repeat: . Since , the number is divisible by . Check: . - Use divisibility rules to simplify to lowest terms.
Answer:
Both digit sums equal , so divide top and bottom by : . Both pass the doubling test for ( and ), so divide by : . Both are multiples of , so divide by : .
Common questions
What are the divisibility rules for 2, 3, 4, 5, 6, 8, 9 and 10?
For 2, 5 and 10 look at the last digit. For 4 look at the last two digits and for 8 the last three. For 3 and 9 add the digits, and for 6 check that the number passes both the 2 and the 3 test.
How do you know if a number is divisible by 7?
Remove the last digit, double it, and subtract it from the remaining number. If the result is a multiple of 7 (including 0 or a negative multiple), the original number is too. Repeat the step on large numbers until the result is easy to judge.
What is the divisibility rule for 11?
Add and subtract the digits in turn, starting from either end. If the result is 0 or a multiple of 11, the number is divisible by 11. For example, 9163 gives 3 - 6 + 1 - 9 = -11, so it passes.
Is 0 divisible by every number?
Yes, 0 is divisible by every nonzero integer, because 0 = d times 0. Division by 0 itself is undefined, so 0 is not a valid divisor.
Do divisibility rules work for negative numbers?
Yes. A number and its opposite have exactly the same divisors, so test the absolute value. For example, -91 is divisible by 7 because 91 is.
Why does the digit sum test work for 3 and 9 but not for other numbers?
It works because 10 leaves remainder 1 when divided by 3 or 9, so every place value leaves remainder 1 too. For other divisors, such as 7, powers of 10 leave different remainders, so adding digits tells you nothing.