See How Things Work

Long division

Unit
Division
Part
1. Division
Lesson
1.6

Long division finds the quotient and remainder of any division of whole numbers, one digit of the quotient at a time, from the left. This lesson builds it from place value: it divides the largest place first and regroups what is left into the next place. It then proves that the method always gives the quotient and remainder of the division algorithm, and treats zeros in the quotient and divisors with several digits.

Why a faster method is needed

The lesson “Division with remainder” found quotients and remainders by repeated subtraction: subtract the divisor as many times as possible; the number of subtractions is the quotient and what is left is the remainder.⁠[1] That always works, but it is slow. To find 7,452 ÷ 6 this way takes 1,242 subtractions, one for each group of 6. Much faster methods exist.⁠[2]

The faster method uses what the numeral 7,452 already says: 7 thousands, 4 hundreds, 5 tens and 2 ones (lesson “Thousands and larger numbers”). Instead of taking away one group of 6 at a time, it shares out each place in one go, starting with the largest.

Dividing place by place

A sharing among b groups can be done in any order, as long as every object ends up in exactly one group and the groups stay equal (lesson “Division as sharing and as grouping”). So share the largest blocks first. When some blocks of a place cannot be shared equally, break each of them into ten blocks of the next smaller place, as in regrouping (lesson “Ones, tens and hundreds”), and share those together with the blocks already there. One block of a place is worth ten blocks of the place to its right.⁠[3]

Example (Sharing 738 among 3, place by place).

Share 738 objects, as 7 hundreds, 3 tens and 8 ones, equally among 3 groups.

  1. Hundreds: 7 hundreds among 3 groups. 2 × 3 = 6 is not more than 7 and 3 × 3 = 9 is, so each group gets 2 hundreds; 6 are used and 1 hundred is left.
  2. Regroup the leftover hundred into 10 tens. With the 3 tens already there, there are 13 tens to share.
  3. Tens: 4 × 3 = 12 is not more than 13 and 5 × 3 = 15 is, so each group gets 4 tens; 12 are used and 1 ten is left.
  4. Regroup the leftover ten into 10 ones. With the 8 ones already there, there are 18 ones to share.
  5. Ones: 6 × 3 = 18, so each group gets 6 ones and nothing is left.

Answer: each group holds 2 hundreds, 4 tens and 6 ones, that is, 246, and nothing is left over: 738 ÷ 3 = 246. Check: 246 × 3 = 600 + 120 + 18 = 738.

PlaceTo shareEach group getsLeft over
hundreds72 (uses 2 × 3 = 6)1 → 10 tens
tens10 from regrouping + 3 = 134 (uses 4 × 3 = 12)1 → 10 ones
ones10 from regrouping + 8 = 186 (uses 6 × 3 = 18)0
Figure. The sharing of 738 among 3 groups, one place at a time from the left. What cannot be shared at one place is regrouped into ten times as many of the next place.
246
group 1
246
group 2
246
group 3
Figure. The three equal shares of 738: each is 2 hundreds, 4 tens and 6 ones. Together they hold 6 hundreds, 12 tens and 18 ones, which regroup to 7 hundreds, 3 tens and 8 ones.

The share of each place is a single digit, at most 9, so the shares written side by side form the numeral of the quotient, 246. Section 4 proves that this is always so.

The written method

Long division writes this sharing down compactly. The dividend is written under a bracket, the divisor to its left, and the quotient is built up above the bracket, one digit over each digit of the dividend. This process is called long division.⁠[4]

Definition (Long division).

To divide a whole number a by a whole number b ≠ 0:

  1. Start with the first digit of a. If it is less than b, take the first two digits instead, and so on, until the number taken is at least b.⁠[5] (If even all of a is less than b, the quotient is 0 and the remainder is a.) This number is the first partial dividend.
  2. Divide: find the largest digit d with d × b not more than the partial dividend, and write d in the quotient, above the last digit taken.
  3. Multiply and subtract: write d × b under the partial dividend and subtract it.⁠[6]
  4. Bring down: write the next digit of a beside the difference. The result is the next partial dividend.⁠[6]
  5. Repeat from step 2 until no digits are left to bring down. The last difference is the remainder.⁠[6]
  6. Check: multiply the quotient by the divisor⁠[7] and add the remainder. The result must equal the dividend, and the remainder must be less than the divisor, as in the lesson “The division algorithm”.
