calculator.onl
Categories50

Long division with steps

Divide a non-negative integer by a positive integer and inspect every subtraction and remainder, including recurring decimals.

A worked example

Divide 85 first by 4, then by 5. Look at the remainder under the final subtraction.

Integer quotient333Remainder24Decimal quotient333.648 ↻
Enter the whole number being divided. For 17 ÷ 5, enter 17 here.

Enter the whole number you are dividing by. For 17 ÷ 5, enter 5 here. Division by zero is undefined.

Enter 0 for the whole-number steps only. A positive limit lets the calculation bring down zeros after the decimal point.

Updates as you type

Use a dot or comma for decimals. No thousands separators.

YOUR RESULT

Integer quotient

333

Calculated from your inputs

Remainder24
Decimal quotient333.648 ↻
The numbers, at a glance

Calculations run in your browser.
UNDERSTAND THE RESULT

A little context. A clearer answer.

↑ Back to calculator

When this calculator is useful

A larger divisor fits into the same dividend fewer whole times, which is visible in the quotient and the subtraction steps. Change “Divisor (positive integer)” from 37 to 100 and keep the other inputs from the worked example. The value for “Integer quotient” goes from 333 to 123. For a related calculation, try Exact binary arithmetic calculator.

What to enter

InputWhat it meansExample value
Dividend (integer)Enter the whole number being divided. For 17 ÷ 5, enter 17 here.12,345
Divisor (positive integer)Enter the whole number you are dividing by. For 17 ÷ 5, enter 5 here. Division by zero is undefined.37
Maximum decimal digitsEnter 0 for the whole-number steps only. A positive limit lets the calculation bring down zeros after the decimal point.6

How the calculation works

  1. Change the inputs to explore your own scenario. Dividend (integer); Divisor (positive integer); Maximum decimal digits.
  2. a=bq+r; 0≤r<b; d=⌊10r/b⌋
  3. Integer inputs only, up to twelve dividend digits and nine divisor digits. The decimal expansion is limited to thirty places. An arrow marks a detected repeating block; an ellipsis means the requested digit limit was reached. Quotient and remainder use exact integer arithmetic.
The formulaa=bq+r; 0≤r<b; d=⌊10r/b⌋

A worked example

12345÷37=333; r=24; 0.648648…

Example you can load

What to enter
Result for this example · Integer quotient333

This is a fixed example; changing the form above does not change these numbers.

Assumptions & limits

Integer inputs only, up to twelve dividend digits and nine divisor digits. The decimal expansion is limited to thirty places. An arrow marks a detected repeating block; an ellipsis means the requested digit limit was reached. Quotient and remainder use exact integer arithmetic.

Reference ·

Frequently asked questions

How can I check the quotient and remainder?

Multiply the divisor by the whole-number quotient, then add the remainder. For 17 ÷ 5, the quotient is 3 and the remainder is 2, so 5 × 3 + 2 gives back 17.

Why does the next row bring down a zero?

Once the dividend's digits have run out, a nonzero remainder can be expressed in tenths. For 17 ÷ 5 the remainder is 2, so the next row divides 20 by 5 to give the decimal digit 4. The result is 3.4.

What is the difference between ↻ and …?

A return to a previously seen remainder marks a repeating decimal with ↻. An ellipsis means the digit limit was reached before the calculation ended or detected a repeat. Increase the limit to inspect more steps.