How long division is calculated
Enter a dividend and a divisor. The quotient is the whole-number result truncated toward zero. The remainder is what is left so that divisor × quotient + remainder equals the dividend.
The decimal is the ordinary division of the same two numbers, shown to at most 6 decimal places. A divisor of 0 has no result.
How to use this calculator
- Enter the dividend.
- Enter the divisor.
- Read the quotient. The rows below are the remainder and the decimal.
Quotient and remainder
n is the dividend. d is the divisor. q is the quotient. r is the remainder.
q is truncated toward zero. When d is 0, this formula has no result.
Source
Dividing one integer by another, with a quotient and a remainder, is described on the Wikipedia page on long division.
Worked examples
Example: 17 divided by 5
The quotient is 3 and the remainder is 2, because 5 × 3 + 2 = 17. The decimal is 3.4.
Example: 100 divided by 4
The quotient is 25 and the remainder is 0, because 4 × 25 + 0 = 100. The decimal is 25.
What to keep in mind
Each number can be a whole number from −1,000,000,000,000 to 1,000,000,000,000. 7 divided by 3 has quotient 2, remainder 1, and decimal 2.333333. −17 divided by 5 has quotient −3 and remainder −2, because 5 × −3 + −2 = −17. A divisor of 0 has no result. A completed result, including both numbers, can be stored in this browser’s local history and never leaves your device. Clear it with the history Clear action or by clearing site data.
Common questions about long division
What is 17 divided by 5?
The quotient is 3 and the remainder is 2, because 5 × 3 + 2 = 17. The decimal is 3.4.
What is 100 divided by 4?
The quotient is 25 and the remainder is 0. The decimal is 25.
What is 7 divided by 3?
The quotient is 2 and the remainder is 1, because 3 × 2 + 1 = 7. The decimal is 2.333333.
What about a negative dividend or a divisor of 0?
−17 divided by 5 has quotient −3 and remainder −2. A divisor of 0 has no result.
What counts as a whole number?
An integer from −1,000,000,000,000 to 1,000,000,000,000. A decimal such as 1.5 has no result.
Does this calculator store my numbers?
A completed result can be saved in this browser’s local history, including both numbers. It stays on your device and is not sent to our servers or to analytics. Clear it with the history Clear action or by clearing site data.