Long Division Calculator
Long division is where many students first lose track of their work. One digit brought down too early, or one zero left out of the quotient, and the whole answer is wrong. Most online tools only print the result, which does not help you find the mistake. Checking homework needs the full written layout, not just a number.
This long division calculator draws the complete bracket layout and explains each divide, multiply, subtract and bring down step. It works with whole numbers and decimals and gives either a quotient with a remainder or a decimal answer. Repeating digits are marked with a bar. Every result includes a check line, so you can confirm the answer by multiplying back.
What Is Long Division?
Long division is a written method for dividing large numbers by breaking the job into small, repeated steps. You divide the leading digits of the dividend by the divisor and write that digit in the quotient. Then you multiply, subtract and bring down the next digit. The cycle repeats until every digit has been used, and whatever is left is the remainder.
The dividend is the number being divided, and the divisor is the number you divide by. The quotient is the answer, and the remainder is what cannot be shared evenly. In 845 ÷ 7, the dividend is 845, the divisor is 7, the quotient is 120 and the remainder is 5. These names appear in the steps panel, so they are worth learning once.
How to Use the Long Division Calculator
Type the dividend and the divisor, then press Calculate. Choose Remainder for a whole-number quotient with a remainder, or Decimal to keep dividing past the decimal point. In Decimal mode, Decimal places can stay on Auto or be set from 0 to 20.
The written layout appears under the answer, with the quotient above the bracket and each subtraction lined up below. Turn on Show Steps for a sentence explaining every line in plain words. The Swap button exchanges the two numbers, and a check line multiplies the answer back to prove it.
- Enter the dividend, the number being divided.
- Enter the divisor, the number you divide by.
- Pick Remainder or Decimal as the answer format.
- Press Calculate to see the answer and the written layout.
- Turn on Show Steps to read each divide, multiply, subtract and bring down step.
The Four Steps: Divide, Multiply, Subtract, Bring Down
Each cycle starts by dividing the current partial number by the divisor and writing the whole-number result in the quotient. That digit is multiplied by the divisor, and the product is subtracted from the partial number. The next digit of the dividend is then brought down beside the difference. If the new number is still smaller than the divisor, a zero goes into the quotient.
Decimals follow the same cycle with one extra step at the start. When the divisor has a decimal point, both numbers are multiplied by the same power of ten until the divisor is whole. Past the last digit of the dividend, zeros are brought down to continue into decimal places. If a remainder repeats, the digits between the two matching remainders repeat forever.
- Divide: how many times does the divisor fit into the current number?
- Multiply: that digit times the divisor.
- Subtract: take the product away from the current number.
- Bring down: attach the next digit and start again.
- Stop when no digits remain, or keep going with zeros for decimals.
Long Division Calculator Examples
These examples move from a clean division to remainders, repeating decimals and decimal divisors. Each one states the input, the answer and what the result means in practice.
Enter any example above to see its full written layout. The check line under each answer multiplies the quotient back so you can trust the result.
A division with no remainder
Divide 156 by 12 to get 13. Twelve fits into 15 once with 3 left, and 36 is exactly 12 × 3. A remainder of 0 means 156 splits into 12 equal groups of 13.
A zero in the middle of the quotient
Divide 845 by 7 to get 120 remainder 5. After 84 gives 12, bringing down the 5 leaves a number smaller than 7, so the quotient gets a 0. Skipping that zero would give 12 remainder 5, which is badly wrong.
A four-digit dividend and a two-digit divisor
Divide 4392 by 24 to get 183. The divisor fits into 43 once, into 199 eight times and into 72 three times. Multiplying 183 by 24 returns 4392, so the answer checks out.
A three-digit divisor
Divide 9876 by 123 to get 80 remainder 36. Since 123 × 80 = 9840, the leftover is 9876 - 9840 = 36. Estimating with 120 instead of 123 makes each trial digit easier to guess.
One answer written three ways
Divide 25 by 4 to get 6 remainder 1 in Remainder mode. Decimal mode gives 6.25, and the same result is the mixed number 6 1/4. The remainder 1 over the divisor 4 is where the fraction comes from.
A terminating decimal
Divide 1 by 8 in Decimal mode to get 0.125. Zeros are brought down until the remainder becomes 0 after three decimal places. Any divisor made only of factors 2 and 5 gives a decimal that ends.
A repeating decimal
Divide 1 by 7 to get 0.142857 with a bar over all six digits. The remainder 1 comes back after six steps, so the same digits repeat forever. The copy button gives it as 0.(142857).
The famous 22 ÷ 7
Divide 22 by 7 to get 3.142857 with the last six digits repeating. The value is close to pi, which starts 3.14159, but it is not equal. That is why 22/7 is only an approximation.
Dividing by a decimal
Divide 7.5 by 0.25 to get 30. The tool multiplies both numbers by 100 first, turning the problem into 750 ÷ 25. Moving the decimal point in both numbers never changes the quotient.
A decimal dividend
Divide 12.6 by 4 to get 3.15. The decimal point in the quotient sits directly above the one in the dividend. A zero is brought down once to finish the last digit.
Dividing a smaller number by a larger one
Divide 3 by 4 to get 0 remainder 3, or 0.75 in Decimal mode. Four does not fit into 3, so the quotient starts with 0 and a decimal point. Two zeros brought down finish the division.
Converting feet to yards
Divide 5280 by 3 to get 1760. A mile is 5280 feet and a yard is 3 feet, so a mile is 1760 yards. The zero in the last place appears because the final brought-down 0 divides evenly.
A negative dividend
Divide -84 by 6 to get -14. The tool divides 84 by 6 and then applies the sign rule. A negative divided by a positive is always negative.
Splitting a bill
Divide 1250 by 8 in Decimal mode to get 156.25. Eight people each pay 156.25 with nothing left over. Remainder mode would say 156 remainder 2, which is less useful for money.
Packing eggs into boxes
Divide 500 by 12 to get 41 remainder 8. That means 41 full boxes and 8 loose eggs, so you need 42 boxes to pack them all. Reading the remainder in context matters as much as the division.
A thirds problem
Divide 100 by 3 to get 33 remainder 1, or 33.3 with a bar over the 3 in Decimal mode. The remainder 1 keeps reappearing, so the 3 never stops. Rounded to two places it becomes 33.33.
A five-digit dividend
Divide 52416 by 18 to get 2912 exactly, since 18 × 2912 equals 52416. The divide, multiply, subtract and bring down cycle runs four times, once for each digit after the first pair. Longer dividends do not change the method, only how many rounds it takes.
Integer Division and Remainders in Code
Programming languages split long division into two operators: one for the quotient and one for the remainder. JavaScript uses Math.trunc(a / b) and the % operator, while Python offers // and % or the combined divmod function. The results match for positive numbers but differ for negatives, which is a common source of bugs.
JavaScript truncates toward zero, so -7 % 2 is -1, and BigInt division also truncates. Python floors toward negative infinity, so -7 // 2 is -4 with remainder 1. For exact fractions such as 22/7, Python's Fraction type avoids rounding entirely.
const dividend = 845, divisor = 7;
console.log(Math.trunc(dividend / divisor)); // 120
console.log(dividend % divisor); // 5
// % keeps the sign of the dividend
console.log(-7 % 2); // -1
console.log(-7n / 2n); // -3n, BigInt division truncates toward zeroprint(divmod(845, 7)) # (120, 5)
print(-7 // 2, -7 % 2) # -4 1, Python floors toward negative infinity
print(1 / 7) # 0.14285714285714285
from fractions import Fraction
print(Fraction(22, 7)) # 22/7, kept exact instead of roundedAccuracy, Repeating Decimals and Privacy
The calculator divides digit by digit with exact integer arithmetic, just as you would on paper. It detects a repeating decimal by watching for a remainder that has appeared before, then marks the repeating block with a bar. Auto mode shows up to 60 decimal digits, and longer cycles are rounded to 20 places and labeled approximate.
Dividends and divisors can have up to 15 digits each, including decimal places. All work happens in your browser, and no numbers are sent to a server or stored. Your inputs disappear as soon as you close or refresh the page. The site's other math calculators follow the same rule.
Common Long Division Mistakes
Most long division errors happen in the bring down step or when a zero is needed in the quotient. Others come from subtracting incorrectly or placing the decimal point in the wrong column. The table lists each mistake with a quick way to catch it.
The simplest check is to multiply the quotient by the divisor and add the remainder. If the total does not equal the dividend, one of the steps went wrong. The tool shows this check under every answer, and it also explains the messages you may see for invalid input.
Mistake or message | Example | Fix |
|---|---|---|
| Missing zero in the quotient | 845 ÷ 7 written as 12 remainder 5 | Write 0 whenever the brought-down number is smaller than the divisor |
| Bringing down two digits at once | Jumping from 84 to 845 in one step | Bring down one digit per cycle |
| Remainder larger than the divisor | A step leaves 9 when dividing by 7 | The trial digit was too small, so increase it by 1 |
| Decimal point in the wrong place | 12.6 ÷ 4 written as 31.5 | Line up the quotient's point with the dividend's point |
| Division by zero is undefined. | Any number ÷ 0 | Check the divisor |
| Enter a whole number or decimal. | Letters or two decimal points | Use digits, one optional point and an optional minus sign |
| Too many digits. | More than 15 digits in a field | Round or shorten the number |
Long Division vs Short Division and Other Methods
Long division writes every multiplication and subtraction, which makes it the easiest method to check. Short division keeps the subtractions in your head and suits single-digit divisors. Chunking, also called partial quotients, subtracts easy multiples like 10 or 100 times the divisor and adds them up at the end.
This long division calculator shows the full written method because that is what most homework requires. If you only need the number, the instant-answer tool is faster, and the table below shows when each method fits best. For checking multiplication the other way, try the long multiplication calculator.
Method | How it works | Best for | Shows all work? |
|---|---|---|---|
| Long division | Divide, multiply, subtract, bring down | Two-digit and larger divisors | Yes |
| Short division | Remainders carried mentally to the next digit | Single-digit divisors | Partly |
| Chunking or partial quotients | Subtract easy multiples and total them | Building number sense | Yes |
| Calculator division | Result only | Quick answers | No |
Long Division Questions Answered
These answers cover what people most often ask about long division, from the basic steps to remainders and repeating decimals. Many of the questions come from parents helping with homework.
Every rule mentioned here is shown in full in the examples. Enter the same numbers above to follow along step by step.