Divisibility Rules Calculator
Test whether a number is divisible by 2, 3, 4, 5, 6, 8, 9, 10 and 11, with the digit-sum rule shown for each test. The rules depend on the base-10 structure. Example: with number 123456, the result is Divisible by 2 = Yes; Divisible by 3 = Yes.
Last updated · By S. Dilshan · Runs in your browser, nothing is uploaded
Step-by-Step Solution
How do you use the Divisibility Rules Calculator?
Type any whole number. The calculator applies the standard divisibility rules for 2, 3, 4, 5, 6, 8, 9, 10 and 11, showing the digits it used, the digit sum and the alternating digit sum.
What formula does the Divisibility Rules Calculator use?
The rules depend on the base-10 structure. 2, 5 and 10 look at the last digit; 4 and 8 look at the last two and three digits; 3 and 9 use the digit sum because 10 ≡ 1 (mod 9); and 11 uses the alternating sum because 10 ≡ −1 (mod 11). A number is divisible by 6 when it is divisible by both 2 and 3.
Worked example: Number 123456
For 123456: the last digit 6 is even, so it is divisible by 2; the digit sum 21 is a multiple of 3 but not 9, so it is divisible by 3 and not 9; the last two digits 56 are divisible by 4 and the last three, 456, by 8; the alternating sum is 3, so not divisible by 11.
With the default values the calculator returns Divisible by 2 = Yes; Divisible by 3 = Yes; Divisible by 4 = Yes; Divisible by 5 = No.
Where Is This Calculation Used?
Divisibility rules speed up mental arithmetic, check factorisations and catch errors: a check-sum that is wrong mod 9 reveals a mistake in long arithmetic (casting out nines). They are also the basis of many puzzle and competition problems.
What are the most common mistakes with the Divisibility Rules Calculator?
- Applying the digit-sum rule to 4 or 8.
- Checking only the last digit for 3.
- Forgetting that divisibility by 6 needs both 2 and 3.
What Is the Tested Example for the Default Values?
This example is computed by the same code that powers the calculator above, so you can compare it with your own numbers or a textbook answer.
| Input: Number | 123456 |
|---|---|
| Divisible by 2 | Yes |
| Divisible by 3 | Yes |
| Divisible by 4 | Yes |
| Divisible by 5 | No |
| Divisible by 6 | Yes |
Where Can You Verify These Formulas?
The definitions and formulas on this page follow standard references. Check them against these sources:
Built and maintained by S. Dilshan. Found a mistake? Email [email protected] with the page address.
Frequently Asked Questions
How do you know if a number is divisible by 3?
Add its digits; if the sum is divisible by 3, so is the number.
What is the divisibility rule for 11?
Alternately add and subtract the digits from the right. If the result is 0 or a multiple of 11, the number is divisible by 11.
Is there a rule for 7?
Yes, but it is more involved: double the last digit and subtract it from the rest, repeating until the number is small enough to judge.