Skip to content
FiftyCalc Free calculators for all 50 states

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

Sample figures

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.

Divisibility Test Calculator

Whole number: enter a number. Prefilled example: 360.

Any other divisor to test: enter 1 or more. Prefilled example: 15.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Whole number: enter a number.
  2. Any other divisor to test: enter 1 or more.
  3. 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

  1. D2={1if |round⁡(n)|mod2=00otherwise
Symbols used in the formula
SymbolMeaning
nWhole number
D2Divisible by 2?
round(x, d)x rounded to d decimal places, or to a whole number without d.

Worked example

Whole number360
Any other divisor to test15
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
  1. D2=1

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.

Related calculators