Divisibility Test Calculator: Test Any Number Fast
A teacher writes 360 on the board and asks which numbers from 2 to 13 divide it with nothing left over. A divisibility test calculator answers that in one run, listing 2, 3, 4, 5, 6, 8, 9, 10 and 12, and showing the step behind each one.
This page gives a free tool with five modes, the steps shown with every answer, and the exact numbers behind each result, so a student can check homework fast. The divisibility test calculator on this page gives the answer with the rule and the check together.
One whole number up to 15 digits. Example: 360 is divisible by 2, 3, 4, 5, 6, 8, 9, 10 and 12.
Using the Divisibility Test Calculator
The divisibility test calculator on this page is a divisibility calculator and a number divisibility checker in one: type one number and it tests every rule from 2 to 13 with the steps shown. It also works as a divisible by calculator, so you can pick one divisor and see its rule and steps alone.
Test One Number
Type one whole number, and the tool tests all twelve rules from 2 to 13. It shows a pass or fail row for each rule, the step behind it, and the quotient or remainder. The default is 360, which is divisible by 2, 3, 4, 5, 6, 8, 9, 10, and 12, but not by 7, 11, or 13. Dividing 360 by 7 leaves a remainder of 3.
Test One Divisor
Type a number and one divisor from 2 to 13. The tool shows the rule for that divisor and works through it step by step on your number. The default is 1001 by 7: 100 minus 2 equals 98, and 98 equals 14 times 7, so 1001 is divisible by 7.
Test a List
Paste several whole numbers separated by commas, spaces, or new lines, and pick one divisor. The tool tells you which numbers divide evenly, showing the quotient or remainder for each. The default numbers are 34014, 636, and 1790, tested by 2. All three divide evenly.
Find the Missing Digit
Type a number with one blank, written as an underscore, and pick a divisor. The tool finds every digit from 0 to 9 that makes the number divisible, showing the digit-sum working for each. The default is 3_6 by 9, which gives 0 and 9, producing 306 and 396.
Build a Composite Test
Type a number and a composite divisor such as 14, 15, 18, 24, or 36. The tool splits the divisor into parts that share no common factor, tests each part, and combines the answers. The default is 360 by 24, which passes 8 and 3, so 360 divided by 24 is 15. It also shows a common trap: 12 passes both 4 and 6, yet 12 is not divisible by 24.
Worked Examples
These worked examples are the same ones the tool uses as defaults.
| Example | Answer |
|---|---|
| 360 tested against 2 to 13 | Divisible by 2, 3, 4, 5, 6, 8, 9, 10, 12 |
| 1001 tested against 2 to 13 | Divisible by 7, 11, 13 only |
| 126 tested against 2 to 13 | Divisible by 2, 3, 6, 7, 9 |
| 3_6 by 9 | 0 and 9 (306, 396) |
| 360 by 24 | Passes 8 and 3, 360 divided by 24 is 15 |
Reading the Result
Every answer here is a yes or a no, with the quotient shown when the number divides evenly and the remainder shown when it does not, so you can see how far off it is. A divisor of 0 is never allowed, and a decimal input is out of scope because divisibility is defined for whole numbers only.
What Is Divisibility
A number a is divisible by a number b when dividing a by b leaves a remainder of 0. The divisor b can never be 0. A number divides evenly when the remainder is zero.
The divisibility test calculator on this page uses this remainder-is-zero idea for every mode, so each answer is always a yes or a no backed by a quotient or a remainder.
The sign of a number does not matter. Test the size of the number, so -126 passes exactly the same checks as 126. Only whole numbers are accepted because a decimal has no remainder in this sense and is outside the scope of this tool.
The Remainder-Is-Zero Idea
24 divided by 4 is 6 with remainder 0, so 24 is divisible by 4. However, 24 divided by 5 is 4 with remainder 4, so 24 is not divisible by 5.
How to Check Divisibility
Start by looking at the number, then pick the divisor you want to check. Apply its shortcut and read the result as yes or no. The divisibility test calculator on this page follows the same steps and shows which shortcut it used.
A test of divisibility is a shortcut that answers yes or no without doing the full division. Each shortcut looks at only a few digits, which makes it faster than long division.
Divisibility by 2
Look at the last digit: if it is 0, 2, 4, 6, or 8, the number passes the check for 2. For example, 128 ends in 8, so it passes, while 123 ends in 3, so it does not.
Divisibility by 3
Add the digits: if their sum is divisible by 3, the number passes the check for 3. For example, 123 gives 1 + 2 + 3 = 6, so it passes, while 124 gives 1 + 2 + 4 = 7, so it does not.
The same idea covers 4 and 5. For 4, look at the last two digits: 1324 ends in 24, and 24 divided by 4 is 6. For 5, look at the last digit: 785 ends in 5, so it passes.
Divisibility Rules for 2 to 5
The divisibility test calculator on this page applies these four rules first because they are the quickest. Each one looks at only one or two digits, making the checks simple to follow.
The divisibility rule for 3 is the digit-sum test: add the digits, and if the sum is divisible by 3, the number is too.
| Divisor | Rule | Example |
|---|---|---|
| 2 | Last digit even | 128 ends in 8 |
| 3 | Digit sum divisible by 3 | 123: 1 + 2 + 3 = 6 |
| 4 | Last two digits divisible by 4 | 1324: last two 24, 24 divided by 4 is 6 |
| 5 | Last digit 0 or 5 | 785 ends in 5 |
These four tests are the ones students meet first, and they are enough for most small numbers. The next section adds 6, 8, 9, and 10.
The Rules for 6 to 10
The divisibility test calculator on this page checks 6, 8, 9, and 10 the same way, one rule at a time, with the working shown for each result.
The test for 6 needs two passes at once: the number must pass the test for 2 and the test for 3. For example, 72 is even and its digit sum is 9, so it passes both and is divisible by 6.
The test for 8 looks at the last three digits. For 7120, the last three digits are 120, and 120 divided by 8 is 15, so it passes. For 1512, the last three digits are 512, and 512 divided by 8 is 64.
Divisibility by 9 uses the same digit sum as 3. For example, 729 has a digit sum of 18, and 18 divided by 9 is 2, so it passes. Any number whose digit sum is divisible by 9 is also divisible by 3, but not the other way around: 123 has a digit sum of 6, so it passes 3 and fails 9.
The test for 10 looks at the last digit only. For example, 340 ends in 0, so it passes. A number ending in 5 passes 5 but fails 10.
2520 is the smallest positive integer divisible by all numbers from 1 to 10, and it is also divisible by 12.
The Tricky Rules: 7, 11 and 13
The divisibility test calculator on this page shows every step for the three harder rules because these are the ones students often get wrong when working by hand.
The Divisibility Rule for 7
Divisibility by 7 is the hardest of the twelve checks to do by hand, so the tool shows every step. Double the last digit, subtract it from the remaining digits, and repeat until the number is small.
For example, 161 gives 16 minus 2 = 14, so it passes. For 2051, 205 minus 2 = 203, then 20 minus 6 = 14, so it passes. For 12264, 1226 minus 8 = 1218, then 121 minus 16 = 105, and 105 = 15 times 7, so it passes.
The Divisibility Rule for 11
Add and subtract the digits in turn, starting from the left. If the result is divisible by 11 or is 0, the number passes. For example, 121 gives 1 minus 2 plus 1 = 0, so it passes. Similarly, 1364 gives 1 minus 3 plus 6 minus 4 = 0, so it passes. However, 2143 gives (2 + 4) minus (1 + 3) = 2, so it does not pass.
For 13, divisibility by 13 uses the same idea in reverse: add 4 times the last digit to the remaining digits, then repeat until the number is small. For example, 1001 gives 100 plus 4 = 104, then 10 plus 16 = 26, and 26 = 2 times 13, so it passes. For 5096, 509 plus 24 = 533, then 53 plus 12 = 65, and 65 = 5 times 13, so it passes. The same rule also works backwards: subtract 9 times the last digit, so 1001 gives 100 minus 9 = 91, and 91 = 7 times 13. The block method also works for 2197: 2 minus 197 = -195, and 195 divided by 13 is 15, so it passes.
Composite Divisors
The divisibility test calculator on this page builds a composite test from coprime parts, so one check answers a harder divisor.
A number is divisible by a product only when its parts share no common factor. The combination 24 = 8 times 3 works because 8 and 3 share no factor: 360 passes both 8 and 3, and 360 divided by 24 is 15. But 24 = 4 times 6 does not work because 4 and 6 share the factor 2. For example, 12 passes both 4 and 6, yet 12 is not divisible by 24.
126 by 14: 14 = 2 times 7, and 126 divided by 14 is 9. 360 by 15: 15 = 3 times 5, and 360 divided by 15 is 24. 126 by 18: 18 = 2 times 9, and 126 divided by 18 is 7. 2520 by 36: 36 = 4 times 9, and 2520 divided by 36 is 70.
The Missing-Digit Trick
The divisibility test calculator on this page finds the missing digit by working with the digit sum, so every answer comes with its reason.
For 3_6 by 9, the digit sum is 9 + x, and it must be divisible by 9. Therefore, x can be 0 or 9. This gives 306, and 306 divided by 9 is 34; or 396, and 396 divided by 9 is 44.
For 2_4 by 3, the digit sum is 6 + x, and it must be divisible by 3. Therefore, x can be 0, 3, 6, or 9. This gives four possible numbers: 204, 234, 264, and 294.
Why the Rules Work
The divisibility test calculator on this page uses the same three mathematical facts in every mode. Knowing these facts helps explain why each shortcut works and how the rules connect to ordinary division.
10 leaves remainder 1 when divided by 3 or 9, so each place value contributes exactly its digit to the remainder. That is why adding the digits checks both 3 and 9: the digit sum leaves the same remainder as the whole number.
10 leaves remainder -1 when divided by 11, so the place values alternate in sign. That is why the alternating sum checks 11: the signs cancel in the same way the division does.
100 is divisible by 4, and 1000 is divisible by 8, so only the last two or three digits can leave a remainder. That is why the checks for 4 and 8 look at the end of the number only.
Prime factors explain the rest. For example, 60 = 2 to the power 2 times 3 times 5, so it is divisible by 12, which is 2 to the power 2 times 3, but not by 8, which needs 2 to the power 3. Dividing 60 by 8 gives 7 with remainder 4.
Why Adding Digits Works
Adding digits works because every place value is one more than a multiple of 9. The hundreds place is 100, which is 99 + 1, so the digit 3 in 345 adds 3 to the remainder and nothing else. The same fact holds for 3 because 9 is a multiple of 3.
When Divisibility Tests Go Wrong
The rules are simple, but four mistakes keep showing up. Each example below is a real error found in a published page or discussion thread.
The first mistake is an incorrect worked answer for 17444 by 7 in a textbook thread, which gives 2486. That is wrong: 2492 times 7 is 17444, so the correct answer is 2492. Also, 2486 times 7 is 17402. The thread's other numbers check out: 1995 divided by 7 is 285, and 209328 divided by 7 is 29904.
The second mistake is saying there is no simple rule for 7, so you often need to do the division. That is misleading because the double-the-last-digit rule exists. For 2736, it gives 273 minus 12 = 261, which is not divisible by 7, so 2736 fails the check. For 1001, it gives 100 minus 2 = 98, which is 14 times 7.
The third mistake appears on a calculator page that says the rule for 13 is to multiply the last digit by 9 and add it to the remaining digits. That is wrong: 1001 gives 100 plus 9 = 109, and 109 is not divisible by 13, yet 1001 = 77 times 13. The correct rule is to add 4 times the last digit: 1001 gives 100 plus 4 = 104, then 10 plus 16 = 26, which is 2 times 13. Another correct method is to subtract 9 times the last digit: 1001 gives 100 minus 9 = 91, which is 7 times 13.
The fourth mistake is a rules table that prints the three-digit-block method for 1001 as "1001 - 1-001=-0..." with the rest cut off. This is garbled typesetting. The correct alternating three-digit-block sum for 1001 is 1 minus 1 = 0, and 1001 divided by 7 is 143.
Divisibility in Everyday Life
Many everyday problems turn into checks of just a few digits. The divisibility test calculator on this page checks each answer and shows whether the numbers divide evenly.
A circle has 360 degrees, a foot has 12 inches, an hour has 60 minutes, and a day has 24 hours. These numbers were chosen because they divide evenly by many small integers. For example, 360 is divisible by 2, 3, 4, 5, 6, 8, 9, 10, and 12.
Leap years use the same idea. A year is a leap year when it is divisible by 4, except for a century year, which must also be divisible by 400.
Sharing and splitting use divisibility too. The number 2520 splits evenly into groups of 1 to 10, and a fraction simplifies when its numerator and denominator share a factor. These are exactly the kinds of relationships the rules help identify.
Questions Students Ask
These are real questions students asked in public discussion threads. The tool on this page helps check each answer and shows the working behind the result.
Test the following numbers for divisibility: (i) 34014, 636, 1790 by 2; (ii) 2451, 624, 987 by 3; (iii) 4600, 3216, 8240 by 4.
For a divisibility test for 2, look only at the last digit: 34014 ends in 4, 636 ends in 6, and 1790 ends in 0, so all three pass. For 3, add the digits: 2451 gives 12, 624 gives 12, and 987 gives 24. All are divisible by 3. For 4, look at the last two digits: 00, 16, and 40 are all divisible by 4, so all three pass.
Write the divisibility tests from 1 to 15.
The tool on this page covers 2 to 13, and those twelve checks answer most school questions. Two examples from the thread: 343 by 7 gives 34 minus 6 = 28, so it passes. Also, 416042 by 11 gives 4 minus 1 plus 6 minus 0 plus 4 minus 2 = 11, so it passes. Rules past 13 are a later job for this page.
What is the divisibility rule of 7?
Double the last digit and subtract it from the remaining digits, then repeat. For 12264, 1226 minus 8 = 1218, then 121 minus 16 = 105, and 105 = 15 times 7, so it passes. The weighted check gives the same answer: 4 + 18 + 4 + 12 + 4 = 42, which is 6 times 7.
Send divisibility rule 1 to 15 of (3567).
The number 3567 is not the point; the worked checks from that thread are. For 483 by 7, three methods give 48 minus 6 = 42, 48 plus 15 = 63, and 48 minus 27 = 21. All three results are divisible by 7. For 918,082 by 11, 9 minus 1 plus 8 minus 0 plus 8 minus 2 = 22, which is 2 times 11, so it passes. For 627 by 11, 6 + 27 = 33, which is 3 times 11, so it passes.
Frequently Asked Questions
Final Thought
The twelve tests turn long division into a quick look at a few digits. The divisibility test calculator on this page shows the working with every answer, so you can understand the rule and check the result yourself. Start with the easy digit rules, then move to the trickier tests when the divisor demands more care. The test passes when division leaves nothing behind, and composite divisors can be built from smaller tests that share no factor. Use the list mode to scan several numbers at once, and recheck the digits before accepting a verdict.
