Divisibility Test Calculator
Test cases replayed : 3 of 3 match · Methodology · No outside source listed
Enter a whole number to see at once which of the numbers 2 to 12 divide it evenly.
Result
Divisible by 2?
Divisible by 3?
- Divisible by 4?
- Divisible by 5?
- Divisible by 6?
- Divisible by 7?
- Divisible by 8?
- Divisible by 9?
- Divisible by 10?
- Divisible by 11?
- Divisible by 12?
- Divisible by your divisor?
- Prime number?
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Whole number: enter a number.
- Any other divisor to test: enter 1 or more.
- Read the result: Divisible by 2?; the panel also shows Divisible by 3?, Divisible by 4?, Divisible by 5?, Divisible by 6?, Divisible by 7?, Divisible by 8?, Divisible by 9?, Divisible by 10?, Divisible by 11?, Divisible by 12?, Divisible by your divisor? and Prime number?.
How this calculator works
A whole number n is divisible by k when n ÷ k leaves no remainder (n mod k = 0); the calculator checks the remainder directly.
The classic rules give the same answers: 2, last digit even; 3, digit sum divisible by 3; 4, last two digits divisible by 4; 5, last digit 0 or 5; 6, divisible by 2 and 3; 8, last three digits divisible by 8; 9, digit sum divisible by 9; 10, last digit 0; 11, alternating digit sum divisible by 11; 12, divisible by 3 and 4. For 7, double the last digit and subtract it from the rest, and repeat.
The formula
| Symbol | Meaning |
|---|---|
| Whole number | |
| Divisible by 2? | |
round(x, d) | x rounded to d decimal places, or to a whole number without d. |
Worked example
| Whole number | 360 |
|---|---|
| Any other divisor to test | 15 |
| Divisible by 3? | Yes |
|---|---|
| Divisible by 4? | Yes |
| Divisible by 5? | Yes |
| Divisible by 6? | Yes |
| Divisible by 7? | No |
| Divisible by 8? | Yes |
| Divisible by 9? | Yes |
| Divisible by 10? | Yes |
| Divisible by 11? | No |
| Divisible by 12? | Yes |
| Divisible by your divisor? | Yes |
| Prime number? | No |
Divisible by 2? Yes
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
Which numbers from 2 to 12 divide 360?
All of them except 7 and 11.
Is 1,001 divisible by 7 and 11?
Yes: 1,001 = 7 × 11 × 13, but it is not divisible by 2, 3, 4, 5, 6, 8, 9, 10 or 12.