divisibility rules calculator

Tip: commas, spaces, and underscores are ignored (for example, 1,200_300).

Divisibility rules are mental math shortcuts that help you quickly determine whether one number divides another without a full long-division setup. This calculator combines those rules with exact remainder checking, so you can learn the logic and verify the answer at the same time.

What this divisibility rules calculator does

  • Checks whether your integer is divisible by one selected divisor or by a full set of common divisors.
  • Displays a clear pass/fail result for each divisor.
  • Shows the matching rule (last digit, digit sum, alternating sum, and more).
  • Provides the exact remainder so you can validate each decision.

Quick reference: common divisibility tests

Last-digit based rules

  • 2: last digit is 0, 2, 4, 6, or 8.
  • 5: last digit is 0 or 5.
  • 10: last digit is 0.
  • 25: last two digits are 00, 25, 50, or 75.

Digit-sum based rules

  • 3: sum of digits is divisible by 3.
  • 9: sum of digits is divisible by 9.

Multi-digit ending rules

  • 4: last two digits form a number divisible by 4.
  • 8: last three digits form a number divisible by 8.

Combination and advanced rules

  • 6: must pass both 2 and 3.
  • 12: must pass both 3 and 4.
  • 15: must pass both 3 and 5.
  • 11: difference of alternating digit sums is a multiple of 11.
  • 7: double the last digit and subtract from the remaining leading part (repeat as needed).
  • 13: add four times the last digit to the remaining leading part (repeat as needed).

Examples

Example 1: Is 462 divisible by 6?

Check 2: last digit is 2 (even), so yes. Check 3: digit sum is 4 + 6 + 2 = 12, and 12 is divisible by 3. Since both conditions are true, 462 is divisible by 6.

Example 2: Is 9,875 divisible by 25?

Look at the last two digits: 75. Because 75 is in the set {00, 25, 50, 75}, the number is divisible by 25.

Example 3: Is 1,111 divisible by 11?

Alternating sums from right: odd-position sum = 1 + 1 = 2, even-position sum = 1 + 1 = 2, difference = 0. Since 0 is a multiple of 11, it is divisible by 11.

Why divisibility rules matter

Divisibility rules are useful beyond basic arithmetic. They help with factorization, reducing fractions, checking work in algebra, and speeding up exam problems. They are also practical in coding interviews and algorithm tasks where number properties appear frequently.

Frequently asked questions

Do these rules work for negative numbers?

Yes. Divisibility depends on absolute value, so the sign does not change whether a number is divisible.

Can I use very large integers?

Yes. The calculator uses digit-by-digit remainder logic, which works reliably for very large inputs.

What if I enter commas or spaces?

That is fine. Formatting characters are removed automatically before calculation.

🔗 Related Calculators