Basic Division · Shortcuts

Divisibility Calculator

Check whether one number divides another exactly, and see which rule proves it. Every divisibility test from 2 to 13 is applied to your own digits rather than ticked off, with extended rules running up to 1000 and the complete divisor list underneath.

  • Every rule shown being applied
  • All divisors listed

Divisibility Checker

Live
Any whole number. The rules tables below always run from 2 to 1000.
Try an example
Results

The verdict, the remainder and which rules pass.

Divisible?
Remainder
Quotient
Passes the rule for

The divisibility tests, step by step

Every rule below is applied to the number you entered, with the actual arithmetic shown. All of it updates as you type.

Divisibility rules, 2 to 13
Extended rules, 14 to 1000

Every rule here is built from the prime-power rules above. A test for 60 is a test for 4, for 3 and for 5 run together.

All divisors of this number

How to Use the Divisibility Calculator

To use the divisibility calculator, type the number you want to test, type the number you want to divide by, and read the verdict. The answer and the working appear together in 4 steps:

  1. Enter the number in the first field. Whole numbers up to 30 digits are handled exactly, since the arithmetic runs in arbitrary-precision integers rather than floating point.
  2. Enter the divisor in the second field. The headline answers that one question with a yes or a no, the remainder and the quotient.
  3. Read the rules table in the working panel. Every divisibility test from 2 to 13 is listed with the rule, the arithmetic applied to your own digits, and a pass or fail.
  4. Open the extended table for divisors from 14 to 1000, including the divisibility test of 25, 125, 250, 500 and 1000.

The divisibility test calculator reports 4 results for every number: the yes-or-no verdict against your chosen divisor, the exact remainder, the list of divisors from 2 to 13 that pass, and every divisor the number has up to a trillion. A number with exactly 2 divisors is flagged as prime.

What Does Divisible Mean?

Divisible means the division leaves no remainder. A whole number n is divisible by a whole number k when n ÷ k comes out exactly, with a remainder of 0 and nothing left over.

18 is divisible by 3, since 18 ÷ 3 = 6 with no remainder. 18 is divisible by 1, 2, 6, 9 and 18 for the same reason. 18 is not divisible by 7, since 18 ÷ 7 = 2 with 4 left over.

Divisibility links 3 words that describe the same relationship from different sides. 3 is a divisor of 18 and a factor of 18, and 18 is a multiple of 3. Mathematicians write the relationship as 3 | 18, read as "3 divides 18".

n is divisible by k ⟺ n ÷ k leaves remainder 0 ⟺ n = k × m for some whole number m 18 is divisible by 3 ⟺ 18 = 3 × 6 ✓

Divisibility rules are procedures that answer that question without performing the division. Each rule replaces the original problem with a smaller one — a digit, a pair of digits, or a sum — that gives the same answer. Testing whether the 30-digit number 123456789012345678901234567890 is divisible by 3 takes one digit sum, while dividing it by hand takes 30 rounds of long division.

There are 6 strategies behind every divisibility rule, and each one shrinks the number in a different way:

Last digit Tests 2, 5, 10 4370 → 0
Last n digits Tests 4, 8, 16, 25, 125 17352 → 352
Sum of digits Tests 3, 9 729 → 7+2+9 = 18
Alternating sum of digits Tests 11 918082 → −22
Truncate and adjust Tests 7, 13 343 → 34 − 2×3 = 28
Alternating sum of blocks Tests 7, 11, 13 9111414 → 414−111+9 = 312

Divisibility Calculator Example

Testing 918082 for divisibility by 11 takes 1 alternating sum and returns yes. Assign signs to the digits from the right, starting with a plus, then add them up:

22 is a multiple of 11, so 918082 is divisible by 11. The minus sign carries no weight in the test — an alternating sum of −22 and one of 22 both settle the question the same way. The calculator confirms it with the division: 918082 ÷ 11 = 83462 with a remainder of 0.

Testing 343 for divisibility by 7 uses a different strategy, and takes 2 rounds. Drop the last digit, double it, subtract it from what is left, and repeat until the answer is small enough to read:

28 is a multiple of 7, so 343 is divisible by 7. The division agrees: 343 ÷ 7 = 49 with a remainder of 0.

A failing case looks the same until the last line. Testing 9973 for divisibility by 7 gives 997 − 2×3 = 991, then 99 − 2×1 = 97, and 97 is not a multiple of 7. 9973 is not divisible by 7, which the division confirms as 9973 ÷ 7 = 1424 with a remainder of 5. 9973 fails every rule from 2 to 13, and the divisor list shows why — 9973 is prime.

Divisibility and Remainders

Divisibility is the single case where the remainder is 0. Every division of whole numbers produces a quotient and a remainder, and the remainder decides the verdict on its own.

