Divisibility Test Calculator

Check divisibility rules from 2 to 20

CalculatorsFreeNo Signup
4.9(570 reviews)
All Tools

Loading tool...

About Divisibility Test Calculator

An interactive divisibility test calculator that applies all standard divisibility rules (2 through 20) to any positive integer. Shows which divisors evenly divide your number, explains the divisibility rule used for each test, displays the quotient and remainder, and highlights patterns in divisibility. Supports large numbers and provides educational breakdowns of mathematical shortcut rules like the sum-of-digits test for 3 and 9, the last-two-digits test for 4, and the alternating sum test for 11. Perfect for math students, teachers, and anyone exploring number theory.

Divisibility Test Calculator Features

  • Test divisors 2-20
  • Rule explanations
  • Quotient & remainder
  • Large number support
  • Pattern visualization
Divisibility rules are mathematical shortcuts that let you quickly determine whether a number can be evenly divided by another without performing long division. Instead of computing 1,234,567 ÷ 9, you can simply add the digits (1+2+3+4+5+6+7 = 28, then 2+8 = 10) — since 10 isn't divisible by 9, neither is 1,234,567. This calculator applies all standard divisibility rules from 2 through 20 simultaneously, showing you at a glance which numbers are factors with clear explanations of each rule.

How to Use the Divisibility Calculator

Enter any positive integer and the calculator instantly tests all divisibility rules from 2 to 20:

  • Green checkmarks indicate the number IS divisible — with the quotient shown
  • Red crosses indicate it is NOT divisible — with the remainder shown
  • Each rule includes a plain-English explanation of the mathematical shortcut used

You can also enter a specific custom divisor to test numbers outside the 2-20 range.

The Complete Divisibility Rules (2–12)

Here are the classic divisibility rules:

  • 2: Last digit is even (0, 2, 4, 6, 8)
  • 3: Sum of all digits is divisible by 3
  • 4: Last two digits form a number divisible by 4
  • 5: Last digit is 0 or 5
  • 6: Divisible by both 2 AND 3
  • 7: Double the last digit, subtract from the rest — if the result is divisible by 7, so is the original
  • 8: Last three digits form a number divisible by 8
  • 9: Sum of all digits is divisible by 9
  • 10: Last digit is 0
  • 11: Alternating sum of digits (subtract every other) is divisible by 11
  • 12: Divisible by both 3 AND 4

Why Divisibility Matters

Divisibility rules appear throughout math and daily life:

  • Simplifying fractions: Find the GCD quickly by testing small divisors
  • Check digit algorithms: UPC barcodes, credit cards (Luhn), and ISBN all use modular arithmetic
  • Mental math competitions: Speed tests rely heavily on divisibility shortcuts
  • Programming: The modulo operator (%) is one of the most-used operations in coding
  • Standardized tests: SAT, GRE, and ACT math sections frequently test divisibility knowledge

Step-by-Step Instructions

  1. 1Enter any positive integer into the number field.
  2. 2The calculator instantly tests divisibility for divisors 2 through 20.
  3. 3Green results show factors with their quotients; red results show non-factors with remainders.
  4. 4Read the rule explanation for each divisor to understand the shortcut method.
  5. 5Enter a custom divisor to test any number outside the 2-20 range.

Divisibility Test Calculator — Frequently Asked Questions

Why is there no simple divisibility rule for 7?+

The rule for 7 is more complex because 7 doesn't relate neatly to powers of 10. The most common method is: double the last digit, subtract from the rest, and repeat. For example, 364 → 36 - (4×2) = 28, and 28 ÷ 7 = 4, so 364 is divisible by 7. Other methods exist but they're all multi-step — there's no single-glance test like for 2, 5, or 10.

Can I test divisibility for numbers larger than 20?+

Yes! Use the custom divisor field to test any divisor. For large divisors, the calculator uses direct modular arithmetic (n mod d = 0) since there are no well-known 'tricks' for divisors above 12-13. The math is handled instantly in your browser.

What's the difference between a factor and a divisor?+

In this context, they mean the same thing. If 12 is divisible by 3, then 3 is both a 'factor' and a 'divisor' of 12. Technically, 'divisor' is the number you divide by, and 'factor' is one of the numbers that multiply together to make the original (3 × 4 = 12, so both 3 and 4 are factors of 12).

Share this tool: