Divisibility Calculator
- The divisibility rule for 3: a number is divisible by 3 when its digits sum to a multiple of 3.
- Applying it to 12,345: the digits sum to 15 — the rule says yes.
- Direct division confirms it: 12,345 / 3 gives a quotient of 4,115 with a remainder of 0. A remainder of zero is the definition of divisible; the rules are just shortcuts that reach the same answer without the long division.
- Divisibility rules exist because factoring by hand starts with cheap tests: 2, 5 and 10 read the last digit, 4 and 8 read the last two or three, 3 and 9 read the digit sum, and 11 reads the alternating digit sum.
A number is divisible by another when the division leaves a remainder of zero. Divisibility rules are shortcuts that reach the same answer without long division. This divisibility calculator applies those rules to the number you enter and tells you whether it is divisible by the divisor you choose, along with the quotient when it is. For example, the digits of 12345 sum to 15, so 12345 is divisible by 3 — the quotient is 4,115 with no remainder. The rules it uses are simple to state: the rules for 2, 5 and 10 read the last digit; 4 reads the last two digits; 8 the last three; 3 and 9 read the digit sum; 11 reads the alternating digit sum. Composite rules combine: divisible by 6 means divisible by both 2 and 3; divisible by 12 means by both 3 and 4.
These digit-based rules are the accepted standard for this kind of check because each one is a direct test of the same remainder-zero condition, just done faster than long division. They give the same verdict and the same quotient, as with 91663: its alternating digit sum is 11, so 91663 is divisible by 11, with a quotient of 8,333. On this page you will find the formula, step-by-step workings, worked examples and sources, so you can follow every step and confirm the result yourself.
Worked examples
Primary result: Yes — exactly divisible
Primary result: Yes — exactly divisible — Digits sum to 15, so 3 divides it exactly. (12345 · 3)
| Divisible? | Yes — exactly divisible |
| Quotient | 4,115 |
| Remainder | 0 |
| Rule check | The digits sum to 15 |
Primary result: No — not divisible
Primary result: No — not divisible — The last two digits leave a remainder of 2. (47382 · 4)
| Divisible? | No — not divisible |
| Quotient | 11,845 |
| Remainder | 2 |
| Rule check | The last two digits form 82 |
Primary result: Yes — exactly divisible
Primary result: Yes — exactly divisible — The alternating digit sum is 11, so 11 divides it. (91663 · 11)
| Divisible? | Yes — exactly divisible |
| Quotient | 8,333 |
| Remainder | 0 |
| Rule check | The alternating digit sum is 11 |
What divisible means
A number is divisible by another when the division leaves a remainder of zero. That is the whole definition, and everything else on this page follows from it. When you say 12 is divisible by 4, you are saying 12 ÷ 4 = 3 with nothing left over. When you say 13 is not divisible by 4, you are saying the division stops at 3 with 1 left over. A divisibility calculator applies this same test, but the idea behind it is simple enough to state in one sentence: no remainder, no problem.
The same fact can be said in factor language. If a number is divisible by another, that other number is a factor of it. So 12 is divisible by 4, and 4 is a factor of 12. The two phrasings describe one relationship from different directions, and moving between them is often what makes a problem easier to see. Asking whether 12345 is divisible by 3 is the same as asking whether 3 is a factor of 12345. The digit sum of 12345 is 15, and 15 is divisible by 3, so 12345 is divisible by 3. The quotient is 4,115 with no remainder, which confirms the rule by ordinary division.
Divisibility rules are shortcuts that reach the same answer without long division, and each one is a small proof rather than a trick to memorize. The rules for 2, 5 and 10 read only the last digit. The rule for 4 reads the last two digits, and the rule for 8 reads the last three. The rules for 3 and 9 read the digit sum. The rule for 11 reads the alternating digit sum: add and subtract the digits in turn. For 91663, that alternating sum is 11, so 91663 is divisible by 11, and the quotient is 8,333. None of these rules is magic. Each works because of how our base-ten place values behave, which is why the shortcut and the long division can never disagree.
Composite rules combine the simpler ones. A number is divisible by 6 when it is divisible by both 2 and 3. A number is divisible by 12 when it is divisible by both 3 and 4. This layering is another sign that the rules are built from the remainder-zero definition rather than standing apart from it: if a number passes each part of a combined test, it passes the whole test, and the division leaves nothing behind.
The practical payoff is that you can check divisibility in your head, then trust the result the way you would trust a full division. A divisibility calculator simply does that checking for you, quickly and without arithmetic slips, while the rules themselves remain what they always were: short, provable consequences of what it means to divide evenly.
The divisibility rules for 2 to 12
A divisibility rule is a shortcut: it tells you whether one number divides another without making you do the long division. The definition underneath every rule is the same — a number is divisible by another when the division leaves a remainder of zero. A divisibility calculator applies these shortcuts for you, but knowing the rules yourself makes the results easy to check and the reasoning easy to follow.
Several rules work because of place value. In our ten-based number system, the last digit alone determines whether a number is divisible by 2, 5 or 10: an even last digit means divisible by 2, a last digit of 0 or 5 means divisible by 5, and a last digit of 0 means divisible by 10. The rule for 4 reads the last two digits, because 100 is divisible by 4, so every hundred — and everything above it — drops out of the question. The rule for 8 reads the last three digits for the same reason: 1,000 is divisible by 8.
The rules for 3 and 9 read the digit sum, because each place value (1, 10, 100, and so on) leaves a remainder of 1 when divided by 3 or 9. For example, the digits of 12345 sum to 15, so 12345 is divisible by 3 — the quotient is 4,115 with no remainder. The rule for 11 reads the alternating digit sum, adding and subtracting digits in turn from one end. The alternating digit sum of 91663 is 11, so 91663 is divisible by 11 (quotient 8,333).
Some rules are combinations rather than single tests. A number is divisible by 6 when it is divisible by both 2 and 3, and divisible by 12 when it is divisible by both 3 and 4. The rule for 7 is the awkward one: it has no tidy digit trick of the kind the others enjoy, so it is usually handled with a short multiplication-and-subtraction step or simply by dividing. That unevenness is worth stating plainly — the rules are shortcuts of convenience, not a matched set.
Here is the full list for 2 through 12 in brief:
- 2: the last digit is even.
- 3: the digit sum is divisible by 3.
- 4: the last two digits form a number divisible by 4.
- 5: the last digit is 0 or 5.
- 6: divisible by both 2 and 3.
- 7: no simple digit rule; use a short division or the doubling-and-subtracting method.
- 8: the last three digits form a number divisible by 8.
- 9: the digit sum is divisible by 9.
- 10: the last digit is 0.
- 11: the alternating digit sum is divisible by 11.
- 12: divisible by both 3 and 4.
Worked examples
A divisibility calculator is easiest to trust when you can see the shortcut behind its answer. Each of the examples below uses a divisibility rule — a shortcut that reaches the same answer as long division, without the long division. A number is divisible by another when the division leaves a remainder of zero, so every rule here is simply a faster route to that same check.
Take 12345 and the rule for 3. The rule reads the digit sum: add the digits together. Here the digits of 12345 sum to 15, and 15 is a multiple of 3, so 12345 is divisible by 3. The quotient is 4,115 with no remainder. Notice what the shortcut saved you: instead of dividing a five-digit number, you added five small digits and checked one result.
Now try 47382 against the rule for 4, which reads the last two digits. The last two digits are 82. Since 82 is not a multiple of 4, 47382 fails the rule and is not divisible by 4 — the division would leave a remainder. This example matters because it shows the rules can say no as cleanly as they say yes. Only the final two digits decide the answer; the leading 473 plays no part in the test.
For 11, the rule reads the alternating digit sum. Working through 91663, the alternating digit sum is 11, so 91663 is divisible by 11, and the quotient is 8,333. The alternating pattern is the part people most often get wrong, which is why a worked check is worth more than the rule alone.
These three examples also show why the rules are grouped the way they are. The rules for 2, 5 and 10 read the last digit; 4 reads the last two digits; 8 reads the last three; 3 and 9 read the digit sum; and 11 reads the alternating digit sum. Composite rules combine: divisible by 6 means divisible by both 2 and 3, and divisible by 12 means divisible by both 3 and 4. Once you know which part of a number each rule inspects, you can pick the right test before you ever reach for a calculator.
- 12345 and 3: the digits sum to 15, so 12345 is divisible by 3 — quotient 4,115, no remainder.
- 47382 and 4: the last two digits are 82, which is not a multiple of 4, so the rule fails.
- 91663 and 11: the alternating digit sum is 11, so 91663 is divisible by 11 — quotient 8,333.
Where divisibility tests get used
Divisibility tests earn their keep in factoring. When you break a number into its prime pieces, the small primes are the ones you check first, and the rules let you check them at a glance. A divisibility calculator handles the arithmetic, but knowing the tests behind each answer helps you follow the result and trust it. A number is divisible by another when the division leaves a remainder of zero; divisibility rules are shortcuts that reach the same answer without long division. So when a factoring problem starts with a large number, the rule for 3 tells you quickly whether 3 belongs in the factorization, and the rule for 9 tells you whether you can pull out two 3s at once.
Simplifying fractions is the same idea in a different setting. To reduce a fraction, you need a common factor of the numerator and the denominator, and the tests point you to one without any scratch work. If both numbers pass the rule for 3, divide both by 3 and look again. The rules for 2, 5 and 10 read the last digit; 4 reads the last two digits; 8 the last three; 3 and 9 read the digit sum; 11 reads the alternating digit sum. Between them, these tests cover most of the factors that show up in everyday fraction problems, so a few quick checks often finish the job.
Finding a common denominator leans on the same shortcuts. When you compare or add fractions, you often want the least common multiple of the denominators, and that means knowing what each denominator is built from. Composite rules combine: divisible by 6 means divisible by both 2 and 3; divisible by 12 means by both 3 and 4. Checking 2 and 3 separately is usually faster than dividing by 6 directly, and the same pairing trick works for 12. Once you know which small factors each denominator contains, building the common denominator becomes a matter of multiplying what is missing.
Splitting a quantity evenly is where these tests meet daily life. If you need to divide a total among a group with no remainder, a divisibility check tells you before you start whether the split comes out clean. The worked checks show how little work this takes. The digits of 12345 sum to 15, so 12345 is divisible by 3 — the quotient is 4,115 with no remainder. The alternating digit sum of 91663 is 11, so 91663 is divisible by 11, with a quotient of 8,333. And for mental arithmetic, the tests give you a fast way to sanity-check a quotient or spot an error before it spreads.
FAQs
What is the divisibility rule for 3?
Add the digits of the number. If that sum is a multiple of 3, the number itself is divisible by 3. For example, 12345 has a digit sum of 15, so it divides by 3. This works because 10 is one more than a multiple of 9, and 3 divides 9.
How can I tell if a number is divisible by 11?
Take the alternating sum of its digits, adding and subtracting in turn (+ - + - ...). If that alternating sum is a multiple of 11, then the number is divisible by 11. If it is not a multiple of 11, the number is not divisible by 11.
Is there a simple divisibility rule for 7?
Only an awkward one. Double the last digit and subtract it from the rest of the number, repeating as needed until the result is small enough to check. Because it is cumbersome, most people just divide the number by 7 directly instead of using the rule.
What does it mean if the remainder is not zero?
It means the number is not divisible by that divisor. The remainder is what is left over after you take away the largest possible whole number of groups. A nonzero remainder tells you the division does not come out evenly, so the divisor does not divide the number exactly.
Is 0 divisible by any number?
Mathematically, zero divided by any non-zero number is zero with no remainder, so 0 is divisible by any non-zero number. In practice the question is empty, since the answer is always the same. Division by zero itself is undefined, so zero is never a valid divisor.
Why do the digit-sum rules work for 3 and 9?
Because 10 is one more than a multiple of 9, every place value collapses to 1 modulo 9, and also modulo 3. That leaves just the digit sum to check. So if the digit sum is a multiple of 3 or 9, the original number is too.