Maths

Long Division Calculator

Divide whole numbers step by step, with the remainder and the exact recurring decimal.

By Nitin Raturi · Last reviewed

Your division

How to use the Long Division Calculator

Divide two whole numbers and see every step.

  1. Enter the dividend and the divisor.
  2. Choose how many decimal places to write out.
  3. Read the quotient, remainder and exact decimal.
  4. Follow the steps: bring down, divide, multiply, subtract.

Good to know

  • Brackets mark digits that repeat for ever.
  • Check: divisor × quotient + remainder = dividend.

Dividend

The number being divided.

How to fill it in

  • Enter a whole number from 0 to 10¹⁵.

Example

7894 ÷ 13 is 607 remainder 3.

Divisor

The number you divide by.

How to fill it in

  • Enter a whole number from 1 to 10⁹.

Example

1 ÷ 8 = 0.125 ends; 1 ÷ 7 = 0.(142857) repeats for ever.

Decimal places in the steps

How many digits after the point to write out as division steps.

How to fill it in

  • Enter 0 to 10. 0 stops at the whole-number quotient and remainder.

Tip: The exact decimal is always shown, with the repeating block in brackets: 1 ÷ 6 = 0.1(6).

7894 ÷ 13

607 R 3

7894 ÷ 13 = 607 remainder 3, or 607.(230769) as a decimal.

  1. 78 ÷ 13 = 6; 13 × 6 = 78; 78 − 78 = 0
  2. 9 ÷ 13 = 0; 13 × 0 = 0; 9 − 0 = 9
  3. 94 ÷ 13 = 7; 13 × 7 = 91; 94 − 91 = 3
  4. After the point: 30 ÷ 13 = 2; 13 × 2 = 26; 30 − 26 = 4
  5. After the point: 40 ÷ 13 = 3; 13 × 3 = 39; 40 − 39 = 1

Digits in brackets repeat for ever.

How this calculator works

  1. Step 1Bring downnext digitAttach the next digit to the remainder.
  2. Step 2Dividehow many timesFind how many times the divisor fits.
  3. Step 3Multiply, subtractnew remainderTake that much away and carry on.

Long division repeats one small step for each digit. After the last digit, adding a decimal point and zeros carries the division on into decimals.

Worked example: 7894 ÷ 13

7894 ÷ 13 to two decimal places
Each step
current = remainder × 10 + next digit
  1. 7813 × 6 = 78remainder 0
  2. 913 × 0 = 0remainder 9
  3. 9413 × 7 = 91remainder 3
  4. 30 (after the point)13 × 2 = 26remainder 4
  5. 40 (after the point)13 × 3 = 39remainder 1
  6. Answer607 remainder 3

As a decimal it is 607.(230769): the block 230769 repeats for ever.

Ending or repeating

  • 1 ÷ 80.125Ends: 8 has only the prime 2.
  • 1 ÷ 60.1(6)One digit, then a repeat.
  • 1 ÷ 70.(142857)Six digits repeat for ever.

A decimal ends only when the divisor, after cancelling, has no prime factors other than 2 and 5.

Assumptions and limits

  • Whole numbersDividend up to 10¹⁵, divisor up to 10⁹.
  • Exact decimalRepeating blocks are found exactly.
  • Up to 10 placesSteps can continue past the point.
  • Long cyclesBlocks over 300 digits are cut short.

Long division gives a quotient and remainder. Fractions and rounding are the next steps.

To simplify the result as a fraction, use the fraction calculator. For a decimal to a set number of places, try the rounding calculator.

Common mistakes

  • Mistake: Forgetting a 0 in the quotient.

    Instead: Write 0 when the divisor does not fit.

  • Mistake: Leaving a remainder bigger than the divisor.

    Instead: The divisor could fit once more.

  • Mistake: Rounding 0.(3) to 0.33 as exact.

    Instead: Use brackets or say “about 0.33”.

Checking the method

A separate script re-works every golden value with divmod and number theory, without watching remainders.

Read how we test our calculators, or browse more maths calculators.

Frequently asked questions

What is 7894 divided by 13?

607 remainder 3, or 607.(230769) as a decimal.

How do I do long division?

Bring down a digit, see how many times the divisor fits, multiply, subtract, and repeat.

What is 1 divided by 7 as a decimal?

0.(142857): the six digits in brackets repeat for ever.

Why does 1 ÷ 8 end but 1 ÷ 6 repeat?

8 has only the prime 2, so 1 ÷ 8 = 0.125. 6 has the prime 3, so 1 ÷ 6 = 0.1(6).

How do I check a division?

Multiply the divisor by the quotient and add the remainder; you get the dividend back.

Sources and methodology

The formulas are standard time-value-of-money results. We check every figure against golden values worked out independently, by closed form and by month-by-month simulation; see the methodology.

Written and maintained by Nitin Raturi, a software engineer (about the author). Last reviewed 4 Nov 2026; next review due by . Found an error? Tell us.

Changelog

  • : Initial release.