dividend = divisor × quotient + remainder 96 = 8 × 12 + 0 → 96 is divisible by 8 96 = 7 × 13 + 5 → 96 is not divisible by 7 with 0 ≤ remainder < divisor

The size of the remainder carries no partial credit. 96 ÷ 7 leaving 5 and 96 ÷ 5 leaving 1 are equally not divisible, since divisibility is a yes-or-no property rather than a measurement of how close the division came.

Dividing by k produces a remainder somewhere in the range 0 to k − 1, which gives k possible outcomes and only 1 of them meaning divisible. Dividing by 7 leaves 0, 1, 2, 3, 4, 5 or 6, so 1 remainder in 7 signals divisibility. Every divisibility rule works by preserving that remainder while shrinking the number: the digit sum of 729 leaves the same remainder modulo 9 as 729 itself.

Three tools answer three different questions about the same division. The remainder calculator returns the remainder as a number. The long division tableau tool draws every subtraction that produced it. The modulo operator calculator handles the sign conventions that appear once negative numbers enter.

Common Divisibility Rules

There are 12 divisibility rules in common use, covering the divisors 2 through 13. Each one reduces the number to something smaller that carries the same answer.

Divisor Rule Example
2Last digit is even134 → 4 ✓
3Sum of digits divisible by 3402 → 6 ✓
4Last two digits divisible by 41316 → 16 ✓
5Last digit is 0 or 5245 → 5 ✓
6Divisible by 2 and by 3402 → even, digits 6 ✓
7Drop last digit, double it, subtract; repeat343 → 28 ✓
8Last three digits divisible by 817352 → 352 ✓
9Sum of digits divisible by 9729 → 18 ✓
10Last digit is 04370 → 0 ✓
11Alternating sum of digits divisible by 11918082 → −22 ✓
12Divisible by 3 and by 41416 → digits 12, last two 16 ✓
13Alternating sum of 3-digit blocks divisible by 139111414 → 312 ✓

The rules for powers of 2, 5 and 10 follow one pattern. 1000 is a multiple of 8, so every digit above the hundreds column is already divisible by 8 and only the last 3 matter. The same argument applies at every power:

Divisor form Test Divisors it covers
2ⁿLast n digits divisible by 2ⁿ2, 4, 8, 16, 32, 64
5ᵏLast k digits divisible by 5ᵏ5, 25, 125, 625
10ⁿLast n digits are all zeros10, 100, 1000, 10000 and beyond

The rules for 3 and 9 come out of one line of algebra. Write a 5-digit number with digits a, b, c, d, e in the base-10 positional system, then split each power of ten into a multiple of 9 plus 1:

n = 10000a + 1000b + 100c + 10d + e n = 9999a + 999b + 99c + 9d + (a + b + c + d + e) n − (a + b + c + d + e) = 9 × (1111a + 111b + 11c + d)

The right-hand side is a multiple of 9, and therefore a multiple of 3. The number n and the sum of its digits leave the same remainder when divided by 9, and the same remainder when divided by 3. Testing the digit sum answers the question about n exactly, for any number of digits.

The rule for 11 flips the sign. Ten leaves a remainder of −1 when divided by 11, a hundred leaves +1, a thousand leaves −1, so each column contributes its digit with an alternating sign. Adding and subtracting the digits from the right reproduces the remainder modulo 11 exactly.

The rules for 7 and 13 use blocks of 3 digits, and the reason sits in one product: 7 × 11 × 13 = 1001. A thousand leaves a remainder of −1 when divided by 7, by 11 and by 13, so an alternating sum of 3-digit blocks preserves the remainder for all 3 divisors at once. Testing 9111414 for 13 gives 414 − 111 + 9 = 312, and 312 = 13 × 24, so 9111414 is divisible by 13.

Every divisor above 13 is built from the rules already listed. Factor the divisor into prime powers, then test each prime power separately:

  • 14 = 2 × 7 — test 2 and 7.
  • 15 = 3 × 5 — test 3 and 5.
  • 18 = 2 × 3² — test 2 and 9.
  • 20 = 2² × 5 — test 4 and 5, which reduces to a last digit of 0 with an even digit before it.
  • 24 = 2³ × 3 — test 8 and 3.
  • 25 = 5² — last two digits are 00, 25, 50 or 75.
  • 60 = 2² × 3 × 5 — test 4, 3 and 5.
  • 125 = 5³ — last three digits divisible by 125, meaning 000, 125, 250, 375, 500, 625, 750 or 875.
  • 250, 500 and 1000 — last three digits are 000, 250, 500 or 750 for 250; 000 or 500 for 500; 000 for 1000.

