Everyday tool

Long Division Calculator with Steps

Enter a whole-number dividend and a non-zero divisor.

Runs in your browser. No upload.

Values are processed locally in this browser.

Result

—

About this tool

Long Division Calculator with Steps made simple.

The written steps are generated by the standard digit-by-digit long-division algorithm. Decimal expansion is optional and capped.

Guide

Using Long Division Calculator with Steps

The Long Division Calculator divides one whole number by another and shows the quotient, the remainder and the working. You type a dividend, which is the number being shared, and a divisor, which is the number you divide by. The tool goes through the dividend one digit at a time, like long division on paper, and prints each line of the sums. When something is left over, it also adds a decimal line, cut at 12 places. It takes whole numbers only, so you cannot type decimals.

How to use it

  1. Type the dividend in the first box. This is the big number you want to divide, such as 157.
  2. Type the divisor in the second box. This must be a whole number of 1 or more, such as 4.
  3. Press Calculate. The result box shows the quotient, the remainder, a Decimal line when the remainder is not 0, and a list of steps.
  4. Read the steps from top to bottom. Each line takes the next digit, divides, and subtracts to find what is left over.
  5. Press Copy result to copy the text, or Clear to start again.

Worked examples

157 divided by 4

You enter
Dividend
157
Divisor
4
You get
Quotient
39
Remainder
1
Decimal
39.25
Steps
1 ÷ 4 = 0; 1 − 0 = 1; 15 ÷ 4 = 3; 15 − 12 = 3; 37 ÷ 4 = 9; 37 − 36 = 1

4 goes into 15 three times with 3 left. Bring down the 7 to make 37. 4 goes into 37 nine times with 1 left. So 39 remainder 1 means 4 times 39 plus 1 is 157. The extra Decimal line goes on with the remainder, 1 ÷ 4 = 0.25, and shows 39.25.

Run through the tool’s own code.

A division with no remainder

You enter
Dividend
1000
Divisor
8
You get
Quotient
125
Remainder
0
Steps
1 ÷ 8 = 0; 1 − 0 = 1; 10 ÷ 8 = 1; 10 − 8 = 2; 20 ÷ 8 = 2; 20 − 16 = 4; 40 ÷ 8 = 5; 40 − 40 = 0

The last line ends with 0 left over, so 8 divides 1000 exactly and no Decimal line appears. The first step shows a quotient digit of 0 and the tool drops that leading zero from the final quotient.

Run through the tool’s own code.

Divisor bigger than the dividend

You enter
Dividend
7
Divisor
10
You get
Quotient
0
Remainder
7
Decimal
0.7
Steps
7 ÷ 10 = 0; 7 − 0 = 7

10 does not fit into 7 even once, so the quotient is 0 and the whole 7 is the remainder. The Decimal line shows 0.7.

Run through the tool’s own code.

A decimal that goes on

You enter
Dividend
22
Divisor
7
You get
Quotient
3
Remainder
1
Decimal
3.142857142857…
Steps
2 ÷ 7 = 0; 2 − 0 = 2; 22 ÷ 7 = 3; 22 − 21 = 1

The remainder 1 is divided by 7 again and again, one digit at a time. The tool stops after 12 decimal places and ends the line with three dots to show that more digits would follow. The digits are cut off, not rounded.

Run through the tool’s own code.

A decimal that ends

You enter
Dividend
1
Divisor
8
You get
Quotient
0
Remainder
1
Decimal
0.125
Steps
1 ÷ 8 = 0; 1 − 0 = 1

The remainder 1 runs out after three decimal places, so the line is 0.125 with no dots. No dots means the decimal is complete.

Run through the tool’s own code.

A number that is not allowed

You enter
Dividend
25.5
Divisor
2
You get
Message
Use non-negative whole-number dividend and a positive whole-number divisor within the safe integer range.

The tool does not accept decimals as input. A divisor of 0 or a negative number gets the same message.

Run through the tool’s own code.

When it helps

  • Check a long division homework answer and see where a step went wrong.
  • Show a child how the digits are taken one by one.
  • Find the remainder for a modulo sum, such as splitting items into equal groups.
  • Divide a large whole number, up to the largest safe integer, without a calculator rounding it.
  • Prepare worked examples for a lesson or a worksheet.

Limits to keep in mind

  • Only whole numbers are accepted. Decimals, fractions and negative numbers give an error message.
  • The divisor must be 1 or more. Dividing by zero is not allowed.
  • Both numbers must be within the safe integer range of a browser, which tops out at 9,007,199,254,740,991.
  • The steps are written as lines of text, not drawn as the usual bracket layout.
  • The Decimal line shows at most 12 decimal places, cut off and not rounded. Three dots at the end mean more digits would follow, and the line is missing when the remainder is 0.

Tips

  • Use the check that divisor times quotient plus remainder gives back the dividend.
  • Read the first lines carefully when they show a zero. That is normal when the first digits are smaller than the divisor.
  • Use the Decimal line for a fractional answer, and check it by hand if you like: the remainder over the divisor, such as 1 over 4, is 0.25.

Common questions

About Long Division Calculator with Steps.

Does it show decimal answers?

Yes, as an extra line when the remainder is not 0. For 22 divided by 7 it shows Decimal: 3.142857142857…, with at most 12 places. Dots mean more digits would follow. You still cannot type decimals as the dividend or the divisor.

What is the remainder?

It is what is left after you take as many full copies of the divisor as you can. In 157 divided by 4, you take 39 copies of 4 and 1 is left.

Can I divide by zero?

No. Division by zero has no answer, and the tool rejects it with an error message. The divisor must be a whole number from 1 upwards.

Why does the first step sometimes show a 0?

The tool starts with the first digit. If that digit is smaller than the divisor, the divisor fits zero times, so the step shows 0 and carries the digit into the next line.

Can I enter negative numbers?

No. The dividend must be zero or more and the divisor must be above zero. A negative number or a decimal produces the same error message.

How large can the numbers be?

Up to 9,007,199,254,740,991, the largest safe whole number in a browser. Bigger values are refused so that the digits stay exact.

How do I check the answer?

Multiply the quotient by the divisor and add the remainder. You should get the dividend. For 39 and 4 and 1, that is 156 plus 1, which is 157.

Is my input sent to a server?

No. The page works out the steps in your browser, and the status line says values are processed locally. Nothing is uploaded.

How is it different from a normal calculator?

A normal calculator gives one answer, often with decimals. This tool gives the whole-number quotient and remainder, a decimal line when there is a remainder, and every subtraction step, so you can follow the method.

How do I use Long division calculator?

Enter a whole-number dividend and a non-zero divisor.

Is my data uploaded to a server?

No. This tool runs locally in your browser. Your input is not uploaded.