• Skip to primary navigation
  • Skip to main content
  • Skip to footer
Basic Mathematics
  • ⌕
Divisibility Rules: Digit Tests, Combined Conditions and Examples

Divisibility Rules: Digit Tests, Combined Conditions and Examples

Written by Jean Carlos Novaes

A divisibility rule determines whether an integer division has remainder zero without carrying out the full long division. Here the divisor d is positive and the number being tested is a nonnegative integer. Zero is divisible by every nonzero integer, but division by zero is undefined.

N=dq+r
0≤r<d
d∣N⇔r=0

Final digits test powers of two, five and ten

To test 2, inspect the last digit; even endings pass. For 5, the last digit must be 0 or 5. For 10, it must be 0. Other final-digit tests use the number formed by the last k digits, including leading zeros within that block. If the original number has fewer digits, use the whole number.

DivisorFinal digits to inspect
21
42
51
83
101
164
252
325
502
646
1002
10003

For example, 3120 passes the test for 8 because 120 is divisible by 8. The test for 25 accepts endings 00, 25, 50 and 75. For 50, only 00 and 50 pass. The table also covers 4, 16, 32, 64, 100 and 1000; an all-zero final block always passes.

Digit sums for 3 and 9; alternating sums for 11

For 3 or 9, add all digits and test that sum against the same divisor. Repeating a digit-sum test is allowed. For 11, subtract the sum of alternating positions from the sum of the other positions. A zero result or a positive or negative multiple of 11 passes.

Combine conditions only with the right factors

The following pairs are coprime: passing both tests is equivalent to divisibility by their product. Without coprimality, use the least common multiple instead. Passing tests for 2 and 4 proves divisibility by 4, not necessarily by 8.

DivisorBoth required divisors
62 · 3
123 · 4
142 · 7
153 · 5
243 · 8
355 · 7
502 · 25

Every integer passes the test for 1. For the other combined rules, apply both conditions; one alone does not suffice. For example, a number ending in 5 need not be divisible by 15 unless its digit sum also passes the test for 3.

Reduce the last digit for 7, 13 and other divisors

Write the number as ten times a plus its last digit b. In the table, replace it with the indicated expression and test that result for the original divisor. You can repeat when helpful; negative multiples also count. Stop when the result is easy to recognize rather than repeating forever.

N=10a+b
DivisorReplacement to test
7a−2b
13a+4b
17a−5b
19a+2b
23a+7b
29a+3b
31a−3b
49a+5b

The reductions cover 7, 13, 17, 19, 23, 29, 31 and 49. The transformed value is not the quotient and need not equal the original remainder.

Worked checks for 553 and 10989

For 7, double the final 3 in 553 and subtract it from 55, giving 49. The multiplication check confirms the exact quotient. For 11, alternate the digit sums of 10989; their difference is 11, so the test passes.

553:55−2×3=49
553=7×79
1+9+9=19
0+8=8
19−8=11

These rules concern integer divisibility, unlike division of fractions, which can produce a noninteger quotient.

References

  • University of Southampton. MATH1001: Divisibility and Euclid’s Algorithm.
Jean Carlos Novaes

About Jean Carlos Novaes

I hold a degree in Computer Science from the Federal University of Bahia (2017) and I am the editor and founder of this website.

Footer

Basic Mathematics

Basic Mathematics website with clear school content for elementary and high school students. Learn easily and efficiently!

ABOUT

  • About Us
  • Contact
  • Site Map

LEGAL

  • How to Cite
  • Cookie Policy
  • Privacy Policy
  • Content License
English
  • Portuguese (Português)
  • Danish (Dansk)
  • German (Deutsch)
  • English
  • Spanish (Español)
  • Finnish (Suomi)
  • French (Français)
  • Italian (Italiano)
  • Dutch (Nederlands)
  • Norwegian (Norsk)
  • Polish (Polski)
  • Portuguese (Portugal)
  • Swedish (Svenska)

© 2015–2026 · Basic Mathematics · All rights reserved.