Remainder Calculator
Use this remainder calculator to divide one integer by another and find the quotient, remainder, decimal result, and modulo form. The remainder is the amount left over after division when the divisor does not divide the dividend evenly. The main division algorithm is \[a=bq+r\] where \(a\) is the dividend, \(b\) is the divisor, \(q\) is the quotient, and \(r\) is the remainder. Enter your dividend and divisor below to see the answer with step-by-step working.
Calculate Remainder
Enter a dividend and divisor. The calculator will find the integer quotient and the remainder using the division algorithm.
Result
The Euclidean remainder is always nonnegative and less than the absolute value of the divisor. This is the most common classroom convention.
Remainder Formula
The remainder formula is based on the division algorithm:
Here, \(a\) is the dividend, \(b\) is the divisor, \(q\) is the integer quotient, and \(r\) is the remainder. For Euclidean division, the remainder satisfies:
The quotient can be found using floor-style division when the divisor is positive:
Then the remainder is:
Division form
\(29\div5=5\) remainder \(4\), because \(29=5(5)+4\).
Modulo form
\(29\bmod5=4\). Modulo notation means “the remainder after division.”
How to Use the Remainder Calculator
- Enter the dividend. This is the number being divided.
- Enter the divisor. This is the number you divide by.
- Choose a remainder convention. For most school math, use Euclidean remainder.
- Choose how many decimal places you want for the decimal division value.
- Click Calculate Remainder.
- Read the quotient, remainder, division algorithm form, modulo form, and decimal form.
Remainder, Quotient, and Modulo Formulas
| Concept | Formula | Meaning |
|---|---|---|
| Division algorithm | \[a=bq+r\] | Every integer dividend can be written as divisor times quotient plus remainder. |
| Euclidean remainder rule | \[0\le r<|b|\] | The remainder is nonnegative and smaller than the absolute value of the divisor. |
| Remainder formula | \[r=a-bq\] | After finding the quotient, subtract divisor times quotient from the dividend. |
| Modulo notation | \[a\bmod b=r\] | Reads as “a modulo b equals the remainder r.” |
| Divisibility | \[a\bmod b=0\] | If the remainder is zero, then \(b\) divides \(a\) evenly. |
| Decimal division | \[\frac{a}{b}=q+\frac{r}{b}\] | The exact division can be written as quotient plus remainder over divisor. |
| Long division statement | \[a\div b=q\text{ R }r\] | A common school notation for quotient and remainder. |
Worked Examples
Example 1: Find the remainder of 29 divided by 5
Divide \(29\) by \(5\).
The quotient is \(5\), and the remainder is \(4\).
Example 2: Remainder of 100 divided by 9
Divide \(100\) by \(9\).
The quotient is \(11\), and the remainder is \(1\).
Example 3: Divisibility with zero remainder
Divide \(84\) by \(7\).
The remainder is \(0\), so \(84\) is divisible by \(7\).
Example 4: Remainder as a fraction
Divide \(23\) by \(4\).
The quotient is \(5\), the remainder is \(3\), and the decimal result is \(5.75\).
Example 5: Negative dividend using Euclidean remainder
Find the Euclidean remainder of \(-17\) divided by \(5\).
The Euclidean remainder is \(3\) because it satisfies \(0\le r<5\).
Complete Guide to Remainders
A remainder is the amount left over after dividing one number by another. In elementary arithmetic, remainders appear when division does not come out evenly. For example, if \(29\) objects are shared equally among \(5\) groups, each group gets \(5\) objects and \(4\) objects remain. This is written as \(29\div5=5\) remainder \(4\).
The idea of a remainder becomes more powerful in algebra, number theory, computer science, cryptography, programming, calendar calculations, divisibility tests, and modular arithmetic. A remainder is not just a leftover number; it tells how a dividend relates to a divisor. It can identify divisibility, repeating patterns, parity, clock cycles, and congruence classes.
Dividend, divisor, quotient, and remainder
To understand remainders clearly, it helps to know the four main parts of division. The dividend is the number being divided. The divisor is the number you divide by. The quotient is the whole-number result of division. The remainder is what is left after the divisor has been multiplied by the quotient and subtracted from the dividend.
For example, in \(29\div5\), the dividend is \(29\), the divisor is \(5\), the quotient is \(5\), and the remainder is \(4\). The relationship is shown by \(29=5(5)+4\).
The division algorithm
The division algorithm is the formal rule behind quotient and remainder. It says that for integers \(a\) and \(b\), where \(b\ne0\), there are integers \(q\) and \(r\) such that:
For Euclidean division, the remainder must satisfy:
This condition makes the quotient and remainder unique. Without a clear remainder convention, negative numbers can produce different quotient-remainder pairs depending on how the quotient is rounded.
Why the remainder is smaller than the divisor
In standard division, the remainder must be smaller than the divisor’s absolute value. If the remainder were equal to or greater than the divisor, you could divide one more time. For example, \(29=5(4)+9\) is true algebraically, but it is not the standard quotient-remainder form because the remainder \(9\) is greater than \(5\). You can take another group of \(5\), giving \(29=5(5)+4\).
This is why the Euclidean remainder rule requires \(0\le r<|b|\). It ensures the remainder is the true leftover amount after taking out as many full divisor groups as possible.
Remainder and modulo
Modulo notation is a compact way to write the remainder. The expression \(a\bmod b\) means the remainder when \(a\) is divided by \(b\). For example:
Modulo notation is very common in programming and number theory. It is used to determine whether numbers are even or odd, repeat patterns, wrap values around a cycle, and work with clocks or calendars. For example, \(17\bmod2=1\), so \(17\) is odd. Also, \(18\bmod2=0\), so \(18\) is even.
Remainder and divisibility
A number is divisible by another number if the remainder is zero. For example, \(84\bmod7=0\), so \(84\) is divisible by \(7\). If the remainder is not zero, the division is not exact. For example, \(85\bmod7=1\), so \(85\) is not divisible by \(7\).
This is the basis of many divisibility tests. A number is divisible by \(2\) if its remainder after division by \(2\) is zero. A number is divisible by \(5\) if its remainder after division by \(5\) is zero. Divisibility tests are shortcuts for predicting remainders without doing full division.
Remainder as a fraction or decimal
A quotient and remainder can also be converted into a fraction or decimal. If \(a=bq+r\), then dividing both sides by \(b\) gives:
For example, \(23=4(5)+3\), so \(\frac{23}{4}=5+\frac{3}{4}=5.75\). In elementary division, the answer might be written as \(5\) remainder \(3\). In decimal form, it is \(5.75\). Both forms describe the same division, but they are useful in different contexts.
Long division and remainders
Long division is a step-by-step method for finding the quotient and remainder. You divide, multiply, subtract, and bring down digits until all digits have been used. The final number left after subtraction is the remainder. If the remainder is zero, the division is exact. If the remainder is not zero, it can be left as a remainder, written as a fraction, or continued as a decimal.
For example, when dividing \(100\) by \(9\), the largest multiple of \(9\) less than or equal to \(100\) is \(99\). Since \(9(11)=99\), the quotient is \(11\). The remainder is \(100-99=1\).
Remainders with negative numbers
Negative numbers can make remainders confusing because different systems use different division conventions. In Euclidean division, the remainder is always nonnegative. For example, \(-17\bmod5=3\) because \(-17=5(-4)+3\) and \(0\le3<5\). This convention is common in number theory and many classroom settings.
Some programming languages use truncated division, where the quotient is rounded toward zero. Under truncated division, \(-17\div5\) gives quotient \(-3\), and the remainder is \(-2\) because \(-17=5(-3)-2\). This is why the calculator includes multiple remainder conventions.
Euclidean remainder vs programming remainder
The Euclidean remainder is usually best for pure math because it produces a remainder between \(0\) and \(|b|-1\) for integer divisors. Programming languages may define remainder differently when negative numbers are involved. For positive dividends and positive divisors, most conventions agree. For negative values, they may differ.
If you are solving a school arithmetic problem, use Euclidean remainder unless your teacher says otherwise. If you are writing code, check the language’s definition of the modulo or remainder operator. In many languages, the sign of the remainder follows the dividend for truncated division. In some math-oriented environments, modulo returns a nonnegative value.
Remainders in clocks and calendars
Remainders are useful for circular patterns. A clock is a common example. If it is \(10\) o’clock and \(5\) hours pass, the time is \(3\) o’clock, not \(15\) o’clock on a 12-hour clock. This is a modulo calculation:
Calendars work similarly. Days of the week repeat every \(7\) days. If today is Monday, then \(10\) days later is the same as \(10\bmod7=3\) days later, which is Thursday.
Remainders in even and odd numbers
One of the simplest uses of remainders is identifying even and odd numbers. A number is even if it has remainder \(0\) when divided by \(2\). A number is odd if it has remainder \(1\) when divided by \(2\). In modulo notation:
This idea is used constantly in programming. For example, a program can test whether a number is even by checking whether \(n\bmod2\) equals \(0\).
Remainders in repeating patterns
Remainders help identify positions in repeating patterns. Suppose a pattern repeats every \(4\) terms: red, blue, green, yellow. To find the color at position \(23\), divide \(23\) by \(4\). Since \(23\bmod4=3\), the position corresponds to the third item in the cycle if counting remainders in the natural cycle order. Pattern problems often become easier once they are converted into remainder problems.
Remainder theorem
In algebra, the word remainder also appears in the remainder theorem for polynomials. The theorem says that when a polynomial \(f(x)\) is divided by \(x-a\), the remainder is \(f(a)\). For example, if \(f(x)=x^2+3x+2\) and we divide by \(x-1\), the remainder is \(f(1)=1+3+2=6\). This calculator focuses on integer division, but the same idea of “what is left over” appears in polynomial division too.
Remainders in computer science
Remainders are extremely important in computer science. The modulo operator is used for wrapping values, checking divisibility, distributing items into buckets, hashing, generating cycles, managing arrays, and working with clocks or timers. If an array has \(10\) positions, the expression \(i\bmod10\) can keep an index inside the range \(0\) through \(9\).
Modulo is also used in cryptography and number theory. Many encryption systems rely on modular arithmetic because it creates repeating cycles with strong mathematical structure. Even advanced ideas like modular inverses, congruences, and prime-number systems are built on the concept of remainders.
Common mistakes with remainders
A common mistake is making the remainder too large. In standard division, the remainder must be smaller than the divisor’s absolute value. For example, \(31=6(4)+7\) is not the correct quotient-remainder form because \(7\) is larger than \(6\). The correct form is \(31=6(5)+1\).
Another common mistake is ignoring the divisor-zero rule. You cannot divide by zero, so there is no quotient and no remainder when the divisor is zero. A third mistake is assuming all programming languages handle negative remainders the same way. For negative dividends or divisors, always check the convention being used.
How to check a remainder answer
The easiest way to check a remainder is to plug the quotient and remainder back into the division algorithm:
If the equation is true and the remainder is in the allowed range, the answer is correct. For example, if you claim that \(47\div8=5\) remainder \(7\), check:
Since \(7<8\), the answer is valid.
Summary
A remainder is the amount left over after division. The division algorithm \(a=bq+r\) connects the dividend, divisor, quotient, and remainder. In Euclidean division, the remainder is nonnegative and smaller than the absolute value of the divisor. Remainders can be written using “remainder” notation, fractional form, decimal form, or modulo notation. They are useful in arithmetic, divisibility, clocks, calendars, repeating patterns, programming, cryptography, and higher mathematics. To check any remainder problem, multiply the divisor by the quotient, add the remainder, and confirm that the result equals the original dividend.
Common Mistakes with Remainders
Using a remainder larger than the divisor
In standard division, the remainder must be smaller than the divisor’s absolute value. If it is not, the quotient can still increase.
Dividing by zero
Division by zero is undefined. There is no valid quotient or remainder when the divisor is \(0\).
Confusing decimal and remainder form
\(23\div4=5\) remainder \(3\) is the same as \(5+\frac{3}{4}=5.75\).
Ignoring negative-number conventions
Negative dividends and divisors can produce different remainders depending on whether Euclidean, truncated, or floor division is used.
Remainder Calculator FAQs
What is a remainder?
A remainder is the amount left over after division when the divisor does not divide the dividend evenly.
What is the remainder formula?
The remainder formula comes from the division algorithm: \[a=bq+r\] so \[r=a-bq\]
What does modulo mean?
Modulo means the remainder after division. For example, \(29\bmod5=4\).
What is the quotient?
The quotient is the whole-number result of division before considering the remainder.
How do I check a remainder?
Use the division algorithm. Multiply the divisor by the quotient and add the remainder. The result should equal the dividend.
Can the remainder be zero?
Yes. A remainder of \(0\) means the divisor divides the dividend evenly.
Can the remainder be bigger than the divisor?
No, not in standard Euclidean division. The remainder must satisfy \(0\le r<|b|\).
Can I divide by zero and get a remainder?
No. Division by zero is undefined, so there is no valid quotient or remainder.
Why do programming languages sometimes give negative remainders?
Some programming languages use truncated division, where the quotient rounds toward zero. This can produce a negative remainder when the dividend is negative.
What is the difference between remainder and decimal division?
Remainder form shows the whole-number quotient and leftover amount. Decimal division converts the leftover amount into a fraction or decimal.






