Skip to content
Popular Calculators
Browse Math calculators

Long Division Calculator

Divide one number by another and see every step of the long division, with a remainder or carried out to decimal places.

What do you want to work out?

The number being divided.

The number you are dividing by.

About the Long Division Calculator

Any phone can tell you that 1734 ÷ 13 is 133 remainder 5. The useful thing is seeing how it got there, which is what this calculator shows: every digit of the quotient, every subtraction, every number brought down.

Long division is the first algorithm most people are taught, and it is genuinely clever. It breaks an intimidating division into a short sequence of small ones, each involving a single digit. The method scales to numbers of any size without getting any harder — only longer.

The calculator works in two modes. One gives a whole answer with a remainder, which is what you want when the quantities are indivisible — people, boxes, whole items. The other carries on past the decimal point, and marks the repeating block when the division turns out never to finish.

How to Use the Long Division Calculator

Enter the dividend — the number being divided — and the divisor, the number you are dividing by. Both must be whole numbers.

Choose a mode:

Whole answer with a remainder stops when the digits run out and reports what is left over.

Carry on into decimals keeps going, bringing down zeros, up to the number of decimal places you set. If the division repeats, it stops early and marks the repeating block rather than filling the space with digits.

Press Calculate. The working appears line by line, and the answer is accompanied by a check: quotient × divisor + remainder should return the dividend exactly. If it does, nothing went wrong.

Negative numbers are accepted. The remainder is always reported as non-negative, which is explained below.

How Long Division Is Calculated

The whole method rests on one idea: you do not have to divide the whole number at once. Divide it one digit at a time, from the left, carrying what is left over into the next step.

For each digit:

Bring it down and attach it to whatever was left from the previous step.

Ask how many times the divisor fits into that number. That count is the next digit of the answer.

Multiply and subtract to find what remains.

Repeat with the next digit.

When the digits run out, whatever is left is the remainder.

Decimal mode simply refuses to stop there. Add a decimal point to the answer and start bringing down zeros. Each zero produces one more decimal digit. Two things can happen: the remainder reaches zero and the division terminates, or a remainder appears that you have seen before — at which point the whole sequence of digits must repeat, because the same remainder produces the same digit and the same next remainder forever after.

That is the mechanism behind every repeating decimal, and it also bounds them. Dividing by 7, the only possible non-zero remainders are 1 to 6, so a remainder must recur within six steps and the repeating block cannot be longer than six digits.

Long Division Formula

dividend = quotient x divisor + remainder

with  0 <= remainder < |divisor|

That identity is the definition of division with remainder, and it is the check this calculator runs on every answer. If the multiplication back does not return the dividend, the division is wrong.

The constraint on the remainder is what fixes the sign convention. For −17 ÷ 5 there are two defensible answers:

-3 remainder -2    ->  -3 x 5 + (-2) = -17   (truncated division)
-4 remainder  3    ->  -4 x 5 +   3  = -17   (Euclidean division)

Both satisfy the identity. This calculator uses the second, keeping the remainder non-negative, because a remainder is conceptually an amount left over and a negative leftover is hard to interpret. Programming languages differ on this — most follow the first — which is worth knowing if a modulo operation ever surprises you with a negative result.

Step-by-Step Example

Divide 1734 by 13.

Step 1 — first digit. 13 does not fit into 1, so take the first two digits:

  1. 13 goes into 17 once. Write 1. 1 × 13 = 13, and 17 − 13 = 4.

Step 2 — bring down the 3. That gives 43. 13 goes into 43 three times. Write 3. 3 × 13 = 39, and 43 − 39 = 4.

Step 3 — bring down the 4. That gives 44. 13 goes into 44 three times. Write 3. 3 × 13 = 39, and 44 − 39 = 5.

Step 4 — digits exhausted. The answer is 133 remainder 5.

Step 5 — check. 133 × 13 = 1729, and 1729 + 5 = 1734. ✓

Now carry it into decimals. The remainder of 5 becomes 50 when a zero comes down. 13 goes into 50 three times with 11 left; 110 gives 8 with 6 left; 60 gives 4 with 8 left, and so on. After six decimal digits the remainder returns to 5 — the value it had when the decimals began — and from there everything repeats:

