Remainder Calculator – Quotient and Remainder, Exact at Any Size
Some divisions come out even, and most do not — and the part that does not fit is often the part you actually need. Enter any two whole numbers and this calculator gives you the quotient, the remainder, the decimal answer and the long-division steps between them. It divides the digits themselves, with exact integer arithmetic, so a 20-digit dividend gets the same honest answer as a two-digit one — no rounding, no floating-point fog, ever.
The division
🔒 Everything is calculated in your browser — your numbers never leave your device.
The answer
The full picture
What this means
2,024 ÷ 7 = 289 remainder 1. The divisor fits in full 289 times, and the leftover 1 is smaller than the divisor 7, so no further full group fits. Multiply back — 7 × 289 + 1 = 2,024 — and you land exactly where you started.
The one rule that never breaks: a remainder is always smaller than the divisor. If it were not, the divisor would fit at least once more. Dividing by 7, the only remainders that can ever appear are 0, 1, 2, 3, 4, 5 and 6.
- It divides the digits themselves, with exact integer arithmetic, so a 20-digit dividend gets the same honest answer as a two-digit one — no rounding, no floating-point fog, ever.
- On the default, 2,024 ÷ 7 = 289 remainder 1, with the decimal answer and the long-division steps shown between them.
- The remainder follows the sign of the dividend, the rule school long division and most programming languages use — and commas, spaces and minus signs are all welcome.
The division, step by step
No black box. These are the same moves a pencil makes in long division — take enough digits, fit the divisor, multiply, subtract, bring the next digit down — repeated until the digits run out. Whatever is left standing at the end is the remainder. The steps update live with your numbers.
20 ÷ 7 = 2 — 2 × 7 = 14, and 20 − 14 = 6. Bring down the 2, making 62.
62 ÷ 7 = 8 — 8 × 7 = 56, and 62 − 56 = 6. Bring down the 4, making 64.
64 ÷ 7 = 9 — 9 × 7 = 63, and 64 − 63 = 1. No digits are left, so 1 is the remainder.
The steps are worked on absolute values; the signs are applied to the final quotient and remainder by the rule explained in the questions below. For the 18-digit try-it above, the same box fills with 16 steps.
Long Division Calculator
The written method in full — every bring-down and subtraction laid out for longer problems and homework.
🍕Fraction Calculator
Turn the leftover into a fraction instead: a remainder of 1 over a divisor of 7 is exactly 1/7 of a group.
%Percentage Calculator
Percentages, increases and decreases worked out plainly, with the result explained rather than just shown.
How it works, in 3 steps
Enter the two numbers
The dividend is what you are sharing out; the divisor is the size of each group. Both can be as long as you can type — whole numbers only, because a remainder is a whole-number idea: it counts what is left after full groups are made.
Read the quotient and the remainder
The quotient counts the full groups; the remainder is the leftover that cannot fill another one. You also get the decimal version of the same division and the leftover written as a fraction of the divisor, so all three ways of saying it sit side by side.
Check the rebuild
Multiply the divisor by the quotient and add the remainder. If the answer is the dividend you started with — and on this page it always is, digit for digit — the division is right. It is the oldest check in arithmetic, and it cannot be fooled.
How each figure is worked out
The one identity behind everything. Every whole-number division splits the dividend into a part that groups evenly and a part that does not. The quotient says how many full groups the even part makes; the remainder is the part that does not. Nothing else is involved — no rounding, no approximations — which is why the identity above can check any answer: rebuild the dividend from the three outputs and they must match exactly.
The default figures, worked through. 2,024 ÷ 7: seven fits into 20 twice (14, leaving 6), into 62 eight times (56, leaving 6), and into 64 nine times (63, leaving 1). The quotient digits are 2, 8, 9 — 289 — and the final leftover is the remainder, 1. As a decimal the same division runs 289.142857142857…, where the block 142857 repeats forever; as a fraction, the leftover is 1/7 of one more group.
The textbook checks. A dividend smaller than its divisor: 5 ÷ 9 = 0 remainder 5 — no full group fits, so everything is leftover. A negative dividend: −2,024 ÷ 7 = −289 remainder −1, because 7 × −289 + −1 = −2,024 exactly. And a big one: 123,456,789,012,345,678 ÷ 97 = 1,272,750,402,189,130 remainder 68 — check it the same way, and 97 × 1,272,750,402,189,130 + 68 lands back on the dividend to the very last digit.
Deep dives
Most calculators do not really hold your number. Underneath, they store numbers as binary decimals (floating point), and that format can only hold whole numbers exactly up to 253 = 9,007,199,254,740,992 — about 9 quadrillion, 16 digits. Type anything longer and the last digits are quietly replaced with the nearest value the format can hold, before any dividing even happens. The answer then looks precise while being built on a number you never entered.
The errors hide exactly where remainders live. A rounded dividend usually still gives a roughly right quotient, so the mistake goes unnoticed — but a remainder is the difference of two nearly equal quantities, and it inherits all of the rounding at full strength. Divide an 18-digit number on a floating-point calculator and the remainder it reports can be wrong by thousands, delivered with total confidence.
This page refuses the trade. Your numbers are read as text, digit by digit, and divided with exact integer arithmetic (BigInt, for those who know the term) — the same long-division moves a pencil makes, just tireless. Length costs steps, not accuracy: a 100-digit dividend produces a longer staircase of steps, and an answer that is still exact to the final digit.
Clocks and calendars are remainder machines. Thirteen o’clock is 1 PM because 13 divided by 12 leaves remainder 1. A 100-day project starting on a Monday ends on whatever weekday 100 mod 7 = 2 points to. Any time a quantity wraps around a cycle — hours, weekdays, months, positions on a board — the remainder is the arithmetic doing the wrapping.
Check digits are remainders wearing a uniform. The last digit of a bank card or an ISBN is chosen so that a weighted sum of all the digits leaves a particular remainder when divided by 10 or 11. Type one digit wrong and the remainder changes, and the error is caught before any money moves. The same idea, scaled up to enormous remainders, sits inside the arithmetic that encrypts messages and addresses data on the internet.
And of course, the everyday leftovers. Eggs sold by the dozen, students split into teams, seats in rows, change from a note: whenever the world comes in fixed-size groups, the remainder is the part that needs a decision. That is why this small leftover gets a page of its own.
One division, four answers: quotient, remainder, fraction and decimal
Every division on this page gives four views of the same fact, and the table below, run through this page’s own calculator, shows them side by side. The quotient counts full groups, the remainder is what is left over, the fraction states the leftover as a share of the divisor, and the decimal shows the same information as a single number. Confusing them — especially the remainder with the decimal part — is where most division errors start.
| Division | Quotient | Remainder | As a fraction | As a decimal |
|---|---|---|---|---|
| 2,024 ÷ 7 (default) | 289 | 1 | 1/7 | 289.142857… (142857 repeats) |
| 100 ÷ 7 | 14 | 2 | 2/7 | 14.285714… (285714 repeats) |
| 5 ÷ 7 | 0 | 5 | 5/7 | 0.714285… (714285 repeats) |
| 1,000,000,007 ÷ 97 | 10,309,278 | 41 | 41/97 | 10,309,278.422680… (keeps going) |
The check that ties all four views together is the same on every row: divisor × quotient + remainder = dividend. For the default, 7 × 289 + 1 = 2,024; for 100 ÷ 7, 7 × 14 + 2 = 100; for the big division, 97 × 10,309,278 + 41 = 1,000,000,007. If that check fails, the quotient or the remainder is wrong, whichever view you were reading. The fraction view is the check in another form: the leftover 1 out of a divisor of 7 is exactly 1/7 of a full group, so 289 remainder 1 is 289 + 1/7, which is the decimal 289.142857… with the six digits 142857 repeating forever. Sevenths are famous for this cycle: 1/7, 2/7, 3/7, 4/7, 5/7 and 6/7 all repeat the same six digits in rotation (142857, 285714, 428571, 571428, 714285, 857142), which is why the table’s 5 ÷ 7 row shows 0.714285… — the same cycle starting at a different point. A remainder is therefore not an untidy leftover to be discarded; it is the numerator of the exact fraction, and the decimal is that fraction written out, repeating where it must.
The 5 ÷ 7 row deserves a pause, because it contradicts a common intuition that a remainder only appears when the divisor “fits”. When the divisor is larger than the dividend, the quotient is 0 and the remainder is the whole dividend: 5 ÷ 7 = 0 remainder 5, because 7 does not fit into 5 even once, so everything is left over. The fraction view makes this obvious — 5/7 is simply five sevenths — while the “leftover” language makes it sound like an error. The same logic applies to a zero dividend: 0 ÷ 7 = 0 remainder 0, nothing to group and nothing left over. And the big-division row shows why this page exists at all: ordinary calculators store numbers as binary floating point, exact only up to about 9 quadrillion (2⁵³ = 9,007,199,254,740,992, as this page’s own FAQ states), and a rounded dividend still gives a roughly right quotient while the remainder — the difference of two nearly equal quantities — inherits all of the rounding at full strength. The remainder 41 here is exact because this calculator works with whole numbers throughout, not with a rounded approximation of 1,000,000,007. If your remainder matters, the exactness of the inputs matters first.
Negative numbers: this calculator’s convention, stated plainly
For positive numbers, remainder and modulo are the same value, as this page’s own FAQ says. With negative numbers, conventions differ, and the table below states this calculator’s convention exactly, as probed from the engine itself. The rule is truncated division: the quotient is truncated toward zero, and the remainder takes the sign of the dividend, with a magnitude always smaller than the divisor.
| Division | Quotient | Remainder | Check |
|---|---|---|---|
| −17 ÷ 5 | −3 | −2 | 5 × (−3) + (−2) = −17 |
| 17 ÷ −5 | −3 | 2 | −5 × (−3) + 2 = 17 |
| −17 ÷ −5 | 3 | −2 | −5 × 3 + (−2) = −17 |
Notice what stays constant across all three rows: the remainder’s sign follows the dividend (−17 gives −2 in both cases; 17 gives +2), never the divisor, and the quotient is the division truncated toward zero (−17 ÷ 5 is −3.4 truncated to −3, not floored to −4). The “leftover as a fraction” on this page uses absolute values — 2/5 in all three rows — because a fraction of a group is a size, not a signed quantity. The alternative convention, Euclidean modulo, always returns a non-negative remainder: −17 modulo 5 would be 3 under that convention (since −17 = 5 × (−4) + 3), which is a different answer to a different question. Neither convention is wrong; they answer different definitions of “leftover”. What matters is knowing which one your tool uses before you compare its answer with another tool’s, a programming language’s percent operator, or a textbook’s: most programming languages follow this calculator’s truncated convention, while clock arithmetic (25 modulo 12 is 1) follows the Euclidean habit of keeping remainders non-negative. If a remainder you computed elsewhere disagrees with this page by exactly the divisor, a convention difference — not an arithmetic error — is the first thing to check.
One more habit completes the picture. A remainder is always smaller than the divisor in magnitude — that is what “left over” means, since anything as large as another full group would have formed one. If you ever compute a remainder equal to or larger than the divisor, the quotient is too small by at least one: for example, claiming 100 ÷ 7 = 13 remainder 9 is wrong twice over, because 9 exceeds 7 and one more group of 7 fits inside it, giving the correct 14 remainder 2. The check divisor × quotient + remainder = dividend catches most errors, but the size check catches this one even faster, before any multiplication: a remainder must be smaller than the divisor, and under this calculator’s convention it must also carry the dividend’s sign. Hold both rules together and almost every remainder error announces itself.
When the remainder is zero: divisibility, and why it matters
A remainder of zero is the most informative answer this calculator can give, because it says the dividend splits into equal groups with nothing left over — the dividend is divisible by the divisor. The probed cases below show how divisibility clusters: a number can be divisible by one divisor and not by its neighbour, and the pattern is often visible in the digits themselves.
| Division | Quotient | Remainder | What it shows |
|---|---|---|---|
| 2,025 ÷ 3 | 675 | 0 | Divisible by 3 (digits sum to 9) |
| 2,025 ÷ 9 | 225 | 0 | Divisible by 9 (digits sum to 9) |
| 100 ÷ 4 | 25 | 0 | Divisible by 4 (last two digits, 00) |
| 100 ÷ 8 | 12 | 4 | Not divisible by 8, though divisible by 4 |
| 2,024 ÷ 8 | 253 | 0 | Divisible by 8 (last three digits, 024) |
| 0 ÷ 7 | 0 | 0 | Zero divides exactly by any non-zero divisor |
The digit rules behind the first rows are worth stating because they let you predict a zero remainder without dividing. A number is divisible by 3 when its digits sum to a multiple of 3, and by 9 when its digits sum to a multiple of 9: 2,025 has digits summing to 2 + 0 + 2 + 5 = 9, so it is divisible by both, and the calculator confirms both remainders are 0. A number is divisible by 4 when its last two digits form a multiple of 4 (100 ends in 00, which is 0), and by 8 when its last three digits form a multiple of 8 (2,024 ends in 024, which is 24, and 24 is 3 × 8). The 100 ÷ 8 row shows the limits of chaining these rules: divisibility by 4 does not imply divisibility by 8, because 8 needs one more factor of 2 than 4 does, and 100 has only two factors of 2 (100 = 4 × 25, and 25 is odd). The remainder, 4, is exactly the missing piece: 100 = 8 × 12 + 4, so one more group of 4 would be needed to reach the next multiple of 8.
Divisibility is not a parlour trick; it is how the remainder earns its keep in real arithmetic. Splitting a bill equally, dealing cards into equal hands, packing boxes, or checking whether a number is prime all reduce to asking whether some remainder is zero. A prime number, by definition, has no divisor other than 1 and itself that leaves remainder zero, so testing primality is testing remainders — and the big-division row in the main guide shows why exact remainder arithmetic matters there: 1,000,000,007 ÷ 97 leaves remainder 41, so 97 is not a factor of 1,000,000,007, and a floating-point calculator that rounded the dividend first could have reported a wrong remainder and therefore a wrong verdict on that question. Whenever a remainder of zero is the answer you need — divisible or not, factor or not — the remainder must be exact, because a remainder of zero is a sharp claim: one unit of error either way destroys it. That sharpness is also why the size check from the main guide matters: a claimed remainder of zero that came from a rounded input is not evidence of divisibility at all, only evidence that the rounding happened to land on a multiple.
Remainders in everyday grouping: weeks, hands and boxes
The most familiar remainder in daily life is the week. A year of 365 days is 52 weeks remainder 1 day (365 ÷ 7 = 52 remainder 1), which is why the same calendar date falls one weekday later the following year in a non-leap year — the extra day pushes every date forward by one. A hundred days is 14 weeks remainder 2 days (100 ÷ 7 = 14 remainder 2), so a hundred-day countdown that starts on a Monday ends on a Wednesday, two weekdays past fourteen whole weeks. The default division on this page, 2,024 ÷ 7 = 289 remainder 1, is the same pattern at a larger scale: 289 whole weeks and one day left over. Clock arithmetic is remainder arithmetic with divisor 12 or 24 or 60: 25 hours after noon is 1 o’clock, because 25 ÷ 12 = 2 remainder 1, and the remainder is the only part the clock shows. Whenever a quantity cycles — days into weeks, hours onto a clock face, items into boxes — the quotient counts whole cycles and the remainder names where you land inside the next one, which is why the remainder, not the quotient, is usually the answer people actually want.
Zero remainder, real power: divisibility tests that are just remainders in disguise
A remainder of zero is a verdict — and the old tests for 3, 9 and 11 are shortcuts to it.
When the remainder is zero, the divisor divides the number exactly, and that fact powers the classic divisibility tests. A number is divisible by 3 when its digits sum to a multiple of 3 — because 10 leaves remainder 1 on division by 3, so each digit contributes exactly its own value to the remainder. The same logic gives the test for 9. The test for 11 alternates the digit sum (add, subtract, add, subtract) because 10 leaves remainder −1 on division by 11. These are not parlour tricks; they are the division algorithm, run on the digits instead of the number.
The remainder’s other everyday job is grouping: weeks, hands and boxes are all remainder arithmetic. Seven-day weeks mean a date 100 days hence falls on the same weekday shifted by 100 mod 7 = 2 — 1 January 2026 is a Thursday, so 100 days later is Saturday 11 April 2026. Dozens, packs and seating rows all divide the same way: the quotient counts the full groups, the remainder counts what is left over, and the leftover is usually the interesting part. Full method, sevenths and negative-number conventions: remainders explained.
Negative dividends: the convention this calculator uses, stated plainly
Mathematics and programming disagree about negative remainders. This page picks one rule and shows it.
Dividing a negative number splits the world in two. The mathematical convention — the one this calculator uses — keeps the remainder with the sign of the divisor, so the remainder is never negative when the divisor is positive: −17 divided by 5 gives quotient −4 and remainder 3, because −17 = (−4 × 5) + 3. The truncated convention used by C, Java and JavaScript instead keeps the remainder with the sign of the dividend: −17 mod 5 = −2 there, with quotient −3. Both are internally consistent; they answer different questions, and code ported between languages without noticing the difference is a classic source of off-by-one errors in calendars, rotations and hash tables.
Python’s % operator follows the mathematical convention, matching this calculator; spreadsheets’ MOD generally does too. The discipline is to state the convention before relying on a remainder’s sign — in a specification, in a code comment, or in the sentence that quotes the result. A remainder quoted without its convention is ambiguous for every negative input, and negative inputs are exactly the ones that appear in date arithmetic and circular buffers.
Remainder questions, answered
What is a remainder?
A remainder is what is left over after a whole-number division has made as many equal groups as it can. Divide 2,024 by 7 and you get 289 complete groups of 7, which use up 2,023 — the 1 that cannot fill another group is the remainder. A remainder is always smaller than the number you divided by; the moment it is not, another group fits.
How do I work out a remainder?
Divide and keep only the whole-number part of the answer — that is the quotient. Multiply the divisor by the quotient, subtract that from the dividend, and what is left is the remainder. For 100 divided by 9: the quotient is 11, 9 × 11 = 99, and 100 − 99 = 1, so the remainder is 1. The formula dividend = divisor × quotient + remainder holds for every division on this page, and the calculator shows it as a check.
Can a remainder be bigger than the divisor?
No. If the remainder were as big as the divisor, the divisor would fit at least one more time, so the quotient would grow and the remainder would shrink. That is why every remainder sits between zero and one less than the divisor: dividing by 7, the only possible remainders are 0, 1, 2, 3, 4, 5 and 6.
What happens when the divisor is bigger than the dividend?
The divisor does not fit even once, so the quotient is 0 and the whole dividend is left over: 5 divided by 9 is 0 remainder 5. It looks like nothing happened, but it is a real answer — you cannot make one full group of 9 out of 5, and all 5 remain.
How do negative numbers change the remainder?
This calculator divides the absolute values first, then gives the remainder the sign of the dividend — the rule school long division and most programming languages use. So −2,024 divided by 7 is −289 remainder −1, because 7 × −289 + −1 = −2,024 exactly. Some systems round the quotient down instead: Python’s modulo answers −290 remainder 6 for the same numbers. Both describe the same split; they just park the sign in a different place.
Is a remainder the same thing as modulo?
For positive numbers, yes — the remainder and the modulo are the same value, and programmers meet it as the percent operator: 2,024 % 7 = 1. The two part company only with negative numbers, where conventions differ, as the previous answer explains. There is also a difference in habit: remainder names the leftover of one division, while modulo names the operation and the whole system built on it, as in clock arithmetic, where 25 modulo 12 is 1.
Why is 5 ÷ 7 = 0 remainder 5, not an error?
Because the divisor does not fit even once, so everything is left over. The quotient counts full groups of 7 inside 5 — there are none — and the remainder is the whole dividend, 5. The fraction view makes it obvious: 5/7 is simply five sevenths, and the decimal is 0.714285… with 714285 repeating. A remainder is not an error state; it is the numerator of the exact fraction.
Why does −17 ÷ 5 give remainder −2 here but 3 elsewhere?
Because conventions differ for negative numbers. This calculator uses truncated division: the quotient −3.4 is truncated toward zero to −3, and the remainder takes the dividend’s sign, giving −2 (5 × −3 + −2 = −17). The Euclidean convention floors the quotient to −4 and returns a non-negative remainder of 3 (−17 = 5 × −4 + 3). Neither is wrong; they define “leftover” differently. If another tool disagrees by exactly the divisor, check the convention first.
How do I know my remainder is right without trusting the page?
Use two checks. First, divisor × quotient + remainder must equal the dividend: 97 × 10,309,278 + 41 = 1,000,000,007. Second, the remainder must be smaller than the divisor in magnitude and carry the dividend’s sign under this calculator’s convention. A remainder equal to or larger than the divisor means the quotient is too small by at least one — 100 ÷ 7 = 13 remainder 9 is wrong twice over, because one more group of 7 fits inside 9, giving 14 remainder 2.
Why do sevenths repeat the same six digits?
Because 1/7 = 0.142857… and every other seventh is the same cycle rotated: 2/7 = 0.285714…, 5/7 = 0.714285…. The remainder at each long-division step determines the next digit, and with divisor 7 there are only six possible non-zero remainders, so the digits must eventually repeat — for sevenths, after six digits. That is why the decimal view on this page shows “(142857 repeats)” rather than a rounded decimal: the repeating form is exact, and any rounded decimal is an approximation.
Why do divisibility tests for 3 and 9 use the sum of the digits?
Because 10 leaves remainder 1 when divided by 3 or 9, so each digit contributes exactly its own value to the number’s remainder. A number is therefore divisible by 3 (or 9) exactly when its digit sum is. The test is the division algorithm applied to the digits instead of the whole number — a shortcut to the remainder, not a separate rule.
Why does this calculator give a positive remainder for a negative dividend?
It follows the mathematical convention: the remainder takes the sign of the divisor, so with a positive divisor the remainder is never negative. −17 ÷ 5 gives quotient −4 and remainder 3, since −17 = (−4 × 5) + 3. Some programming languages truncate instead and return −2. Both conventions are consistent; the calculator states its choice so results can be checked and code can be ported without sign surprises.
Related calculators
Long Division Calculator
The written method in full — every bring-down and subtraction laid out for longer problems and homework.
🍕Fraction Calculator
Work with the leftover as a fraction — add, subtract, multiply and divide fractions with the steps shown.
🔂LCM Calculator
The least common multiple — the flip side of dividing numbers into equal groups.
🧩Factoring Calculator
Break a number into the factors and prime pieces it is built from.
🔬Scientific Calculator
Powers, roots, logarithms and trigonometry — the full keyboard for bigger questions.
➗Remainders Explained
The division algorithm, divisibility, sevenths and negative dividends.
An exact arithmetic tool — and one honest note on conventions.
Every figure on this page is exact integer arithmetic: nothing is rounded, estimated or stored. The only judgement call in any remainder is the sign convention for negative numbers, and this page states its rule openly — the remainder carries the sign of the dividend, as in school long division and most programming languages. If your textbook, language or exam uses the round-down convention instead, its answers for negative dividends will pair a one-smaller quotient with a positive remainder, and both are describing the same division.