Long Division Calculator
Divides any two numbers using exact arithmetic, with no digit limit, and shows the work as taught: divide, multiply, subtract, bring down. Gives the quotient and remainder, the mixed and reduced fractions, and the decimal with the repeating block found and highlighted. Negative and decimal inputs both work.
Long division calculator
Divides any two numbers, however long, and shows the working the way it is taught — divide, multiply, subtract, bring down. Where the decimal repeats forever it says so and marks the block that repeats, instead of cutting it off mid-pattern.
The number being divided.
The number you are dividing by.
Only used when the decimal does not repeat or stop on its own.
Negatives and decimals are fine: -100, 10.5,
0.25. So are numbers far too long for an ordinary calculator — try
9007199254740993 ÷ 3.
The working
Step by step
The decimal
The bits that trip calculators up
| Every digit is real | This page divides with whole numbers of unlimited length rather than with the kind of number a computer keeps in 64 bits, which runs out of precision at about 16 digits. That matters more than it sounds. Give Brighterly's calculator 9007199254740993 ÷ 3 and it quietly solves 9007199254740992 ÷ 3 instead — it writes the changed number into its own working — and answers 3002399751580330 remainder 2. The real answer is 3002399751580331 with no remainder at all. Calculator.net and CalculatorSoup at least refuse the question, at 14 and 10 digits; being told no is better than being told something false. |
|---|---|
| Decimals that go on forever | Divide by anything whose factors are not just 2s and 5s and the decimal never stops — it falls into a loop. The loop has to happen, because there are only so many possible remainders, so one must eventually come round again, and from that point the digits repeat exactly. This page watches the remainders, spots the repeat and brackets the part that recurs: 100 ÷ 7 = 14.(285714), a six-digit cycle. Calculator.net prints 14.285714285714 and stops there, which looks like the end of the answer and is not. |
| Negative numbers | Both of the big calculators refuse them. Here the quotient is truncated towards zero and the remainder takes the sign of the dividend, which is the convention almost every programming language uses: −100 ÷ 7 = −14 remainder −2, and −14 × 7 + (−2) = −100 checks out. Mathematicians often prefer a remainder that is never negative; that answer is shown too, so you can take whichever your course wants. |
| Decimal inputs | Long division is defined on whole numbers, so both numbers are multiplied by the same power of ten until they are whole — which does not change the answer, because multiplying both by the same thing cancels. The page shows the pair it actually divided so nothing happens behind your back. |
| Remainder or decimal | They are the same division stopped at different points. 100 ÷ 7 is 14 remainder 2, or 14 2/7, or 14.285714… Which one you want depends on whether you are sharing sweets or measuring something. |
| Dividing by zero | There is no answer, not a very big one. Nothing multiplied by zero gives anything other than zero, so no quotient can work. |