Example (7,452 ÷ 6).
  1. The first digit, 7, is at least 6. 1 × 6 = 6 is not more than 7 and 2 × 6 = 12 is: write 1. 7 − 6 = 1.
  2. Bring down 4: the partial dividend is 14. 2 × 6 = 12 and 3 × 6 = 18: write 2. 14 − 12 = 2.
  3. Bring down 5: 25. 4 × 6 = 24 and 5 × 6 = 30: write 4. 25 − 24 = 1.
  4. Bring down 2: 12. 2 × 6 = 12: write 2. 12 − 12 = 0. No digits are left.
  5. Check: 1,242 × 6 = 6,000 + 1,200 + 240 + 12 = 7,452, and the remainder 0 is less than 6.

Answer: 7,452 ÷ 6 = 1,242, exactly. Four steps replace 1,242 subtractions.

Figure. The long division of 7,452 by 6. The quotient 1,242 is above the bracket. Under each partial dividend (7, 14, 25, 12) is the product subtracted from it; the green digit is the one brought down. The last difference, 0, is the remainder.

Each partial dividend counts objects of one place. In this example, 7 counts thousands; 14 counts hundreds (the 1 thousand left over, regrouped as 10 hundreds, and the 4 hundreds of the dividend); 25 counts tens; 12 counts ones. Bringing a digit down is exactly the regrouping of the previous section. The written method and the sharing of blocks are the same process.⁠[8]

Why long division is correct

The proof rests on what writing one more digit on the right of a numeral does to the number. A numeral stands for the sum of the values of its digits: 965 means 9 hundreds, 6 tens and 5 ones.⁠[9]

Lemma 1.

If the numeral of a number N is followed by one more digit d, the new numeral names the number N × 10 + d.

Proof.

In the new numeral, d is the ones digit, and the digits of N now stand one place further left. By the Theorem of lesson “Ones, tens and hundreds” (and its form for any place in lesson “Thousands and larger numbers”), the number of tens in all is named by the numeral without its ones digit, which is N. So the new number is N tens and d ones: N × 10 + d.

Lemma 2.

If r < b and d is a digit, then r × 10 + d < b × 10. So the largest number of times b goes into r × 10 + d is a single digit, from 0 to 9.

Proof.

A digit is at most 9, so r × 10 + d is less than r × 10 + 10, which is (r + 1) × 10 by the distributive property. Since r < b, r + 1 is at most b: write b = (r + 1) + e with e a whole number. Then b × 10 = (r + 1) × 10 + e × 10, so (r + 1) × 10 is at most b × 10. Together, r × 10 + d < b × 10. If b went into r × 10 + d ten or more times, then 10 × b would be not more than r × 10 + d, which is impossible.

Theorem .

Long division of a whole number a by a whole number b ≠ 0 ends with the quotient and the remainder of a ÷ b. More precisely, after each step, if N is the number named by the digits of a read so far, Q the number named by the quotient digits written so far, and r the last difference, then

N = Q × b + r and 0 ≤ r < b.

Proof.

Before the first written step, the digits read so far are the leading digits that come before the last digit of the first partial dividend (none at all when the first digit is already at least b, and then N = 0). They name a number N less than b, so N = 0 × b + N: the statement holds with Q = 0 and r = N.

Suppose it holds after some step: N = Q × b + r with r < b. The next digit d is brought down. By Lemma 1, the digits read now name N × 10 + d, and the partial dividend is r × 10 + d. The step finds the largest digit e with e × b not more than r × 10 + d (by Lemma 2 this largest number of times is a single digit) and leaves the difference s = r × 10 + d − e × b, which is less than b because (e + 1) × b is more than r × 10 + d. Then, by the distributive, associative and commutative properties of multiplication,

N × 10 + d = (Q × b + r) × 10 + d = (Q × 10) × b + (r × 10 + d) = (Q × 10) × b + e × b + s = (Q × 10 + e) × b + s.

By Lemma 1 again, Q × 10 + e is the number named by the quotient digits with e written after them. So the statement holds after this step too.

After the last step, N is a itself. So a = Q × b + r with r < b, and by the uniqueness in the division algorithm, Q is the quotient and r the remainder.

Digits readQuotient so farRemainderCheck
7111 × 6 + 1 = 7
7412212 × 6 + 2 = 74
7451241124 × 6 + 1 = 745
7,4521,24201,242 × 6 + 0 = 7,452
Figure. The statement of the Theorem after each step of 7,452 ÷ 6. The digits read so far always equal the quotient so far times 6 plus the remainder, and the remainder is always less than 6.

