Long Division Calculator
Divide any two whole numbers and see the quotient, the remainder, and every step of the long-division worked solution - divide, multiply, subtract, bring down. Keep going into decimals too.
- Free, no account
- No watermark
- No usage limit
About the Long Division Calculator
Your phone calculator hands you 31.75 for 127 ÷ 4 and calls it finished. It won't show a single step, it won't give you the remainder as a whole number, and when a division doesn't come out even it quietly rounds off and hopes you don't ask questions. This one shows the whole thing instead, so you type a dividend and a divisor and get the quotient, the remainder, and the full worked solution laid out the way you'd write it on paper, every divide, multiply, subtract, and bring-down sitting in its own column. It runs in your browser, nothing you type gets uploaded, and there's no sign-up.
The part I care most about is what happens with the ugly decimals. When a division repeats forever, like 1000 ÷ 7, most free calculators round it to a few places and move on, which is a small lie dressed up as an answer. This one watches the leftover at each step, catches the moment the pattern loops back on itself, and tells you exactly which block of digits repeats. So 1000 ÷ 7 doesn't just flash 142.857 and stop, it comes back as 142.857142 with a plain note that the 857142 runs on forever. That's the honest answer, and it's the thing the basic tools skip.
Long division is the pencil-and-paper method for splitting a number bigger than you can juggle in your head. It turns one hard division into a chain of tiny easy ones, and this tool prints that chain two ways: the tall school-style worksheet with the quotient on top, and a plain numbered walkthrough you can read line by line.
How to use
- Type the dividend in the first box. That's the number being split up, the one that goes under the division bar. In
127 ÷ 4it's 127. - Type the divisor in the second box, the number you're dividing by. Here it's 4.
- Read the three answers up top: quotient, remainder, and the decimal form, all filled in the instant you stop typing. Nothing to click.
- Scroll to the worked solution for the classic column layout, then the step-by-step list underneath that narrates every round in words.
- Flip the Decimal toggle to match your assignment. On, the tool keeps dividing past the decimal point (
127 ÷ 4becomes31.75). Off, it stops clean at the remainder (31 R 3).
You can paste numbers straight from a spreadsheet, commas and all, 1,000 reads the same as 1000. Whole numbers only for the inputs, which is where step-by-step long division actually lives, and if you type a divisor of 0 you get a friendly nudge instead of a crash.
Walking through 127 divided by 4
Every long-division problem is the same short loop on repeat: divide, multiply, subtract, bring down. Teachers drill it as a chant so it sticks. Here's the loop the tool runs, spelled out.
- Divide. Start at the left of the dividend. Can 4 go into 1? No, 1 is smaller than 4, so you widen your view to the first two digits, 12. Four goes into 12 three times. Write a 3 on top, above the 2.
- Multiply. 3 times 4 is 12. Write that 12 under the 12 in the dividend.
- Subtract. 12 minus 12 is 0.
- Bring down. Drag the next digit of the dividend, the 7, down next to that 0 to make 7.
- Repeat. Four into 7 goes once (4 times 1 is 4). Write a 1 up top. Subtract, 7 minus 4 is 3. No digits left to bring down, so 3 is the remainder.
The quotient reads straight off the top, 31, with 3 left over. That's the exact ladder you'll see in the worked solution, each number in its own column.
One trap lives in that first step. After every subtraction the leftover has to be smaller than the divisor. If it's equal to or bigger, your quotient digit was too low and the divisor would've fit one more time. It's the single most common slip in long division, and it doubles as a built-in check: leftover too big means back up and bump the digit. The tool always picks the right digit, so if your paper work disagrees, that's usually where.
Three answers to one division
127 ÷ 4 has three correct answers, and which one you actually want depends on the problem.
The quotient is 31, the whole number of times 4 fits into 127. The remainder is 3, what's left over that can't make another full 4. You want the remainder when the thing you're dividing can't be broken up, 127 marbles into 4 bags is 31 each with 3 rattling around loose, since nobody's handing out three-quarters of a marble. The decimal is 31.75, what you get when the thing can split further, like 127 dollars four ways, because money divides into cents.
Same numbers, both 31 R 3 and 31.75 are right. Most calculators make you pick one and throw the other away. This shows all three at once so you never redo the work to switch.
When the decimal never ends
Push a division past the remainder and one of two things happens. It either lands clean, like 127 ÷ 4 ending exactly at 31.75, or it loops forever, like 1000 ÷ 7. Whether you get a tidy terminating decimal or an endless repeating one comes down entirely to the divisor's prime factors. If the divisor is built from nothing but 2s and 5s, the decimal terminates. Four is two 2s, so quarters always land clean. Eight, sixteen, twenty-five, any mix of 2s and 5s, all terminate. Throw any other prime into the divisor (3, 7, 11) and a division that doesn't come out even will repeat. So the tell is simple, check the divisor's factors before you start dividing.
The reason is worth seeing once. At every step the remainder has to be smaller than the divisor, so dividing by 7 you only ever get remainders of 1 through 6, six possibilities. Keep going and a remainder eventually has to reappear, and the instant it does you're redoing an identical calculation, so the digits cycle. That's why sevenths repeat in blocks of at most six digits. The calculator carries the decimal to 30 places, and if it's still going without a clean repeat it labels the result rounded rather than pretending it's exact.
A quick way to check any answer
Multiplication undoes division, so here's a dead-simple check: multiply the quotient by the divisor, add the remainder, and you should land back on the dividend. For 127 ÷ 4 = 31 R 3 that's 31 times 4 is 124, plus 3, gives 127, so the answer holds. If it misses, a step went wrong and you can hunt it down. Fastest way to catch a mistake without redoing the whole thing.
Frequently asked questions
What does the R in "31 R 3" mean?
R is just shorthand for remainder, the whole-number leftover after the divisor stops fitting. 31 R 3 reads as "31 remainder 3," meaning 4 fits into 127 a full 31 times with 3 left over. You'll see it written a few ways, "31 r 3," "31 rem 3," or spelled out, but they all mean the same thing. It only shows up when the division doesn't come out even. Turn the Decimal toggle on and that leftover 3 gets split further into the decimal 0.75 instead.
Can it handle really big numbers without rounding errors?
Yes, and this is where a spreadsheet or a phone lets you down. Type a dividend up to 15 digits and a divisor up to 14, and the whole division runs on exact integer math, digit by digit, so no floating-point wobble creeps into the last few places. A basic calculator that stores everything as a decimal starts fudging once numbers get long. This keeps the arithmetic honest all the way through.
How many decimal places will it show me?
Up to 30. If a division terminates before that, you get the exact finished decimal. If it repeats, the tool stops the moment it spots the loop and shows the repeating block instead of padding out digits you don't need. And if it's still running past 30 places without a clean repeat, it flags the answer as rounded rather than passing off a cut-off number as exact.
Can I paste numbers that already have commas in them?
Go ahead. The boxes read 4,256 exactly the same as 4256, so you can copy a value out of a spreadsheet without stripping the thousands separators first, and spaces are ignored as well. The one thing the inputs won't take is a decimal point, since classic long division is a whole-number method.
What if I actually need to divide decimals, like 12.5 by 0.4?
The inputs stay whole for now, but you can still solve it here with one setup move. Shift the decimal point the same number of places in both numbers until the divisor is whole. For 12.5 ÷ 0.4, multiply both by 10 to get 125 ÷ 4, then divide. The answer is identical, you just carry the point back into your result at the end.
Does it work on my phone, and does it work offline?
It runs entirely on your own device, so once the page has loaded it keeps working with no connection, on a phone or a laptop the same. Nothing you type ever leaves the browser, which also means there's no lag waiting on a server, the answers update as you type.