1734 / 13 = 133.(384615)

Six digits, repeating forever, which is exactly the maximum a divisor of 13 can produce.

Understanding Your Result

In remainder mode the answer is the quotient and, when there is one, the remainder. The check line multiplies back, and it is worth reading: it is the same verification you would do by hand, and it catches any transcription error.

In decimal mode the answer may end in one of three ways, shown in the type line:

  • Terminates exactly — the remainder reached zero and the decimal is complete.
  • Repeating, n-digit block — a remainder came round again. The digits in

brackets repeat without end, and the answer shown is exact, not rounded.

  • Cut off at n places — the division neither terminated nor repeated within

the places you asked for. Increase the places to see more; if it repeats, a longer run will find it.

That third case usually means the period is longer than the number of places requested. Dividing by 97 has a 96-digit period, so six places will not reveal it.

When Should You Use This Calculator?

Learning or teaching the method. The step-by-step working is the point. Comparing it with a hand attempt shows exactly which step went wrong.

Checking homework. Division questions that ask for a remainder rather than a decimal are common, and the check line confirms the answer.

Sharing indivisible things. How many full boxes of 13 fit into 1734 items, and how many are left over. A decimal answer is useless here; the remainder is the whole point.

Scheduling and grouping. Working out complete cycles and what falls outside them — weeks in a number of days, full teams from a headcount.

Understanding repeating decimals. Watching the remainder cycle is the clearest explanation of why 1/7 repeats and 1/8 does not.

Modular arithmetic. The remainder is the modulo operation, which underpins clock arithmetic, checksums and a good deal of cryptography.

Common Mistakes

Forgetting to bring the next digit down. The most common error in hand working, and it produces an answer with too few digits — usually off by a factor of ten.

Writing a leading zero in the quotient. If the divisor does not fit into the first digit, you take two digits and the answer starts there. 144 ÷ 12 is 12, not 012.

Misplacing the decimal point. When continuing into decimals, the point in the answer goes directly above where it sits in the dividend. Shifting it is the easiest way to be out by a power of ten.

Stopping the subtraction too early. At every step the remainder must be smaller than the divisor. If it is not, the quotient digit was too small and the divisor fits at least once more.

Treating the remainder as a decimal. "133 remainder 5" does not mean 133.5. The remainder is 5 out of 13, which as a decimal is 0.3846…, not 0.5.

Assuming every division terminates. Many do not, and a calculator that shows six digits and stops has rounded rather than finished. The bracket notation here tells you which you are looking at.

Expecting programming languages to agree on negatives. Most use truncated division, giving −3 remainder −2 for −17 ÷ 5. This calculator uses the Euclidean convention with a non-negative remainder. Both are correct; they answer slightly different questions.

Frequently Asked Questions

What are the parts of a division called?

The number being divided is the dividend, the number you divide by is the divisor, the answer is the quotient, and anything left over is the remainder. The relationship between them is that quotient times divisor plus remainder returns the dividend, which is the check worth running.

How does long division actually work?

You divide the dividend one digit at a time, from the left. At each step you ask how many times the divisor fits into the current partial number, write that digit in the answer, subtract what it accounts for, and bring the next digit down. The process repeats until the digits run out.

What happens to the remainder in decimal division?

Instead of stopping, you add a decimal point and continue bringing down zeros. Each zero produces another decimal digit. The division either terminates when the remainder reaches zero, or repeats forever once a remainder appears that you have seen before.

Why do some divisions never end?

Because the remainder starts cycling. There are only a limited number of possible remainders for a given divisor, so one must eventually repeat, and from that point the digits repeat too. Dividing by seven can produce at most six distinct remainders, so its decimal repeats every six digits.

How do negative numbers divide?

The magnitudes are divided as normal and the sign follows the usual rule: two like signs give a positive quotient and two unlike signs give a negative one. Conventions for the sign of the remainder differ, so this calculator keeps the remainder non-negative and adjusts the quotient to match.

Last reviewed September 17, 2026 by the CalculatorPeak editorial team.