The proof also explains each rule of the method. Each quotient digit must be the largest possible: a smaller digit leaves a difference of b or more, and a larger one makes the product more than the partial dividend. A digit must be written at every step after the first, even when it is 0, because Q × 10 + e needs e in the ones place. And the method can never need a quotient “digit” of 10 or more, by Lemma 2.

Zeros in the quotient

When a partial dividend is less than the divisor, b goes into it 0 times. The 0 must still be written in the quotient, as a placeholder, before the next digit is brought down.⁠[10]

Example (2,019 ÷ 4).
  1. 2 is less than 4, so take 20. 5 × 4 = 20: write 5 over the 0. 20 − 20 = 0.
  2. Bring down 1: the partial dividend is 01, that is, 1. 4 goes into 1 zero times: write 0 over the 1. 1 − 0 = 1.
  3. Bring down 9: 19. 4 × 4 = 16 and 5 × 4 = 20: write 4. 19 − 16 = 3. No digits are left.
  4. Check: 504 × 4 = 2,016, and 2,016 + 3 = 2,019; 3 < 4.

Answer: 2,019 ÷ 4 = 504 R 3.

Figure. The long division of 2,019 by 4. The second partial dividend, 01, is less than 4, so a 0 is written in the quotient above the 1. The remainder is 3.
Example (A mistake: a missing zero).

Someone divides 6,018 by 6 and writes 13. Find the mistake.

  1. Check: 13 × 6 = 78, far from 6,018. The answer is wrong.
  2. Redo it. 6 ÷ 6: write 1, remainder 0.
  3. Bring down 0: 00. 6 goes 0 times: write 0. Bring down 1: 01. 6 goes 0 times: write 0.
  4. Bring down 8: 18. 3 × 6 = 18: write 3, remainder 0.
  5. Check: 1,003 × 6 = 6,018, and the remainder is 0.

Answer: 6,018 ÷ 6 = 1,003. The two zeros of the quotient were left out: each step after the first writes one digit, so a four-digit dividend whose first digit is at least the divisor gives a four-digit quotient.

Divisors with several digits

The method is the same when the divisor has two or more digits, but the multiplication facts no longer give each quotient digit at once. The digit is found by guessing and checking: try a digit, and adjust it until it is the largest one whose product does not exceed the partial dividend.⁠[11] A good first guess divides the leading digits of the partial dividend by the leading digit of the divisor; the guess is then corrected down or up.

Example (9,876 ÷ 23).
  1. 9 is less than 23, so take 98. Guess: 9 ÷ 2 suggests 4. 4 × 23 = 92 is not more than 98, and 5 × 23 = 115 is: write 4. 98 − 92 = 6.
  2. Bring down 7: 67. Guess: 6 ÷ 2 suggests 3, but 3 × 23 = 69 is more than 67. Try 2: 2 × 23 = 46. Write 2. 67 − 46 = 21, and 21 < 23.
  3. Bring down 6: 216. Guess: 21 ÷ 2 suggests 10, but a quotient digit is at most 9 (Lemma 2). 9 × 23 = 207: write 9. 216 − 207 = 9.
  4. Check: 429 × 23 = 8,580 + 1,287 = 9,867, and 9,867 + 9 = 9,876; 9 < 23.

Answer: 9,876 ÷ 23 = 429 R 9.

Figure. The long division of 9,876 by 23. The partial dividends are 98, 67 and 216; the quotient is 429 and the remainder 9.
Intuition.

Long division can also be read as taking away large batches of groups at once. In 9,876 ÷ 23, the first step takes away 400 groups of 23 (9,200), the second 20 groups (460) and the third 9 groups (207): 400 + 20 + 9 = 429 groups in all, and 9,876 − 9,200 − 460 − 207 = 9 left over. Long division is this method with the batches chosen place by place, so it is no more mysterious than grouping.⁠[8][12]

Game

Long division, one digit at a time

Round
1
Score
0
Streak
0

Divide 4,494 by 3 by long division. How many times does 3 go into the highlighted number, 4?

Exercises

Exercise .

Divide 852 by 4 by long division and check the result.

▸ Show solution

8 ÷ 4: write 2, remainder 0. Bring down 5: 05. 1 × 4 = 4: write 1, remainder 1. Bring down 2: 12. 3 × 4 = 12: write 3, remainder 0. So 852 ÷ 4 = 213. Check: 213 × 4 = 852.

Exercise .

Divide 5,309 by 7. Give the quotient and the remainder, and check them.

▸ Show solution

