You have reached the midpoint of the Divisibility Shortcuts course — this is lesson three of five. So far, your toolkit includes two types of tests: the last-digit check for 2, 5, and 10 (Lesson 1) and the digit-sum check for 3 and 9 (Lesson 2). Today you will add a third type that falls neatly between the two: a test that looks at the last two digits of a number. The divisor in focus is 4. By the end of this lesson, you will be able to test divisibility by at a glance, and you will understand the place-value reason only two digits are needed.
Why One Digit Falls Short
Recall that divisibility by 2 depends only on the last digit because 10 is divisible by 2. Can the same reasoning extend to 4? A quick check says no: 10÷4= remainder , so is divisible by . That single fact tells us the last digit alone cannot settle the question.
The Last-Two-Digits Rule
Here is the rule: a whole number is divisible by 4 if and only if the number formed by its last two digits is divisible by 4.
To apply it, ignore every digit except the final two, then check whether that two-digit number is a multiple of 4. A few examples show the rule in action:
Number
Last Two Digits
Last Two ÷ 4
Divisible by 4?
316
16
16÷4=4
Yes
530
30
30÷ R
Why Only the Last Two Digits Matter
The explanation follows the same place-value thinking we used in earlier lessons, but this time the magic number is 100. Any whole number can be split into two parts: everything from the hundreds place upward, and the remaining last two digits. For example:
1,748=17×100+48
In general, every whole number takes this form:
number
Handling the Two-Digit Check
Knowing the rule is one thing; quickly judging whether a two-digit number is a multiple of 4 is another. Numbers like 20, 40, or 60 are easy, but what about less obvious cases such as 76 or 08? Two simple mental strategies can help.
Strategy 1 — Halve twice. A number is divisible by when you can halve it twice and get a whole number each time. For : half of is , and half of is . Both results are whole numbers, so is divisible by .
Testing House Numbers on a Street
Suppose you are walking down a street and want to know whether house number 4,832 is divisible by 4. The rule makes this a two-step process.
Step 1 — Isolate the last two digits. The last two digits of 4,832 are 32.
Step 2 — Test the two-digit number.32÷4=8 with no remainder, so 32 is a multiple of .
Special Cases Worth Noting
A few edge cases are worth keeping in mind as you apply the rule:
Numbers ending in 00. If the last two digits are 00, the number is divisible by 4 because 0÷4=0 with no remainder. For example, 500 and both pass the test.
Quick-Reference Summary
Here is how the rule for 4 fits alongside every shortcut you have learned so far:
Divisor
What to Check
Why It Works
2
Last digit is even
10 is divisible by 2
5
Last digit is 0 or 5
is divisible by
Conclusion and Next Steps
In this lesson, you learned that divisibility by 4 depends entirely on the last two digits of a number. The reason traces back to one fact: 100 is a multiple of 4, so everything from the hundreds place upward is automatically divisible by 4, leaving only the final two digits to decide. You also picked up two mental strategies — halving twice and comparing to nearby multiples — for quickly testing those two digits.
Now it is time to put the rule to work! In the upcoming practice tasks, you will sort house numbers by divisibility, identify which arena seats qualify for a promotional voucher, and explain in your own words why the last two digits hold all the power.
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal
4
2
2
10
not
4
A concrete example makes this clear. The numbers 12 and 32 both end in 2, and both are divisible by 4. But 22 and 42 also end in 2, and neither is divisible by 4. One digit simply does not carry enough information — we need to look a little further to the left.
4
=
7
2
No
1,748
48
48÷4=12
Yes
2,310
10
10÷4=2 R 2
No
Notice that the size of the full number does not matter. Whether it has three digits, four digits, or twenty, only the last two decide divisibility by 4.
=
(some whole number)×
100+
(last two digits)
Because 100÷4=25 with no remainder, the first part is always divisible by 4, regardless of what that leading portion is. That means the entire number's divisibility by 4 hinges solely on whether the last two digits form a multiple of 4. The hundreds, thousands, and all higher places are automatically taken care of.
4
76
76
38
38
19
76
4
Strategy 2 — Use a nearby multiple of 4. You probably know that 80 is divisible by 4. Since 76=80−4, and 4 is itself divisible by 4, the number 76 must be as well. Similarly, 08=8, and 8÷4=2 exactly, so 08 passes the test.
With practice, you will start recognizing the twenty-five two-digit multiples of 4 on sight: 04,08,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96, and 00.
4
Conclusion:4,832 is divisible by 4. A quick verification confirms it: 4,832÷4=1,208.
Now consider house number 4,718. The last two digits are 18. Since 18÷4=4 remainder 2, the number 18 is not a multiple of 4, and neither is 4,718. Two digits, a few seconds of thought, and you have your answer.
1,200
Numbers less than 100. When the number itself has only one or two digits, the "last two digits" are simply the number itself. For 36, check 36÷4=9 — it passes.
Quick screening with the even test. Every multiple of 4 is also even, since 4=2×2. So if a number fails the even test from Lesson 1 (its last digit is odd), you can immediately rule out divisibility by 4 without examining two digits at all.
10
5
10
Last digit is 0
Exact match with base 10
3
Digit sum divisible by 3
Powers of 10 leave remainder 1 when divided by 3
9
Digit sum divisible by 9
Powers of 10 leave remainder 1 when divided by 9
4
Last two digits divisible by 4
100 is divisible by 4
Each rule exploits a different feature of the base-ten system. The rule for 4 sits neatly between the single-digit checks and the full digit-sum checks, relying on exactly two digits.