Remainder Calculator
Enter a dividend and a divisor to find the remainder and the quotient.
Updated
Remainder Calculator
Our Remainder Calculator divides one number by another and
shows what is left over, together with the whole-number quotient, the decimal quotient and a
check of the answer. Use it for long division homework, sharing things out equally, clock and
calendar sums, or the modulo (%) operator in code. It works with decimals and
negative numbers too, and keeps every digit you type so the answer is exact.
Quick answer
The remainder is what is left after dividing as many whole times as possible. For example, 26 ÷ 4 = 6 R 2, because 4 × 6 = 24 and 26 − 24 = 2. Enter any two numbers above and the calculator shows the remainder instantly.
- Formula: remainder = dividend − divisor × quotient
- Check: dividend = divisor × quotient + remainder
- Size: the remainder is always at least 0 and smaller than the divisor
- Modulo: 26 mod 4 = 2, written 26 % 4 in code
What Is a Remainder?
When you divide one number (the dividend) by another (the divisor), the divisor often does not fit an exact number of times. The quotient is how many whole times it fits, and the remainder is the part that is left over. Share 26 apples between 4 friends and each gets 6, with 2 apples left: 6 is the quotient and 2 is the remainder.
[ 4 ] [ 4 ] [ 4 ] [ 4 ] [ 4 ] [ 4 ] ( 2 )
6 groups of 4 = 24 2 left over
26 = 4 × 6 + 2
Remainder Formula
R = D − d × Q or R = D mod d
Here D is the dividend, d the divisor, Q the quotient (the whole-number part of D ÷ d) and R the remainder, with 0 ≤ R < d. Mathematicians call this the division algorithm: for any whole number and any divisor other than zero there is exactly one such quotient and remainder.
Worked Examples
45 ÷ 7. 7 fits into 45 six times (7 × 7 = 49 is too big).
Step 2, multiply: 7 × 6 = 42
Step 3, subtract: 45 − 42 = 3
45 ÷ 7 = 6 R 3 check: 7 × 6 + 3 = 45
1225 ÷ 32. 32 × 38 = 1216 and 32 × 39 = 1248 is too big, so the quotient is 38 and the remainder is 1225 − 1216 = 9. As a decimal, 1225 ÷ 32 = 38.28125.
| Division | Quotient | Remainder | Decimal |
|---|---|---|---|
| 26 ÷ 4 | 6 | 2 | 6.5 |
| 45 ÷ 7 | 6 | 3 | 6.4286 |
| 30 ÷ 9 | 3 | 3 | 3.3333 |
| 50 ÷ 6 | 8 | 2 | 8.3333 |
| 100 ÷ 7 | 14 | 2 | 14.2857 |
| 1225 ÷ 32 | 38 | 9 | 38.2813 |
| 7.5 ÷ 2 | 3 | 1.5 | 3.75 |
To write the answer as a mixed number, put the remainder over the divisor: 45 ÷ 7 = 6 3/7. For whole-number division that rounds down, see the Floor Division Calculator.
Remainders of Negative Numbers
With negative numbers there are three common rules, and they give different answers. This calculator shows the mathematical (Euclidean) remainder, which is never negative (the “Maths” column), and lists the other two under the result whenever a number is negative.
| Division | Maths | JS, C, Java | Python, Excel |
|---|---|---|---|
| −7 ÷ 2 | 1 | −1 | 1 |
| 7 ÷ −2 | 1 | 1 | −1 |
| −7 ÷ −2 | 1 | −1 | −1 |
| −17 ÷ 5 | 3 | −2 | 3 |
The JS, C, Java column is the % operator in
those languages; the Python, Excel column is Python’s % and Excel’s MOD. All three satisfy dividend = divisor × quotient +
remainder; they just choose a different quotient. For −7 ÷ 2 the maths rule uses −4
(2 × (−4) + 1 = −7), while JavaScript uses −3 (2 × (−3) − 1 = −7).
Real-World Uses
Time: 100 minutes → 100 ÷ 60 = 1 R 40, so 1 h 40 min
Clocks: 14:00 + 10 hours → 24 mod 24 = 0, so 00:00 (midnight)
Calendar: 365 days after a Monday → 365 mod 7 = 1, so a Tuesday
Even/odd: n mod 2 → 0 means even, 1 means odd
Digits: 1234 mod 10 → 4, the last digit
Remainders also decide which server handles a request (load balancing), where an item goes in a hash table, and how check digits on barcodes and ISBNs are worked out. Modular arithmetic is the basis of RSA and other encryption methods.
Remainder in Excel and Code
| Tool | Remainder, then quotient |
|---|---|
| Excel / Sheets | =MOD(26, 4) → 2 =QUOTIENT(26, 4) → 6 |
| Python | 26 % 4 → 2 26 // 4 → 6 divmod(26, 4) → (6, 2) |
| JavaScript | 26 % 4 → 2 Math.trunc(26 / 4) → 6 |
| C / Java | 26 % 4 → 2 26 / 4 → 6 |
In C and Java, / between two integers already
drops the decimal part, so 26 / 4 is 6. Excel’s QUOTIENT also drops the decimal part, while
MOD follows the divisor’s sign, so the two do not always pair up for negative numbers.
Common Mistakes
- Reading the decimal as the remainder. 26 ÷ 4 = 6.5, but the remainder is 2, not 5. Multiply the decimal part by the divisor: 0.5 × 4 = 2.
- Leaving a remainder that is too big. If the remainder is equal to or larger than the divisor, the quotient is too small.
- Swapping dividend and divisor. 4 ÷ 26 = 0 R 4, not 6 R 2.
- Assuming % works the same everywhere. −7 % 2 is −1 in JavaScript but 1 in Python.
Key Terms
- Dividend
- The number being divided (26 in 26 ÷ 4).
- Divisor
- The number you divide by (4 in 26 ÷ 4).
- Quotient
- How many whole times the divisor fits into the dividend (6).
- Remainder
- What is left over after taking out the whole groups (2).
- Modulo (mod)
- The operation that returns the remainder, written % in code.
- Divisible
- Divides with a remainder of 0, so 24 is divisible by 4.
How to Use the Remainder Calculator
- Enter the dividend. Type the number you want to divide in the “Dividend” box, for example 26. Whole numbers, decimals and negative numbers all work.
- Enter the divisor. Type the number you are dividing by in the “Divisor” box, for example 4. It can be any number except 0.
- Read the remainder. The remainder appears as you type, with the working underneath (for example 26 ÷ 4 = 6 R 2). The table below shows the whole-number quotient, the decimal quotient and a check, 4 × 6 + 2 = 26.
- Copy the result. Press Copy to copy the remainder. Press Clear or Esc to start again.
Example: enter −17 and 5 and the remainder is 3, with the working −17 ÷ 5 = −4 R 3 and the check 5 × (−4) + 3 = −17.
Who Can Use This Calculator?
Frequently Asked Questions (FAQs)
What is a remainder in division?
The remainder is the amount left over when one whole number does not divide another exactly. 26 ÷ 4 = 6 remainder 2, because 4 × 6 = 24 and 26 − 24 = 2. The remainder is always smaller than the divisor; if it is 0, the division is exact.
How do you find the remainder?
Divide and keep only the whole-number part of the answer (the quotient), multiply it by the divisor, and subtract that from the dividend. For 45 ÷ 7: 45 ÷ 7 = 6.43, so the quotient is 6; 7 × 6 = 42; 45 − 42 = 3. The remainder is 3.
How do you find the remainder with a normal calculator?
Divide, take the digits after the decimal point and multiply them by the divisor. 45 ÷ 7 = 6.428571…, and 0.428571… × 7 = 3. If the answer is not quite a whole number (2.9999), round it to the nearest whole number.
What is the difference between remainder and modulo?
For positive numbers they are the same: 26 mod 4 = 2. “Mod” (modulo) is the name for the remainder operation, written % in most programming languages. They only differ with negative numbers, where each language follows its own rule (see the next question).
What is the remainder when dividing negative numbers?
In maths the remainder is usually kept between 0 and the divisor, so −7 ÷ 2 = −4 R 1 because 2 × (−4) + 1 = −7. This is what the calculator shows. Programming languages differ: in JavaScript, C and Java, −7 % 2 is −1 (the dividend’s sign), while in Python −7 % 2 is 1 and Excel’s =MOD(−7, 2) is 1 (the divisor’s sign). The table under the result shows all three when a number is negative.
Can the remainder be bigger than the divisor?
No. If what is left over is equal to or bigger than the divisor, the divisor fits in at least once more, so the quotient goes up by 1. Dividing by 7 can only leave 0, 1, 2, 3, 4, 5 or 6.
Can you find the remainder with decimals?
Yes. The quotient is still a whole number and the remainder is what is left: 7.5 ÷ 2 = 3 R 1.5, because 2 × 3 + 1.5 = 7.5. The calculator works on the digits exactly, so 0.3 ÷ 0.1 gives remainder 0, not a tiny rounding error.
How do you turn a remainder into a fraction or decimal?
Put the remainder over the divisor. 26 ÷ 4 = 6 R 2 = 6 2/4 = 6 1/2 = 6.5, and 45 ÷ 7 = 6 R 3 = 6 3/7 ≈ 6.4286.
What happens if you divide by zero?
There is no answer. No quotient times 0 can give back a non-zero dividend, so division by zero (and the remainder with it) is undefined. The calculator asks for a divisor other than 0.
Is the Remainder Calculator free?
Yes. It is completely free, needs no sign-up, and can be used as many times as you like.
Try our Remainder Calculator to find what is left over in any division instantly.