5 is less than 7, so take 53: 7 × 7 = 49, write 7, 53 − 49 = 4. Bring down 0: 40: 5 × 7 = 35, write 5, 40 − 35 = 5. Bring down 9: 59: 8 × 7 = 56, write 8, 59 − 56 = 3. So 5,309 ÷ 7 = 758 R 3. Check: 758 × 7 = 5,306, 5,306 + 3 = 5,309, and 3 < 7.

Exercise .

Divide 3,624 by 12. Where does a 0 appear in the quotient, and what goes wrong if it is left out?

▸ Show solution

Take 36: 3 × 12 = 36, write 3, remainder 0. Bring down 2: 02, which is less than 12: write 0, remainder 2. Bring down 4: 24: 2 × 12 = 24, write 2, remainder 0. So 3,624 ÷ 12 = 302. Check: 302 × 12 = 3,624. Without the 0 the answer would be 32, and 32 × 12 = 384.

Exercise .

A student writes 8,040 ÷ 8 = 15. Show that this is wrong, find the correct quotient, and explain the mistake.

▸ Show solution

Check: 15 × 8 = 120, not 8,040, so the answer is wrong. Long division: 8 ÷ 8 gives 1, remainder 0; bring down 0: 00, write 0; bring down 4: 04, write 0, remainder 4; bring down 0: 40, write 5, remainder 0. So 8,040 ÷ 8 = 1,005. The zeros for the partial dividends 00 and 04 were left out.

Exercise .

Divide 7,000 by 16. Show how each quotient digit is found by guessing and checking.

▸ Show solution

7 is less than 16, so take 70. Guess 7 ÷ 1 = 7, but 7 × 16 = 112 is too much; so are 6 × 16 = 96 and 5 × 16 = 80; 4 × 16 = 64 fits: write 4, 70 − 64 = 6. Bring down 0: 60. Guess 6 ÷ 1 = 6, but 6 × 16 = 96, 5 × 16 = 80 and 4 × 16 = 64 are too much; 3 × 16 = 48 fits: write 3, 60 − 48 = 12. Bring down 0: 120. Guess 12 ÷ 1 = 12, but a digit is at most 9, and 9 × 16 = 144 and 8 × 16 = 128 are too much; 7 × 16 = 112 fits: write 7, 120 − 112 = 8. So 7,000 ÷ 16 = 437 R 8. Check: 437 × 16 = 6,992, 6,992 + 8 = 7,000, and 8 < 16. (The first guess is far off here because the divisor’s second digit, 6, is large; rounding 16 up to 20 and dividing by 2 gives the first guesses 3, 3 and 6, each at most one too small.)

Exercise .

Show that when the divisor has one digit, every partial dividend in a long division has at most two digits. Give an example where a partial dividend equals the largest possible value.

▸ Show solution

For a one-digit divisor, b ≤ 9. Every difference r is less than b, so r ≤ 8, and the next partial dividend is r × 10 + d ≤ 8 × 10 + 9 = 89: it has at most two digits. The first partial dividend is a single digit, or two digits beginning with a digit less than b, so it is at most 89 as well.

The bound 89 is reached with b = 9: in 179 ÷ 9, the first partial dividend 17 gives the digit 1 and the difference 8; bringing down 9 gives the partial dividend 89. Then 9 × 9 = 81, the digit is 9 and the remainder 8: 179 ÷ 9 = 19 R 8. Check: 19 × 9 = 171, and 171 + 8 = 179.

Summary

  1. Long division divides place by place from the left: what cannot be shared at one place is regrouped into ten times as many of the next place and brought down.
  2. Each step divides a partial dividend by the divisor, writes the largest digit d with d × b not more than it, subtracts d × b and brings down the next digit. The last difference is the remainder.
  3. After every step the digits read so far equal the quotient so far times the divisor plus the difference, which is less than the divisor; at the end this is the division algorithm for a and b.
  4. A quotient digit is never more than 9. When a partial dividend is less than the divisor, a 0 must be written in the quotient.
  5. For divisors with several digits, each quotient digit is found by guessing and checking. Every answer is checked: quotient × divisor + remainder = dividend, and remainder < divisor.

