Long division is the one piece of school arithmetic that is really an algorithm. Four instructions — divide, multiply, subtract, bring down — repeated once per column until the digits run out, and every intermediate value written down where you can see it. That last part is why it survives the calcu...
A remainder is not a decimal. 7 ÷ 2 is 3 remainder 1, and it is also 3.5 — but the 1 and the 5 are different quantities. The remainder counts leftover units of the dividend; the 5 counts tenths. Read one as the other and 3 r 1 becomes 3.1. Most divisions never resolve into a tidy decimal at all: of the 999 divisors between 2 and 1000, only 28 produce a decimal that ever stops. The rest repeat forever, and this page finds the repeating block exactly rather than cutting the answer off and hoping.
DIVIDEND
DIVISOR
DECIMAL PLACES
125 ÷ 4 TO 4 PLACES
31.25
31.25
The division comes out exactly after 2 decimal places, so nothing is lost.
QUOTIENT AND REMAINDER
31 remainder 1
Check: 4 × 31 + 1 = 125 ✓ back to the dividend
SUBTRACTIONS
4
steps in the working
REPEATING BLOCK
none
it ends cleanly
BEFORE THE REPEAT
2
decimal places in total
EXACT AS A FRACTION
125/4
in lowest terms
WHAT IS HAPPENING
Every column asks the same question. How many whole times does the divisor fit into what is standing there? That count is the quotient digit, the multiple comes off, and the next digit drops down beside what is left. The leftover is always smaller than the divisor — if it were not, the digit above it was too small.
Every remainder computed exactly · the tableau and the answer are worked out separately and compared
Type the dividend and the divisor. Decimals are fine — if the divisor is not a whole number the page shifts both by the same power of ten and tells you so, which is exactly what you would do on paper.
Read the tableau on the right. The quotient builds above the bar, each subtraction sits under the digits it came from, and the dashed lines show which digit is being brought down into the next step.
Check the remainder trail underneath. It shows the leftover at every step, and marks the moment one repeats — which is the reason the decimal repeats, not a coincidence.
Set how many decimal places you want and whether to round or cut at that point. The exact answer stays on screen with the repeating block barred, so you can always see what the shortened version threw away.
Take 125 ÷ 4. Four does not fit into 1, so the first quotient digit is 0 and is not written. Bring the 2 across: four fits into 12 exactly three times, so 3 goes above the 2 and 12 comes off, leaving nothing. Bring down the 5. Four fits into 5 once, so 1 goes above the 5, 4 comes off, and 1 is left. The whole-number part is finished: 125 ÷ 4 is 31 remainder 1. Notice that the remainder 1 means one unit of the dividend left over out of the four needed for another whole, not "one tenth". To continue, put a point in the quotient directly above the point in the dividend and start bringing down zeros. Bring one down beside the leftover 1 to make 10. Four fits into 10 twice, 8 comes off, 2 remains. Bring down another zero to make 20. Four fits into 20 exactly five times, 20 comes off, and the remainder is zero. The division is finished: 31.25. It finished because 4 is 2², and a decimal can only terminate when the divisor is built from the factors of ten. Change the divisor to 7 and nothing terminates. Take 22 ÷ 7. Seven fits into 22 three times with 1 left, so the answer starts 3 remainder 1. Bring down a zero: 10 gives 1 with 3 left. Then 30 gives 4 with 2 left, 20 gives 2 with 6 left, 60 gives 8 with 4 left, 40 gives 5 with 5 left, and 50 gives 7 with 1 left. That 1 is the remainder we already had after the first step, so from here every digit must repeat in the same order. The answer is 3.142857 with all six digits recurring, and that is exact — not a rounding, not a truncation. Seven is a full reptend divisor: its block uses every one of the six possible non-zero remainders before returning. Sixty divisors under 1000 do this. Now a decimal divisor: 12.5 ÷ 0.4. Multiply both by ten and it becomes 125 ÷ 4, which we have already done. Scaling the top and bottom of a fraction by the same amount cannot change its value, which is why the trick is legitimate rather than a shortcut. Finally, check it. 4 × 31 + 1 = 125, which is the dividend, so the whole-number answer is right. For the decimal, 4 × 31.25 = 125 exactly. Any long division you can check this way is a long division you can trust.
| Rule | What it says | Why |
|---|---|---|
| The four steps | divide · multiply · subtract · bring down | One quotient digit per column, repeated until the digits run out. |
| The check | divisor × quotient + remainder = dividend | The only test that matters. This page runs it on every answer. |
| Remainder size | always less than the divisor | A remainder as large as the divisor means the quotient digit was too small. |
| A decimal divisor | shift both, then divide | 12.5 ÷ 0.4 becomes 125 ÷ 4. Moving both points leaves the answer unchanged. |
| The point in the answer | straight above the point below | Once the divisor is whole, the quotient point sits over the dividend point. |
| Remainder against decimal | 7 ÷ 2 = 3 r 1 = 3.5 | The remainder is 1 out of 2, not a tenth. r 1 and .1 are different things. |
| Going into decimals | bring down zeros | The dividend has an endless supply of them after the point. |
| When it terminates | divisor is only 2s and 5s | Every other divisor repeats forever. Only 28 divisors under 1000 terminate. |
| How soon it stops | after max(twos, fives) places | 1/40 = 1/(2³×5) stops after three places. |
| Period length | at most divisor − 1 | Because only that many non-zero remainders exist before one must repeat. |
| Full reptend | period = divisor − 1 | 1/7 = 0.142857 repeating, using all six. Sixty divisors under 1000 do this. |
| Writing a repeat | 0.1̅6̅ or 0.1(6) | An overbar or brackets on the block. Writing 0.166 instead is a different number. |
| Negative, toward zero | −7 ÷ 2 = −3 r −1 | What calculators, C and JavaScript do. The remainder follows the dividend. |
| Negative, floored | −7 ÷ 2 = −4 r 1 | What Python and Ruby do. The remainder follows the divisor and never goes negative. |
Four instructions repeated once per column. Divide: how many whole times does the divisor fit into the current working number? That is the next quotient digit. Multiply: that digit times the divisor. Subtract: take it off. Bring down: pull the next digit of the dividend alongside what is left and start again. When the dividend runs out you either have a remainder or, if you keep bringing down zeros, a decimal.
24 Times Table
Calculate instantly →
Quadratic Equation Solver
Calculate instantly →
Logarithm Calculator
Calculate instantly →
Fraction Calculator
Calculate instantly →
Fraction Simplifier
Calculate instantly →
Linear Equation Solver
Calculate instantly →
25 Times Table
Calculate instantly →
26 Times Table
Calculate instantly →
27 Times Table
Calculate instantly →
Simultaneous Equations Solver (2×2)
Calculate instantly →
28 Times Table
Calculate instantly →
Exponent Calculator
Calculate instantly →
29 Times Table
Calculate instantly →
30 Times Table
Calculate instantly →
Times Tables Mega Calculator
Calculate instantly →
Square Root of 10
Calculate instantly →
Square Root of 1
Calculate instantly →
Square Root Mega
Calculate instantly →
Square Root of 2
Calculate instantly →
23 Times Table
Calculate instantly →
Last updated: August 5, 2026 · Every remainder exact, no floating point · divisor × quotient + remainder is checked on every answer.