Last Digit Divisibility Rules

Introduction

Welcome to Divisibility Shortcuts, the second course in our learning path! In the previous course, Foundations of Factors and Multiples, we built a solid understanding of factors, multiples, and prime versus composite numbers. Now we begin putting that knowledge to work with quick tests that tell us whether one number divides evenly into another — no long division required.

This is the first lesson of five in the course, and our focus today is on divisibility by 2, 5, and 10. By the end of this lesson, you will be able to check divisibility by any of these three numbers just by looking at a single digit. Even better, you will understand why that shortcut works.

What Does "Divisible By" Mean?

Divisibility by 2: The Last-Digit Test

A whole number is divisible by 2 if its last digit is 0, 2, 4, 6, or 8. These are the even digits. If the last digit is odd (1, 3, 5, 7, or 9), the number is not divisible by 2.

Grid showing digits 0–9 split into even (0,2,4,6,8) and odd (1,3,5,7,9) groups, color-coded to indicate divisibility by 2

Let's try a few examples:

NumberLast DigitEven?Divisible by 2?
1366YesYes
2,4811NoNo
7,9400YesYes

Notice that the size of the number does not matter. Whether you have a three-digit number or a ten-digit number, only the last digit decides divisibility by 2.

Divisibility by 5: Another Last-Digit Test

Divisibility by 10: The Simplest Test of All

Why the Last Digit Is All You Need

Quick-Reference Table

Conclusion and Next Steps

Sign up

Join the 1M+ learners on CodeSignal

Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal