Long Division Calculator
Type a dividend and a divisor. You get the paper layout, every step, the remainder and the decimal, with repeating digits in brackets.
https://flxcode.com/long-division-calculator/
Example
1234 ÷ 7 = 176 remainder 2, or 176.(285714).
Long division on paper
176.285714
┌─────────────
7 │ 1234.000000
-7
──
53
-49
───
44
-42
───
20
-14
───
60
-56
───
40
-35
───
50
-49
───
10
-7
──
30
-28
───
2Each step
- 12 ÷ 7 = 1, because 7 × 1 = 7. 12 − 7 = 5.
- 53 ÷ 7 = 7, because 7 × 7 = 49. 53 − 49 = 4.
- 44 ÷ 7 = 6, because 7 × 6 = 42. 44 − 42 = 2.
- 20 ÷ 7 = 2, because 7 × 2 = 14. 20 − 14 = 6.
- 60 ÷ 7 = 8, because 7 × 8 = 56. 60 − 56 = 4.
- 40 ÷ 7 = 5, because 7 × 5 = 35. 40 − 35 = 5.
- 50 ÷ 7 = 7, because 7 × 7 = 49. 50 − 49 = 1.
- 10 ÷ 7 = 1, because 7 × 1 = 7. 10 − 7 = 3.
- 30 ÷ 7 = 4, because 7 × 4 = 28. 30 − 28 = 2.
Result
- Quotient 176, remainder 2.
- Check: 176 × 7 + 2 = 1234, the dividend.
- As a decimal it repeats: 176.(285714). The digits in brackets (6 digits) repeat forever.
No ads. No account. Nothing you type or record is uploaded. We count page events with a daily code. Check it.
Problem or idea? Email us
The four steps on paper
- Divide: how many times does the divisor fit into the current number?
- Multiply: that digit times the divisor goes under the current number.
- Subtract: the difference is the new remainder.
- Bring down the next digit and go again.
A common memory aid is "Dad, Mom, Sister, Brother": divide, multiply, subtract, bring down. The layout above uses the US style, with the divisor on the left and the quotient on top.
Worked examples
| Division | Answer | What it shows |
|---|---|---|
| 1234 ÷ 7 | 176 remainder 2, or 176.(285714). | A remainder, then a repeating decimal |
| 5 ÷ 8 | 0 remainder 5, or 0.625. | Less than the divisor: the whole part is 0 |
| 1 ÷ 3 | 0 remainder 1, or 0.(3). | The classic repeating decimal |
| 100 ÷ 7 | 14 remainder 2, or 14.(285714). | Six digits repeat, the longest a divisor of 7 can give |
| 12.5 ÷ 0.5 | 25. | Decimals: move the point in both numbers |
| 987654321 ÷ 12 | 82304526 remainder 9, or 82304526.75. | A big dividend |
Remainder or decimal?
Schoolwork in early grades asks for a quotient and a remainder. Later work and real life want a decimal. They are the same answer: 176 R 2 means 176 and 2/7, and 2/7 is 0.285714... To get there, put a decimal point after the last digit, add zeros, and keep dividing.
If you only need the fraction, the GCF calculator reduces it to lowest terms. To round a long decimal, use the rounding calculator.
Why decimals repeat
There are only so many possible remainders. Dividing by 7 can leave 0 to 6, so after at most 6 steps a remainder must come back, and from then on the digits cycle. A divisor of d gives a cycle of at most d − 1 digits. The cycle for 1/7 uses all 6, for 1/3 it is 1 digit, for 1/11 it is 2.
Numbers this uses
- Size: up to 40 digits in each number. Longer ones are refused so the layout stays readable.
- Repeats: the tool follows remainders up to 120 digits. If no repeat shows by then it says the decimal is cut off.
- Layout: at most 12 decimal digits are drawn on the paper layout. The repeating part is always shown in full in the result line.
- Decimals: both numbers are scaled by the same power of 10 so the divisor is whole. Everything is done on exact integers, never floating point.
Nothing you type is uploaded. We count events without cookies (details).
FAQ
How does long division work, step by step?
Take the first digits of the dividend that are at least as big as the divisor. Divide, write the digit above, multiply it back by the divisor, subtract, and bring down the next digit. Repeat until no digits are left. The tool lays this out and lists each step.
How do I write the remainder?
1234 ÷ 7 is 176 with remainder 2, written 176 R 2. Check it: 176 × 7 + 2 = 1234. If you need a decimal instead, keep going: bring down zeros after a decimal point.
How can I tell when a decimal repeats?
When a remainder shows up for the second time, the digits after it repeat. For 1 ÷ 7 the remainder 1 returns after 6 steps, so 142857 repeats. The tool puts the repeating part in brackets, like 0.1(6).
Can the divisor be a decimal?
Yes. Move the decimal point the same number of places in both numbers until the divisor is whole. 12.5 ÷ 0.5 becomes 125 ÷ 5. The answer does not change. The remainder is then in the shifted units, so it looks bigger.
What if the divisor is bigger than the dividend?
5 ÷ 8 has a whole part of 0 and a remainder of 5. As a decimal, put a point after the 5, add zeros and carry on: 50 ÷ 8 = 6, then 20 ÷ 8 = 2, then 40 ÷ 8 = 5. That gives 0.625.
How do I handle negative numbers?
Do the division with the signs removed, then give the answer a minus sign when exactly one of the two numbers was negative. The tool says so in the steps. The remainder is shown for the absolute values.
Why does the answer stop at some point?
A fraction ends in a finite decimal only when the divisor, once the fraction is in lowest terms, has no prime factors besides 2 and 5. So 3 ÷ 8 stops and 3 ÷ 7 repeats forever.
Are my numbers saved or sent?
No. The division runs in your browser. What you type is not put in the address bar, not stored and not counted. We only count whether you used whole numbers or decimals.
More from FLXCode
GCF CalculatorNew
Greatest common factor of two or more numbers, with Euclid’s steps and the prime factor method.
Factor CalculatorNew
All factors and factor pairs of a number, and whether it is prime. Works up to 1e15.
Rounding CalculatorNew
Round to any place from millions to millionths with half up, half even, up or down. Shows the steps.
Roman Numeral ConverterNew
Turn numbers into Roman numerals and back, 1 to 3999. Says why an invalid numeral is wrong.