Quotient and Remainder Calculator

Enter a dividend and divisor to see the quotient and remainder together.

How it is calculated

The tool divides and rounds the quotient down to a whole number, q = ⌊dividend ÷ divisor⌋, then finds what is left with r = dividend − divisor × q, so dividend = divisor × q + r always holds exactly. With a positive divisor, r runs from 0 to divisor − 1, even for a negative dividend (−100 ÷ 7 gives −15 remainder 5, not −14). With a negative divisor the remainder is 0 or negative (100 ÷ −7 gives −15 remainder −5). Both numbers must be whole; a decimal such as 100.5, a zero divisor, or an empty box shows no result. Whole numbers up to 9,007,199,254,740,992 (253) are handled exactly and larger ones show no result, even when typed as an exact integer such as 9007199254740993; the tool refuses rather than rounds. Results are printed with thousands separators.

Worked example

Divide 100 by 7. Step 1: 100 ÷ 7 = 14.2857…, and rounding down gives a quotient of 14. Step 2: 7 × 14 = 98. Step 3: the remainder is 100 − 98 = 2. The tool prints quotient 14 and remainder 2. Check: 7 × 14 + 2 = 100. In time terms, 100 minutes is 14 groups of 7 minutes and 2 minutes over.

Try this example →

Common mistakes

  • Rounding the quotient to the nearest whole number instead of down. 20 ÷ 7 is 2.86, which rounds to 3, but the quotient is 2 with remainder 6.
  • Entering a negative dividend and expecting a negative remainder. Here −100 ÷ 7 gives quotient −15 and remainder 5, because the quotient is floored and the remainder takes the divisor's sign.
  • Entering decimals such as 7.5. The tool works on whole numbers only and shows nothing for a fractional dividend or divisor.
  • Swapping dividend and divisor. 7 ÷ 100 gives quotient 0 and remainder 7.
  • Treating the remainder as a decimal part. A remainder of 2 means 2 left over, not 0.2.

About this calculator

Dividing one whole number, the dividend, by another, the divisor, produces two results at once: the whole-number quotient, how many times the divisor fits completely into the dividend (rounded down), and the remainder, whatever is left over, always smaller in size than the divisor. Formally, dividend = divisor × quotient + remainder. With a positive divisor the remainder is between 0 and the divisor minus 1, even for a negative dividend (−7 ÷ 3 gives quotient −3, remainder 2); with a negative divisor the remainder is 0 or negative (7 ÷ −3 gives quotient −3, remainder −2).

This pairing is a building block far beyond school long-division drills: computer science relies on the remainder, the modulo operation, for tasks like assigning items to buckets in a hash table, wrapping array indices, and generating pseudo-random sequences, while the quotient-remainder pair underlies clock arithmetic, such as converting a total number of minutes into hours and remaining minutes, and unit conversions that mix whole and fractional units.

Both numbers must be whole, since decimals are not accepted, and the divisor cannot be zero.

Was this helpful?

You can pick up to 3 reactions.

Comments

  • Be the first to comment.

Popular calculators

All Calculators