A little clarity, calculated.

culators

Math / Long Division

Long Division Calculator

Divide one signed integer by another and show the integer quotient, remainder, and decimal quotient. The remainder follows the dividend’s sign, matching truncation toward zero. 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.

Your inputs

Make it your own
Calculator settings

Your result
0
Integer quotient
Remainder
12
Decimal quotient
0.666667

Example inputs shown. Adjust them to explore.

A familiar situation

Work out quotient and remainder when dividing a quantity into equal whole groups.

How to use this calculator

  1. Enter first integer, second integer.
  2. Select Calculate to see the answer and its breakdown.
  3. 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.
A worked example

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.

Find a calculator