Sources

  1. 1.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 4, “Number Theory and Cryptography”, section 4.2, “Integer Representations and Algorithms” (4.2.3, “Algorithms for Integer Operations”), p. 267 (the whole topic: pp. 267).
    “we subtract d from a as many times as necessary until what is left is less than d. The number of times we perform this subtraction is the quotient and what is left over after all these subtractions is the remainder.”
    Used for: repeated subtraction finds the quotient (the number of subtractions) and the remainder (what is left).
  2. 2.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 4, “Number Theory and Cryptography”, section 4.2, “Integer Representations and Algorithms” (4.2.3, “Algorithms for Integer Operations”), p. 267 (the whole topic: pp. 267).
    “There are more efficient algorithms than Algorithm 4 for determining the quotient q = a div d and the remainder r = a mod d when a positive integer a is divided by a positive integer d”
    Used for: much faster methods than repeated subtraction exist for finding the quotient and the remainder.
  3. 3.
    Michelle Manes, “Division: Dots and Boxes”, Mathematics for Elementary Teachers, University of Hawaiʻi (Pressbooks) (2018).
    “Since each dot is worth ten dots in the box to the right we can write:”
    Used for: in division by places, one object of a place that cannot be shared is worth ten of the place to its right, so it is regrouped into ten of them (in the source's dots-and-boxes model, a dot is worth ten dots in the box to its right).
  4. 4.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Prealgebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 1, “Whole Numbers”, section 1.5, “Divide Whole Numbers”: “Divide Whole Numbers”, p. 73 (the whole topic: pp. 73–80).
    “This process is called long division.”
    Used for: the written method of dividing digit by digit, with the dividend under the bracket, is called long division.
  5. 5.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Prealgebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 1, “Whole Numbers”, section 1.5, “Divide Whole Numbers”: “Divide Whole Numbers”, “How to divide whole numbers”, p. 74 (the whole topic: pp. 73–80).
    “If the divisor is larger than the first digit of the dividend, divide the first two digits of the dividend by the divisor, and so on.”
    Used for: if the first digit of the dividend is less than the divisor, the first two digits are taken instead, and so on.
  6. 6.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Prealgebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 1, “Whole Numbers”, section 1.5, “Divide Whole Numbers”: “Divide Whole Numbers”, “How to divide whole numbers”, p. 74 (the whole topic: pp. 73–80).
    “Step 3. Multiply the quotient by the divisor and write the product under the dividend. Step 4. Subtract that product from the dividend. Step 5. Bring down the next digit of the dividend. Step 6. Repeat from Step 1 until there are no more digits in the dividend to bring down.”
    Used for: the steps multiply, subtract and bring down the next digit, repeated until no digits are left to bring down.
  7. 7.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Prealgebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 1, “Whole Numbers”, section 1.5, “Divide Whole Numbers”: “Divide Whole Numbers”, “How to divide whole numbers”, p. 74 (the whole topic: pp. 73–80).
    “Step 7. Check by multiplying the quotient times the divisor.”
    Used for: a long division is checked by multiplying the quotient by the divisor.
  8. 8.
    Michelle Manes, “Division: Dots and Boxes”, Mathematics for Elementary Teachers, University of Hawaiʻi (Pressbooks) (2018).
    “At first glance this seems very mysterious, but it is really no different from the dots and boxes method.”
    Used for: the written method of long division is the same process as sharing or grouping place by place.
  9. 9.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 4, “Number Theory and Cryptography”, section 4.2, “Integer Representations and Algorithms” (4.2.2, “Representations of Integers”), p. 260 (the whole topic: pp. 260–261).
    “For example, 965 is used to denote 9 ⋅ 10² + 6 ⋅ 10 + 5.”
    Used for: a numeral stands for the sum of the values of its digits: 965 means 9 hundreds, 6 tens and 5 ones.
  10. 10.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Prealgebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 1, “Whole Numbers”, section 1.5, “Divide Whole Numbers”: “Divide Whole Numbers”, Example 1.66, p. 80 (the whole topic: pp. 79–80).
    “We write a 0 over the 2 as a placeholder and then continue.”
    Used for: when the divisor does not go into a partial dividend, a 0 is written in the quotient as a placeholder.
  11. 11.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Prealgebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 1, “Whole Numbers”, section 1.5, “Divide Whole Numbers”: “Divide Whole Numbers”, p. 80 (the whole topic: pp. 79–80).
    “Sometimes it might not be obvious how many times the divisor goes into digits of the dividend. We will have to guess and check numbers to find the greatest number that goes into the digits without exceeding them.”
    Used for: with divisors of several digits, each quotient digit is found by guessing and checking for the largest digit whose product does not exceed the partial dividend.
  12. 12.
    Michelle Manes, “Division: Dots and Boxes”, Mathematics for Elementary Teachers, University of Hawaiʻi (Pressbooks) (2018).
    “To compute 402 ÷ 3, we first make a big estimation as to how many groups of 3 there are in 402.”
    Used for: long division can be read as taking away large batches of groups at once and adding up the numbers of groups.