Divisibility Rules

Divisibility rules determine when one number divides into another evenly with no remainder — use them to quickly check if a number is a multiple.

n0(modd)n \equiv 0 \pmod{d}

Solve a problem with Divisibility Rules

Type the problem. The solver will use Divisibility Rules where Divisibility Rules is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Divisibility Rules takes
nn
dd
Divisibility Rules
SymbolMeaning
nnThe number you are dividing — the larger number in a division problem.
ddThe divisor — the number you're dividing by, or the number you're checking to see if it goes into nn evenly.

When to use it

When you need to know if one number divides evenly into another without doing full long division.

Level

Usually taught in: Pre-Algebra

Worked examples

1. Check if 15 is divisible by 3

Problem

Determine whether 1515 is divisible by 33 — that is, whether 150(mod3)15 \equiv 0 \pmod{3}.
  1. 15÷3=515 \div 3 = 5

    Divide n=15n = 15 by d=3d = 3 to see what happens.

  2. 5×3=155 \times 3 = 15

    Check: multiply the answer back. We get exactly 1515, not 1515 plus something left over.

  3. 15 has remainder 015 \text{ has remainder } 0

    Since we get exactly 1515 with no leftover, the remainder is 00.

Answer: 150(mod3) — yes, 15 is divisible by 315 \equiv 0 \pmod{3} \text{ — yes, 15 is divisible by 3}

When we divide 1515 by 33, we get a whole number (55) with nothing left over. That remainder of 00 is the key: it means 33 divides into 1515 evenly, so 1515 is divisible by 33.

2. Check if 37 is divisible by 5

Problem

Determine whether 3737 is divisible by 55 — that is, whether 370(mod5)37 \equiv 0 \pmod{5}.
  1. 37÷5=7 R 237 \div 5 = 7 \text{ R } 2

    Divide n=37n = 37 by d=5d = 5. The quotient is 77 and the remainder is 22.

  2. 7×5=357 \times 5 = 35

    Multiply back: 55 goes into 3737 a total of 77 times, making 3535.

  3. 3735=237 - 35 = 2

    Subtract to find the remainder: 3735=237 - 35 = 2. This leftover is the remainder.

Answer: 372(mod5) — no, 37 is not divisible by 537 \equiv 2 \pmod{5} \text{ — no, 37 is not divisible by 5}

Since the remainder is 22 (not 00), 55 does not divide evenly into 3737. The symbol 372(mod5)37 \equiv 2 \pmod{5} means the remainder is 22, so 3737 is not divisible by 55.

3. Decide if a gift can be split equally

Problem

A teacher has 2828 pencils to give equally to 44 students. Can each student get the same whole number of pencils with none left over? Check whether 2828 is divisible by 44.
  1. 28÷4=728 \div 4 = 7

    Divide the total (2828) by the number of students (44). We get 77 with no remainder.

  2. 7×4=287 \times 4 = 28

    To verify: if each student gets 77 pencils, then 7×4=287 \times 4 = 28 pencils total—exactly what we have.

  3. 280(mod4)28 \equiv 0 \pmod{4}

    Since the remainder is 00, we can write this using modular notation: 2828 is congruent to 00 modulo 44.

Answer: Yes, each student gets 7 pencils with none left over\text{Yes, each student gets } 7 \text{ pencils with none left over}

Because 2828 is divisible by 44 (remainder is 00), we can split the pencils equally. In modular arithmetic, 280(mod4)28 \equiv 0 \pmod{4} tells us exactly this: there is no remainder.

Common mistakes

Where Divisibility Rules usually goes wrong
Answer came out wrong
Writing 240(mod5)24 \equiv 0 \pmod{5} because the numbers look like they might go together.
Divide: 24÷5=424 \div 5 = 4 R 44, so 244(mod5)24 \equiv 4 \pmod{5}2424 is not divisible by 55.
Confusing the quotient with the remainder, writing 155(mod3)15 \equiv 5 \pmod{3} because 15÷3=515 \div 3 = 5.
Write 150(mod3)15 \equiv 0 \pmod{3} — the remainder is 00 because 33 divides 1515 perfectly.
Claiming 12≢0(mod4)-12 \not\equiv 0 \pmod{4} because the number is negative.
Check: 12÷4=3-12 \div 4 = -3 R 00, so 120(mod4)-12 \equiv 0 \pmod{4} — negative numbers can be divisible.
The mistakeWhy it is wrongThe fix
Writing 240(mod5)24 \equiv 0 \pmod{5} because the numbers look like they might go together.Actually, 24÷5=424 \div 5 = 4 R 44, so the remainder is 44, not 00. You must actually do the division, not guess.Divide: 24÷5=424 \div 5 = 4 R 44, so 244(mod5)24 \equiv 4 \pmod{5}2424 is not divisible by 55.
Confusing the quotient with the remainder, writing 155(mod3)15 \equiv 5 \pmod{3} because 15÷3=515 \div 3 = 5.The number in the modulo statement is the remainder, not the answer to the division. When 15÷3=515 \div 3 = 5, the remainder is 00, not 55.Write 150(mod3)15 \equiv 0 \pmod{3} — the remainder is 00 because 33 divides 1515 perfectly.
Claiming 12≢0(mod4)-12 \not\equiv 0 \pmod{4} because the number is negative.Divisibility works for negative numbers too: 12÷4=3-12 \div 4 = -3 with remainder 00, so 12-12 is divisible by 44.Check: 12÷4=3-12 \div 4 = -3 R 00, so 120(mod4)-12 \equiv 0 \pmod{4} — negative numbers can be divisible.

Tips and when to use something else

  • When the remainder is 00, the number nn is divisible by dd — write it as n0(modd)n \equiv 0 \pmod{d}.
  • Use the Modulo Operation if you need to understand what the remainder means symbolically; divisibility rules are just the 0\equiv 0 case.
  • For quick checks without long division, learn divisibility tests for 2,3,5,9,102, 3, 5, 9, 10 — they use patterns in digits instead of dividing.

Frequently asked questions

What does the squiggly symbol \equiv mean?
That is the congruence symbol. When you write n0(modd)n \equiv 0 \pmod{d}, it means nn and 00 have the same remainder when divided by dd — in other words, nn is divisible by dd. It is not an equals sign, but for this purpose it means the same thing.
Why do I need to learn this instead of just doing regular division?
Divisibility rules are a foundation for many topics later: when fractions simplify, when numbers are prime, and how patterns work with remainders. The modulo notation is also much faster to write and reason about than saying "divide and check the remainder."
Can 00 be divisible by a number, like is 00(mod5)0 \equiv 0 \pmod{5}?
Yes — 00 is divisible by every nonzero number because 0÷5=00 \div 5 = 0 with remainder 00. So 00(modd)0 \equiv 0 \pmod{d} is always true for any divisor dd.
What if the remainder is not 00? Can I still write a modulo equation?
Yes. If nn is not divisible by dd, you write the actual remainder. For example, 17÷5=317 \div 5 = 3 R 22, so 172(mod5)17 \equiv 2 \pmod{5}. The remainder just will not be 00.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18