Divisibility Rules Calculator — Step-by-Step Divisibility Checker

Mental Math & Divisibility Rules

Divisibility Rules Calculator

Instant step-by-step divisibility tests for numbers 2 through 13 with mathematical justifications.

⚡ Try Numbers:
Divisibility Rules Breakdown Divisible by: 2, 3, 5, 6, 7, 10

The Ultimate Guide to Divisibility Rules: 2 through 13

In the era of smartphones and digital spreadsheets, one might wonder why mental divisibility rules remain an essential cornerstone of mathematical literacy. The answer lies in mental agility, speed, and analytical intuition. Whether simplifying algebraic fractions, finding greatest common factors (GCF), testing for prime numbers, or solving competitive aptitude exam questions under tight time limits, knowing whether a number is divisible by another without performing cumbersome long division is an invaluable mathematical superpower. Our interactive Divisibility Rules Calculator checks any integer against all foundational rules from 2 to 13 simultaneously, displaying the exact mathematical justification behind each result.

Master Reference Table: Divisibility Rules at a Glance

Divisor Divisibility Test Condition Rapid Worked Example
2 Last digit is even ($0, 2, 4, 6, 8$) $7,350$ ends in $0 \implies$ Divisible
3 Sum of all digits is a multiple of $3$ $7+3+5+0 = 15$ ($15 \div 3 = 5$) $\implies$ Divisible
4 Number formed by the last two digits is divisible by $4$ Last two digits $50 \implies 50 \div 4 = 12.5$ $\implies$ Not Divisible
5 Last digit is either $0$ or $5$ $7,350$ ends in $0 \implies$ Divisible
6 Divisible by both $2$ AND $3$ Divisible by 2 (Yes) and 3 (Yes) $\implies$ Divisible
7 Double the last digit and subtract from remaining digits; result is a multiple of $7$ $735 - (2 \times 0) = 735$; $73 - (2 \times 5) = 63$ ($7 \times 9$) $\implies$ Divisible
8 Number formed by the last three digits is divisible by $8$ Last three digits $350 \implies 350 \div 8 = 43.75$ $\implies$ Not Divisible
9 Sum of all digits is a multiple of $9$ $7+3+5+0 = 15$ ($15$ not a multiple of 9) $\implies$ Not Divisible
10 Last digit is $0$ $7,350$ ends in $0 \implies$ Divisible
11 Alternating sum and difference of digits from right to left is a multiple of $11$ (including 0) $0 - 5 + 3 - 7 = -9$ (Not multiple of 11) $\implies$ Not Divisible
12 Divisible by both $3$ AND $4$ (coprime factors of 12) Divisible by 3 (Yes), but Divisible by 4 (No) $\implies$ Not Divisible
13 Multiply last digit by $4$ and add to remaining digits; result is a multiple of $13$ $735 + (4 \times 0) = 735$; $73 + (4 \times 5) = 93$ ($93 \div 13 = 7.15$) $\implies$ Not Divisible

The Modular Arithmetic Magic Behind the Rules

Divisibility tests are not arbitrary memorization tricks—they are elegant theorems rooted in modular arithmetic. Understanding why they work cements true numerical mastery:

1. Why the Last Digits Work for 2, 4, 8, and 5

Our decimal system is built on powers of 10. Notice that:

2. Why the Sum of Digits Works for 3 and 9

Powers of 10 leave a remainder of 1 when divided by 9 (and 3):

$10 \equiv 1 \pmod 9, \quad 100 \equiv 1 \pmod 9, \quad 1000 \equiv 1 \pmod 9$

Therefore, any number $N = d_k 10^k + \dots + d_1 10 + d_0$ satisfies $N \equiv d_k + \dots + d_1 + d_0 \pmod 9$. This proves that a number has the exact same remainder when divided by 9 (or 3) as the simple sum of its digits!

3. The Coprime Product Rule (Rules for 6 and 12)

If a composite number $C$ factors into two coprime numbers $a$ and $b$ (meaning $\gcd(a, b) = 1$), then a number is divisible by $C$ if and only if it is divisible by both $a$ and $b$:

Vedic Math Truncation Rules: The Secret for 7 and 13

Many students know the rules up to 10 but dread testing for 7 or 13. The Vedic osculator method provides an astonishingly simple pencil-and-paper algorithm:

Practical Applications in Mathematics and Daily Life

Divisibility in Competitive Exams (SSC, CAT, GRE, GMAT)

In quantitative aptitude sections of competitive exams such as CAT, SSC CGL, GRE, and banking recruitment, questions frequently ask students to determine the missing digit in numbers like $482\_6$ such that the full value is divisible by 9 or 11. Knowing that the alternating sum of digits dictates divisibility by 11 allows candidates to solve these puzzles in under 15 seconds without brute-force division.

Algorithmic Complexity: $O(1)$ and $O(\log_{10} N)$ Testing in Software

In software engineering and high-performance computing, integer division is a CPU cycle-intensive operation compared to bitwise shifts and additions. Checking if the least significant bit is zero takes $O(1)$ time to confirm evenness. Summing decimal digits takes $O(\log_{10} N)$ time. Compilers and arbitrary-precision arithmetic libraries (such as GMP) use these exact divisibility sieves to accelerate primality tests like Miller-Rabin before executing expensive modular exponentiations.

Frequently Asked Questions

What is the fastest way to check divisibility by 7?
To quickly test divisibility by 7: take the last digit of the number, double it, and subtract that value from the remaining digits. If the resulting difference is divisible by 7 (or 0), then the original number is divisible by 7. You can repeat this step for large numbers.
Why does the sum of digits rule work for 3 and 9?
In base-10 arithmetic, every power of 10 (10, 100, 1000, etc.) is equal to one more than a multiple of 9 (e.g., 9+1, 99+1, 999+1). When expanded, the entire number modulo 9 or 3 reduces precisely to the sum of its individual digits.
How do you test if a number is divisible by 11?
Calculate the alternating sum of the digits from right to left (add the first, subtract the second, add the third, and so on). If the final alternating sum is 0 or a positive/negative multiple of 11 (like 11, 22, -11), the number is divisible by 11.
Can a number be divisible by 6 if it is not divisible by 2?
No. Because 6 = 2 × 3, a number must satisfy both the rule for 2 (it must be an even number) and the rule for 3 (digit sum divisible by 3) to be divisible by 6. Any odd number is automatically not divisible by 6.
Why is checking 12 based on rules for 3 and 4 rather than 2 and 6?
Composite divisibility requires coprime factors (factors whose greatest common divisor is 1). Since gcd(3, 4) = 1, testing 3 and 4 is mathematically valid. In contrast, gcd(2, 6) = 2, so testing 2 and 6 fails (for example, 18 is divisible by both 2 and 6, but not by 12).
What is the rule of divisibility for 13?
Take the last digit, multiply it by 4, and add it to the number formed by the remaining digits. If this sum is divisible by 13 (or 0), then the whole number is divisible by 13.