Divisibility Calculator

Check if a number is divisible by 2–12 and any custom divisor. See divisibility rules, digit sums, prime factorization, all divisors, visual grid, and a range checker with color-coded results.

Enter any integer
Test divisibility by a custom number
Digit Sum
9
Sum of digits of 360: used for divisibility by 3 and 9
Alternating Sum
-3
Alternating sum of digits: used for divisibility by 11
Divisors Passed
9 / 11
Divisible by 9 of the standard divisors (2–12)
Divisible by 13?
No ✗
Remainder: 9
Prime?
No
360 has 24 divisors
Total Divisors
24
360 has 24 positive divisors
Prime Factorization
2 × 2 × 2 × 3 × 3 × 5
360 = 2 × 2 × 2 × 3 × 3 × 5
All Divisors
1, 2, 3, 4, 5, 6, 8, 9, 10, 12, … (24)
Complete list of positive divisors of 360

Divisibility by 2–12

DivisorDivisible?RemainderRuleVisual
2✓ Yes0Last digit is even (0, 2, 4, 6, 8)
3✓ Yes0Sum of digits is divisible by 3
4✓ Yes0Last two digits form a number divisible by 4
5✓ Yes0Last digit is 0 or 5
6✓ Yes0Divisible by both 2 and 3
7✗ No3Double the last digit, subtract from the rest; result divisible by 7
8✓ Yes0Last three digits form a number divisible by 8
9✓ Yes0Sum of digits is divisible by 9
10✓ Yes0Last digit is 0
11✗ No8Alternating sum of digits is divisible by 11
12✓ Yes0Divisible by both 3 and 4

Range Divisibility Grid

Show which numbers in range are divisible by this
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50

Divisibility Rules Reference

DivisorRuleExample
2Last digit is even138 → 8 is even ✓
3Digit sum divisible by 3123 → 1+2+3 = 6 ✓
4Last two digits divisible by 41324 → 24 ÷ 4 = 6 ✓
5Last digit is 0 or 5785 → 5 ✓
6Divisible by both 2 and 3162: even, 1+6+2=9 ✓
7Double last digit, subtract from rest203 → 20 − 2×3 = 14 ✓
8Last three digits divisible by 81160 → 160 ÷ 8 = 20 ✓
9Digit sum divisible by 9729 → 7+2+9 = 18 ✓
10Last digit is 0580 → 0 ✓
11Alternating digit sum divisible by 112728 → 2−7+2−8 = −11 ✓
12Divisible by both 3 and 4144 → digit sum 9 ✓, 44÷4=11 ✓
Planning notes, formulas, and examples

About the Divisibility Calculator

The **Divisibility Calculator** checks whether a number is divisible by 2 through 12 and by any custom divisor you enter. For each test it shows the remainder, the matching divisibility rule, and a visual pass/fail indicator, so you can see both the result and the reason behind it.

It also keeps the number's factor structure together: digit sum, alternating digit sum for the 11 test, prime factorization, total divisor count, and the full divisor list. That makes it useful for fraction simplification, factor hunting, and quick number-pattern checks where a plain yes/no answer is not enough.

The range grid extends the same idea across a span of numbers, which is helpful when you want to spot multiples or compare a divisor against a sequence instead of a single value. That broader view makes the page useful for both quick checks and pattern-finding exercises where repeated divisibility matters.

When This Page Helps

This calculator is useful when you want the reason behind a divisibility result, not just the yes or no. It combines the standard classroom rules with custom testing, prime factorization, and a divisor list, so it works well for homework checks, fraction simplification, and factor analysis. The range view also helps you move from one-off testing to seeing how multiples repeat across a sequence.

How to Use the Inputs

  1. Enter the number you want to test and, if needed, a custom divisor or range.
  2. Use a preset such as 360 or 1000 if you want to confirm the standard rules first.
  3. Read the remainder and rule card for each divisor to see why a test passes or fails.
  4. Check the prime factorization and divisor list when you need the full factor structure of the number.
  5. Use the range grid when you want to compare divisibility across several consecutive numbers.
  6. Change one input at a time if you are comparing how different divisors affect the same number.
Formula used
A number n is divisible by d if n mod d = 0. Digit-sum rule: n is divisible by 3 or 9 when the sum of its digits is divisible by 3 or 9. Alternating-sum rule: n is divisible by 11 when the alternating digit sum is divisible by 11.

Example Calculation

Result: 360 is divisible by 2, 3, 4, 5, 6, 8, 9, 10, and 12.

360 has a digit sum of 9, ends in 0, and is built from 2^3 × 3^2 × 5. Those factors explain why it passes most of the standard divisibility tests.

Tips & Best Practices

  • A passing divisibility rule means the number divides evenly with remainder 0.
  • The 11 rule uses alternating digits from the right, not a digit sum.
  • Prime factorization is the fastest way to explain why a number has the divisors it does.
  • Use the range grid when you need to spot multiples instead of testing one value at a time.

Divisibility Checks With More Than a Yes or No Result

This calculator examines an integer from several angles at once. It tests divisibility by every standard divisor from 2 through 12, reports the remainder for each one, and shows the rule that applies to that divisor. Instead of forcing you to remember whether 11 uses an alternating digit sum or whether 8 depends on the last three digits, the table keeps the rule next to the actual result.

That makes the tool useful both for learning and for verification. If a student thinks 360 should be divisible by 9, the calculator does not just confirm it. It also shows the digit sum and the remainder, so the reason is visible. If the number fails a test, the remainder immediately shows how close it was to the next multiple.

Factor Structure, Custom Divisors, and Range Pattern Finding

Beyond the standard checks, the calculator also handles a custom divisor and summarizes the overall factor structure of the number. The prime factorization output shows how the number is built multiplicatively, while the full divisor list and divisor count make it easier to identify common factors for fraction reduction, least common multiple work, and pattern analysis.

The range divisibility grid adds a different kind of insight. After you choose a divisor and a start and end value, the calculator highlights which numbers in that range divide evenly. This is useful for spotting multiples, checking sequences, or building intuition about how often a divisor appears across consecutive integers. Together, the rules table, factor outputs, and range grid make the tool more informative than a single divisibility checkbox.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • By 2: last digit is even. By 3: digit sum divisible by 3. By 5: ends in 0 or 5. By 9: digit sum divisible by 9. By 10: ends in 0.