One division, every step
How to use the long-division calculator
Enter the dividend — the number being divided — and the divisor — the number you divide by. The page opens with 1,234 ÷ 12 = 102 remainder 10. The result panel shows the quotient, the remainder, and the multiplication check; the trace panel below it shows each partial division.
Both fields accept whole numbers only. The dividend may be zero; the divisor must be at least 1. Decimals such as 12.5, thousands separators such as 1,234, and negative values are rejected with a message under the field that needs correction. Write 1234, not 1,234, because the comma is not a digit.
Reset values restores the 1,234 ÷ 12 example. The current pair is stored in the dividend and divisor URL parameters, so a shared link reopens the same division. Everything is calculated in your browser.
Dividend, divisor, quotient, remainder
The dividend is the total being split. The divisor is the size of each group. The quotient is how many whole groups fit, and the remainder is what cannot fill another group. In 1,234 ÷ 12, the dividend is 1,234 and the divisor is 12; 102 whole groups of 12 fit, and 10 is left over.
dividend = divisor × quotient + remainderRemainder range0 ≤ remainder < divisorDefault1,234 = 12 × 102 + 10The remainder must be smaller than the divisor. If 12 more were left over, another whole group would fit and the quotient would be too small. This bound is the quickest way to tell a correct remainder from a plausible but wrong one.
The identity also explains why the check works: multiplying the divisor by the quotient rebuilds the groups, and adding the remainder restores the leftover part. If the two sides disagree by even 1, the quotient or remainder is wrong.
Worked example: 1234 ÷ 12
The default inputs reproduce this example. Read the steps from left to right, bringing down one digit after each subtraction.
| Step | Number formed | Divide | Subtract | Remainder |
|---|---|---|---|---|
| 1 | 12 (first two digits) | 12 ÷ 12 = 1 | 12 − 12 = 0 | 0; bring down 3 |
| 2 | 3 | 3 ÷ 12 = 0 | 3 − 0 = 3 | 3; bring down 4 |
| 3 | 34 | 34 ÷ 12 = 2 | 34 − 24 = 10 | 10; no digits left |
The quotient digits are 1, 0, and 2, which read as 102. The remainder is 10. The check is 12 × 102 = 1,224, and 1,224 + 10 = 1,234, so the result is consistent with the original dividend.
The second step is the one people skip. The number 3 is smaller than 12, so its quotient digit is 0. That 0 keeps the 2 in the ones place; without it, the quotient would look like 12 instead of 102. A zero quotient digit is a placeholder, not an empty step.
How the step-by-step trace works
The calculator scans the dividend from left to right. It keeps a running remainder, multiplies it by 10, adds the next digit, and divides that number by the divisor once. The whole-number part of that division becomes the next quotient digit; the product is subtracted, and the difference becomes the new remainder.
The first step starts at the shortest prefix that is at least as large as the divisor. For 1,234 ÷ 12 that prefix is 12. For 1,000 ÷ 12, the prefixes 1 and 10 are both smaller than 12, so the first step uses 100: 100 ÷ 12 = 8 with remainder 4, then 40 ÷ 12 = 3 with remainder 4, giving 83 R 4. The trace shows only steps that produce a quotient digit, which is why the early accumulated digits do not appear as separate rows.
If the dividend is smaller than the divisor, no prefix ever reaches the divisor, so the trace is empty and the result is 0 with the dividend as the remainder. For 5 ÷ 12, the answer is 0 R 5. A zero dividend behaves the same way: 0 ÷ 12 = 0 R 0.
Checking the answer
Multiply the divisor by the quotient, add the remainder, and compare the result with the dividend. The tool prints this line in the result panel so the arithmetic can be verified without repeating the steps.
For 1,234 ÷ 12: 12 × 102 = 1,224; 1,224 + 10 = 1,234. The remainder 10 is less than the divisor 12, so no further whole group fits. When the remainder is 0, the product alone must equal the dividend: 1,200 ÷ 12 = 100 R 0, and 12 × 100 = 1,200.
The check catches the two common long-division errors: a quotient digit written in the wrong place and a remainder that was not reduced after subtraction. It does not verify that the inputs were the intended numbers, so confirm the dividend and divisor before relying on the result.
Remainder vs decimal quotient
This calculator reports whole-number division: 1,234 ÷ 12 = 102 R 10. It does not produce 102.8333 or any other decimal quotient. The quotient stops at 102 because the next group of 12 does not fit, and the 10 left over is reported separately.
The leftover 10 can be written over the divisor as the fraction 10/12, which reduces to 5/6. The mixed-number form is 102 5/6. Those are exact readings of the same remainder, but the calculator itself stops at 102 R 10 and does not simplify the fraction or convert it to a decimal. Use the Fraction Calculator to reduce a remainder fraction, or the Mixed Number Calculator to write the quotient and remainder together.
Continuing long division past the decimal point is a separate procedure: bring down a zero, place a decimal point in the quotient, and keep dividing. Because that procedure produces decimal digits and may repeat forever, it is outside this page. The remainder is the complete whole-number answer, not an unfinished decimal.
Limits and input rules
The dividend must be a whole number from 0 to 1,000,000,000,000. The divisor must be a whole number from 1 to 1,000,000,000,000. Both are converted to exact integers, so the quotient, remainder, and trace do not lose digits at the top of that range.
- Zero divisor: rejected, because division by zero is undefined.
- Zero dividend: accepted; 0 ÷ 12 = 0 R 0.
- Decimals: rejected, including 12.5 and 12.0. Enter digits only.
- Thousands separators: rejected. Enter 1234 rather than 1,234.
- Negative values: rejected; the page does not choose a signed-division convention for you.
- Empty fields: rejected with a message naming the missing value.
The trace contains at most one row per digit of the dividend, so a 13-digit dividend produces no more than 13 partial divisions. The display is the same algorithm used for paper long division; the only difference is that the calculator suppresses the leading prefix steps that never reach the divisor.
Whole-number division is not the same as a calculator’s division key. A scientific calculator usually returns a decimal, and a spreadsheet may offer separate functions for the quotient and the remainder. This page keeps the quotient, remainder, and check in one view so the relationship stays visible.
Long division FAQs
What does a remainder of 0 mean?
A remainder of 0 means the divisor divides the dividend exactly, so the quotient is a whole number with nothing left over. 1,200 ÷ 12 = 100 R 0 because 12 × 100 = 1,200. The check line still applies, but the + 0 adds nothing. This is not the same as rounding a decimal quotient down; the division is complete at 100.
Why is there a 0 in the quotient of 1,234 ÷ 12?
After 12 divides into 12 once and leaves 0, the next digit brought down is 3. Since 3 is smaller than 12, the quotient digit for that place is 0. That zero holds the tens place, so the quotient reads 102 rather than 12. The next step brings down 4, forming 34, which 12 divides twice. Skipping the zero would change the place value of every digit after it.
Can the divisor be larger than the dividend?
Yes. When the divisor is larger, the quotient is 0 and the whole dividend is the remainder, so 5 ÷ 12 = 0 R 5. There are no partial-division steps because no prefix of the dividend ever reaches 12. The same rule produces 0 ÷ 12 = 0 R 0 when the dividend is zero.
Why are negative numbers rejected?
Signed division has more than one accepted convention. For -1,234 ÷ 12, truncating toward zero gives -102 with remainder -10, while floor division gives -103 with remainder 2. Both satisfy a version of the division identity, so a calculator must state which rule it uses. This page avoids that ambiguity by accepting non-negative dividends and positive divisors only.