A familiar situation
Work out quotient and remainder when dividing a quantity into equal whole groups.
How to use this calculator
- Enter first integer, second integer.
- Select Calculate to see the answer and its breakdown.
- Keep a scenario, change an input and compare the results.
Use consistent units and check the assumptions below before applying the result.
How long division is calculated
For integers a and b≠0, quotient q=trunc(a/b) and remainder r=a−qb, so a=bq+r. This convention truncates the decimal quotient toward zero; some school methods instead use a nonnegative remainder, so the sign convention matters when either input is negative. Dividing 17 by 5 gives quotient 3, remainder 2, and decimal result 3.4.
a=bq+r, q=trunc(a/b), r=a−bq.Dividing 17 by 5 gives quotient 3, remainder 2, and decimal result 3.4.
Assumptions & useful context
The result depends on the values you enter and the method described above. Displayed numbers may be rounded; calculations use the unrounded values. Check that this model matches your situation before relying on it.
Frequently asked questions
Can the divisor be zero?
No; division by zero is undefined.
Why can a negative dividend have a negative remainder?
The identity a=bq+r is maintained using a quotient truncated toward zero.