Remainder Calculator

Find the remainder when one number is divided by another.

Remainder 2
Whole quotient 14

Formula: remainder = dividend − divisor × ⌊dividend ÷ divisor⌋

Step-by-step with your numbers:
1. Values used:
2. Dividend = 100
3. Divisor = 7
4.
5. Remainder = 2
6. Whole quotient = 14
Did we solve your problem today?

The remainder is what's left after dividing as many whole times as possible.

How the Math Works

The Remainder Calculator uses the formula remainder = dividend − divisor × ⌊dividend ÷ divisor⌋ to determine what remains after dividing one number by another. Here, the dividend is the number you're splitting into parts, and the divisor is how many parts you're dividing it into. The floor function (⌊ ⌋) rounds down the result of dividend ÷ divisor to the nearest whole number, representing the maximum number of complete divisor-sized groups that fit into the dividend. Multiplying this by the divisor gives the largest multiple of the divisor that doesn't exceed the dividend, and subtracting this from the dividend yields the remainder—the leftover amount that can't be evenly divided.

Practical Applications

This calculation is essential in programming for modular arithmetic operations, such as checking if a number is even (remainder = 0 when divided by 2) or distributing items evenly across groups. For example, if you have 25 apples to pack into boxes of 4, the remainder tells you that 1 apple will be left unpacked (25 ÷ 4 = 6 with remainder 1). It's also used in time calculations, like determining the day of the week after X days, or in cryptography for generating secure keys through modular exponentiation.

Day-to-Day Use

In everyday life, remainder calculations help with practical tasks like organizing items into containers, budgeting with leftover change, or planning resources. For instance, if you're tiling a floor and need to know how many tiles will be cut unevenly, or if you're calculating how many hours remain in a workday after accounting for breaks, the remainder gives you the exact leftover value. It also aids in cooking—adjusting recipes when scaling ingredients—and in games or puzzles where tracking cycles or patterns requires knowing what's left after complete divisions.

Worked example

100 ÷ 7 = 14 remainder 2.

FAQ

Is remainder the same as modulo?

For positive numbers, yes. They can differ in sign convention for negatives.