The prime powers have to be tested separately for a reason. Testing 12 as "divisible by 2 and by 6" fails, since 18 passes both and 18 ÷ 12 = 1 R 6. Splitting 12 into 4 × 3 works, since 4 and 3 share no prime factor. The extended table in the working panel applies all 20 of these composite and prime-power rules to your number at once.

Common Divisibility Mistakes

There are 5 common divisibility mistakes, and every one of them is caught by dividing and checking the remainder.

1. Using two digits for the rule of 8

Read the last three digits for 8, not two. 8 divides 1000, which clears everything above the hundreds column and leaves 3 digits to test. Reading only 2 digits tests 4 instead.

Wrong
17352 → 52
52 ÷ 8 = 6 R 4  → "not divisible"
Right
17352 → 352
352 ÷ 8 = 44 R 0  → divisible ✓
2. Adding the digits for the rule of 11

Alternate the signs for 11 rather than adding straight. A plain digit sum tests 3 and 9; only the alternating sum tests 11.

Wrong
918082 → 9+1+8+0+8+2 = 28
28 ÷ 11 → "not divisible"
Right
918082 → −9+1−8+0−8+2 = −22
22 = 11 × 2  → divisible ✓
3. Combining factors that share a prime

Split a composite divisor into prime powers that share no factor. Testing 12 as 2 and 6 lets 18 through, since 18 is divisible by both and 18 ÷ 12 leaves 6. Testing 12 as 4 and 3 rejects 18 correctly.

Wrong
12 = 2 × 6
18: even ✓, ÷6 ✓ → "divisible"
18 ÷ 12 = 1 R 6  ✗
Right
12 = 4 × 3
18: last two 18 ÷ 4 ✗
→ not divisible ✓
4. Subtracting from the whole number in the rule of 7

Subtract double the last digit from the rest of the number, with the last digit already removed. Subtracting from the original number breaks the rule at every step.

Wrong
343 → 343 − 2×3 = 337
337 ÷ 7 → "not divisible"
Right
343 → 34 − 2×3 = 28
28 = 7 × 4  → divisible ✓
5. Reading a short decimal as divisible

Check the remainder rather than the shape of the decimal. 18 ÷ 4 = 4.5 terminates after 1 decimal place and still leaves a remainder of 2, so 18 is not divisible by 4. Only a decimal ending in .0 means a remainder of 0.

Check any divisibility answer in 1 division: divide and look at the remainder. A remainder of 0 confirms the rule, and any other remainder exposes the slip. The greatest common divisor of several numbers tool takes the next step once the small factors are known, and the extended Euclidean algorithm steps tool shows the divisions behind it.

Divisibility Calculator FAQ

How do I know if a number is divisible by another number?

Divide the first number by the second and look at the remainder: a remainder of 0 means the number is divisible. Divisibility rules reach the same answer without the division, by testing the digits instead. 918082 is divisible by 11, since the alternating sum of its digits is −22 and 22 is a multiple of 11.

What remainder means a number is divisible?

A remainder of 0 means a number is divisible. Every other remainder means it is not. 96 ÷ 8 leaves 0, so 96 is divisible by 8; 96 ÷ 7 leaves 5, so 96 is not divisible by 7. The size of the remainder carries no partial credit — 1 left over and 6 left over both mean not divisible.

Is 0 divisible by every number?

Yes, 0 is divisible by every whole number except 0 itself. Dividing 0 by 7 gives a quotient of 0 and a remainder of 0, which satisfies the definition exactly. Division by 0 stays undefined, so 0 is not divisible by 0.

Can a number be divisible by itself?

Yes, every whole number except 0 is divisible by itself, with a quotient of 1 and a remainder of 0. 47 ÷ 47 = 1 R 0. Every number above 1 therefore has at least 2 divisors, 1 and itself, and a number with exactly those 2 is prime.

Can negative numbers be divisible?

Yes, negative numbers follow the same rule: −18 is divisible by 3, since −18 = 3 × (−6) with a remainder of 0. Divisibility ignores sign entirely, so −18, 18, −3 and 3 all divide each other in the same pattern. The divisibility rules work on the digits, which means the minus sign never enters the test.

What is the difference between divisibility and modulo?

Divisibility returns a yes or no and modulo returns a number. 96 mod 7 gives 5, while asking whether 96 is divisible by 7 gives no. Divisibility is the single case where the modulo result equals 0, which makes modulo the more general operation of the 2.

What is the difference between a factor and a divisor?

A factor always divides with no remainder, while a divisor is any number you divide by. In 96 ÷ 7 = 13 R 5, the 7 is the divisor and it is not a factor of 96. In 96 ÷ 8 = 12 R 0, the 8 is both the divisor and a factor. Every factor is a divisor, and only the divisors that leave a remainder of 0 are factors.