Online Remainder Calculator
Calculate the remainder when a is divided by b: a mod b. Same as the remainder in integer division.
Frequently Asked Questions
- What is the remainder?
- When a is divided by b, the remainder is a − b × floor(a/b). E.g. 17 mod 5 = 2.
- What if b is negative?
- Different languages define mod differently for negatives. This tool uses the same behavior as JavaScript: sign follows dividend.
- What about division by zero?
- Remainder when b = 0 is undefined; the tool will show an error.
Related Calculators
Celsius to Fahrenheit Converter
Convert Celsius to Fahrenheit and Fahrenheit to Celsius instantly. Free temperature converter.
Tip Calculator
Calculate tip and split the bill. Enter bill amount, tip percentage, and number of people.
Roman Numeral Converter
Convert numbers to Roman numerals and Roman numerals to numbers. Supports 1–3999.
Combinations Calculator
Calculate C(n,r) — the number of ways to choose r items from n without order. Uses n!/(r!(n-r)!).
Combinations with Replacement Calculator
Calculate the number of ways to choose r items from n with repetition allowed. Formula: C(n+r-1, r).
Even Permutations Calculator
Count how many permutations of n objects are even (expressible as an even number of swaps). For n ≥ 2, equals n!/2.