Rules for 2, 5, and 10
Use the last digit. It must be even for 2, be 0 or 5 for 5, and be 0 for 10.
Examples of valid input: -1_234_567, 0, and +42. Commas and spaces are not accepted inside an integer.
The starting example is divisible: 203 ÷ 7 = 29 with remainder 0.
An integer n is divisible by a nonzero integer d when the division leaves no remainder. That means there is an integer q such that:
n = d × q + r
Divisible exactly when r = 0. This calculator reports the non-negative Euclidean remainder for |d|, so 0 ≤ r < |d|.
Signs do not change the yes-or-no test: if 84 is divisible by 7, then −84 is also divisible by 7, −7, or both. The displayed quotient keeps the entered signs when the remainder is zero.
Use the last digit. It must be even for 2, be 0 or 5 for 5, and be 0 for 10.
Add all digits. The original number is divisible by 3 or 9 when its digit sum is divisible by the same divisor.
Test only the last 2, 3, or 4 digits respectively. Earlier place values are multiples of the divisor.
Take the alternating sum of the digits. The number is divisible by 11 when that sum is a multiple of 11, including 0.
Use factor tests: 6 needs 2 and 3; 12 needs 3 and 4; 15 needs 3 and 5; 18 needs 2 and 9.
Remove the last digit and combine it with the remaining number: subtract 2 times it for 7, add 4 times it for 13, subtract 5 times it for 17, or add 2 times it for 19. Repeat as useful.
Exactness and limits: JavaScript BigInt arithmetic avoids floating-point rounding. Displayed long values are shortened visually, but copied and downloaded equations retain the complete integers.
A number is divisible by a nonzero divisor when the exact remainder is 0. For example, 203 is divisible by 7 because 203 = 7 × 29.
Zero is divisible by every nonzero integer because 0 = d × 0. Division by zero is undefined, so 0 is never accepted as the divisor.
Yes. The shortcut test uses absolute values because signs do not affect whether the remainder is zero.
Remove the last digit, double it, and subtract it from the remaining leading number. Repeat if helpful. The original integer is divisible by 7 exactly when the resulting integer is divisible by 7.
The tool uses a general digit-by-digit remainder method. It is an exact divisibility test for every nonzero integer divisor, even when there is no convenient mental shortcut.
The calculator uses the Euclidean remainder convention, which keeps the remainder from 0 through |d| − 1. This makes results consistent for negative inputs.
Yes. Validation and arithmetic happen entirely in your browser. The tool does not upload, store, or add your integers to the page URL.