Long Division Calculator: Step-by-Step Division with Remainders and Decimals
By FindMySum · Last reviewed
Long division is the pencil-and-paper method for dividing numbers too large to handle in your head. It breaks one big division into a series of small ones, one digit at a time. This calculator works through every step in the layout used in Canadian and American schools, with the divisor outside the bracket and the answer on top, and gives the quotient and remainder, the mixed number and the exact decimal, including decimals that repeat forever. The opening example is 1234 ÷ 7.
The four steps
Long division repeats the same cycle until the digits run out:
- Divide: how many times does the divisor go into the number you are looking at?
- Multiply: that digit times the divisor.
- Subtract: take the product away.
- Bring down: the next digit of the dividend, written next to the remainder.
A memory aid some teachers use is "Does McDonald's Sell Burgers?" for divide, multiply, subtract, bring down.
Worked example: 1234 ÷ 7
- 7 doesn't go into 1, so look at 12. 12 ÷ 7 = 1. Write 1 on top; 1 × 7 = 7; 12 − 7 = 5.
- Bring down the 3 to make 53. 53 ÷ 7 = 7; 7 × 7 = 49; 53 − 49 = 4.
- Bring down the 4 to make 44. 44 ÷ 7 = 6; 6 × 7 = 42; 44 − 42 = 2.
- No digits left. The quotient is 176 and the remainder is 2.
Check: 176 × 7 + 2 = 1,232 + 2 = 1,234. The answer can be written as 176 R 2, as the mixed number 176 2/7, or as a decimal.
Carrying on into decimals
To keep going past the remainder, put a decimal point after the quotient and bring down zeros. For 1234 ÷ 7 the remainder 2 becomes 20: 20 ÷ 7 = 2 R 6; then 60 ÷ 7 = 8 R 4; 40 ÷ 7 = 5 R 5; 50 ÷ 7 = 7 R 1; 10 ÷ 7 = 1 R 3; 30 ÷ 7 = 4 R 2. The remainder is 2 again, the same as when the decimals started, so from here the digits repeat:
1234 ÷ 7 = 176.285714 285714 … = 176.(285714)
The calculator detects the repeat by watching the remainders. Because each remainder is smaller than the divisor, there are at most divisor − 1 possible non-zero remainders, so either the division ends (a remainder of 0) or the digits must start repeating within that many steps. The brackets mark the repeating block; textbooks draw a bar over it instead.
Terminating or repeating?
A division ends when, in lowest terms, the divisor has no prime factors other than 2 and 5, the factors of 10. So 100 ÷ 8 = 12.5 ends, and so do 3 ÷ 4 = 0.75 and 7 ÷ 20 = 0.35. Any other factor makes the decimal repeat: 1 ÷ 3 = 0.(3), 1 ÷ 6 = 0.1(6), 5 ÷ 12 = 0.41(6). The repeating block can start a few digits after the point, as in the last two examples.
When you need a fixed number of decimal places, round the long decimal. The calculator rounds half up to the number of places you choose: 1 ÷ 6 to four places is 0.1667.
Dividing by a decimal
Long division needs a whole-number divisor. If the divisor has a decimal point, move it to the right until the divisor is whole, and move the dividend's decimal point the same number of places, adding zeros if needed. This multiplies both numbers by the same power of ten, which leaves the answer unchanged:
7.5 ÷ 0.25 → 750 ÷ 25 = 30
If only the dividend has a decimal point, divide as usual and put the point in the quotient straight above the point in the dividend.
Very large numbers
The calculator works on exact digits, so it can divide numbers up to 60 characters long with no rounding at all. Divide the 30-digit number made of 1234567890 written three times by 9 and you get an exact 29-digit quotient that starts 13,717,421,001, with remainder 0. Ordinary calculators show only 10 to 16 significant digits for numbers like this.
Negative numbers
Divide the sizes of the numbers and then apply the sign rule: positive if both have the same sign, negative otherwise. −17 ÷ 5 = −3.4. With remainders, the calculator uses truncated division, the usual textbook convention, where the remainder takes the dividend's sign: −17 = 5 × (−3) + (−2), so −17 ÷ 5 = −3 R −2. Some programming languages and number-theory texts prefer a remainder that is never negative (−4 R 3 here); the modulo calculator handles that convention.
Common mistakes
- Forgetting a zero in the quotient. In 618 ÷ 3, after 6 ÷ 3 = 2 the next number is 1, which 3 doesn't go into, so write 0 on top before bringing down the 8. Without it the answer becomes 26 instead of 206.
- A remainder larger than the divisor. That means the quotient digit was too small; try one more.
- Misaligned columns. Write each product directly under the digits it came from; graph paper helps.
More questions
What is the difference between long division and short division?
They use the same algorithm. In short division you do the multiplying and subtracting in your head and write only the small remainders next to the digits, which works well for single-digit divisors. Long division writes out every multiplication and subtraction, which makes larger divisors manageable.
How do I estimate each quotient digit with a two-digit divisor?
Round the divisor and use the first digit or two of what you are dividing. For 2,345 ÷ 47, think 234 ÷ 50 ≈ 4. Multiply 4 × 47 = 188 and subtract to get 46; since 46 is less than 47, the estimate was right. If the subtraction goes negative, the digit is too big; if the result is 47 or more, it is too small.
Why is long division taught if calculators exist?
It builds number sense: place value, estimation, the link between multiplication and division, and why some fractions become repeating decimals. The same idea of repeated subtraction and bringing down extends to dividing polynomials in high-school algebra.
Is the layout the same everywhere?
No. Canada and the US write the divisor to the left of a bracket and the quotient above. Much of Europe and Latin America writes the divisor to the right of the dividend with the quotient below it, and India uses yet another arrangement. The arithmetic in every step is identical.
What happens when I divide a smaller number by a larger one?
The whole-number quotient is 0 and the remainder is the dividend itself: 5 ÷ 12 = 0 R 5. To get a decimal, put a 0 and a decimal point in the quotient and bring down zeros: 50 ÷ 12 = 4 R 2, 20 ÷ 12 = 1 R 8, 80 ÷ 12 = 6 R 8, and the 6 then repeats, so 5 ÷ 12 = 0.41666…
Sources
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.