Divisibility Checker
Check whether a number is divisible by another number as you type it, right in your browser.
Input
Output
No value
Guide
What is divisibility?
One whole number is divisible by another when dividing leaves no remainder. 12 is divisible by 3, because 12 divided by 3 is exactly 4, but 13 isn't: four threes make 12, and 1 is left over. The numbers divisible by 2 are the even numbers.
Divisibility comes up in math homework, when you share things out evenly (can 24 cupcakes go on 6 plates with none left over?), in calendars, where the leap year rule starts with years divisible by 4, and in code, where a remainder check picks every second row of a table or every third item of a list.
Tool description
Type or paste a number into the Number field, and set Divisor to the number to divide by. Divisor starts on 2, which tells you whether a number is even. The result shows as you type, as a sentence with your numbers in it, such as "12 is divisible by 3." or "13 isn't divisible by 3." Spaces and line breaks around a pasted number are ignored. While Divisor is empty, the result asks you to fill it in.
How numbers are read
- Negative numbers work: "-12 is divisible by 3."
- Zero counts as divisible: "0 is divisible by 7."
- Decimals need a dot, whatever language you read the page in. A number with decimals counts as divisible only when its decimals are all zeros:
4.0is divisible by 2, and4.5isn't. - Plus signs, leading zeros and e notation are fine:
+8,008and1e3(read as 1000) are all divisible by 2. - Anything that isn't a number gets the "isn't divisible" sentence: a word such as
twelve, a comma as the decimal separator (4,0), a thousands separator (1,000) or a space inside (1 000).
Good to know
- Divisor takes whole numbers greater than zero. For a divisor such as 2.5, 0 or -3, the result reads "Enter a whole number greater than zero in “Divisor”." instead of an answer.
- Very long numbers, past 15 digits, can get a wrong answer, because the browser rounds them before it divides.
- To find out whether a number has divisors other than 1 and itself, use the Prime Number Checker. For the largest divisor two numbers share, use the GCD Calculator.
Features
- Checks divisibility by any whole number
- Starts on 2, to tell even numbers from odd ones
- Handles negative numbers, decimals and e notation
- Answers as you type, in a sentence with your numbers
- Runs in your browser, so nothing you type is sent anywhere