FREE TOOLS. ZERO LIMITS.
No Signup RequiredNo Watermarks
ToolzNova · Math calculators

Remainder Calculator Online

Divide one whole number by another and see the quotient and remainder, written as dividend = divisor × quotient + remainder.

Remainder Calculator

Free remainder calculator that runs in your browser. Nothing is uploaded.

a = b × q + r

Works with whole numbers. For negative dividends, the remainder takes the dividend’s sign, as in most programming languages.

How to find a remainder

1Enter the dividend

The whole number being divided.

2Enter the divisor

The whole number you divide by; it can’t be zero.

3Read the result

See the remainder, the quotient and the full equation.

Remainder examples

The quotient is the whole number of times the divisor fits; the remainder is what is left.

With a negative dividend, this tool follows truncated division, so the remainder is negative.

DividendDivisorQuotientRemainder
17532
1007142
3657521
−175−3−2

Working with remainders

This short guide explains what the remainder calculator does, how to get the best result and when another tool is a better fit.

What a remainder is

When one whole number doesn’t divide another exactly, something is left over. 17 ÷ 5 is 3 with 2 left over, because 5 × 3 = 15 and 17 − 15 = 2. That leftover is the remainder. Writing it as 17 = 5 × 3 + 2 shows all the pieces at once and is how the calculator presents the answer.

Remainder Calculator – 17 ÷ 5 to r 2
How the remainder calculator works: 17 ÷ 5 in, r 2 out.

If the remainder is 0, the divisor is a factor of the dividend.

Remainders in everyday life

Remainders answer practical questions. 365 days is 52 weeks and 1 day, which is why your birthday moves forward one weekday each year, or two after 29 February. Sharing 100 sweets among 7 children gives 14 each with 2 left. Packing 230 bottles in boxes of 24 fills 9 boxes with 14 bottles left over.

In clock arithmetic, 15:00 plus 11 hours is 26 ÷ 24, remainder 2, so 02:00.

A worked example

You want to know what weekday it will be 100 days after a Monday. Divide 100 by 7: quotient 14, remainder 2. Fourteen whole weeks bring you back to Monday, and 2 more days make it Wednesday. The same method works for any repeating cycle, such as shift patterns or rotating rotas.

Programmers use the remainder (modulo) operator for exactly these kinds of repeating patterns.

Negative numbers

Different systems treat negative remainders differently. This calculator uses truncated division, like JavaScript, C and Java: −17 ÷ 5 gives quotient −3 and remainder −2. Mathematicians often prefer a non-negative remainder, which would give quotient −4 and remainder 3. Both satisfy dividend = divisor × quotient + remainder.

If you need the non-negative version, add the divisor to a negative remainder: −2 + 5 = 3.

Related tools

To find common multiples, use the LCM Calculator. For exact decimal answers instead of remainders, the Fraction to Decimal Calculator divides and shows the result as a decimal.

  • dividend = divisor × quotient + remainder
  • Remainder 0 means exact division
  • Negative remainders follow the dividend’s sign here

Further reading: Remainders explained. It explains the format behind this remainder calculator in more detail.

Where it helps

Sharing out

Equal shares and leftovers.

Calendars

Weekdays after a number of days.

Packing

Full boxes and spare items.

Coding

Check modulo results.

Quick fixes

“Enter integer values…”

Both numbers must be whole numbers and the divisor non-zero.

Negative remainder

Truncated division keeps the dividend’s sign; add the divisor for a positive remainder.

Need a decimal answer

Use the Fraction to Decimal Calculator.

Result didn’t change

Press the calculate button again after editing, or check that every box contains a number.

Frequently asked questions

What is a remainder?

What is left after dividing as many whole times as possible.

What is 17 ÷ 5?

3 remainder 2.

What does remainder 0 mean?

The division is exact.

Can I use decimals?

No, whole numbers only.

What about negative numbers?

The remainder takes the dividend’s sign, e.g. −17 ÷ 5 gives −2.

Is this the same as modulo?

Yes, as in most programming languages.

Is my data uploaded?

No. The remainder calculator works entirely in your browser, so your file stays on your device.

Can the divisor be zero?

No, division by zero is undefined.

How many weeks in 365 days?

52 weeks and 1 day.

How do I get a positive remainder?

Add the divisor to a negative remainder.