Long Division Calculator
Type two numbers to see the full written long division, step by step, with the answer as a remainder, a decimal and a mixed number. Switch to Advanced for short division, negative remainders and polynomials.
Whole numbers, decimals (use a dot) and negatives all work, up to 120 digits.
From 0 to 50 places.
−437 ÷ 12 is −36 R −5 the first way (most calculators and computer languages) and −37 R 7 the second way (number theory).
Write powers with ^, like 3x^2 − x + 5. Fractions (1/2x) and decimals work. Dividing by x − c or ax + b also shows synthetic division.
How your long division is worked out
Your numbers, step by step: divide, multiply, subtract, bring down, then check.
- 1
Set it up
437 ÷ 12divisor 12 outside437 ÷ 12
- 2
Divide, multiply
43 ÷ 12 = 33 × 12 = 36write 3 on top
- 3
Subtract, bring down
43 − 36 = 7bring down 7 → 77repeat: 2 rounds
- 4
Answer and check
36 R 536 × 12 + 5= 437 ✓
Read more: the formula, a worked example, decimals, negatives, short division and polynomials
Long division splits a big division into small ones you can do in your head. You work from left to right, one digit at a time, and repeat the same four steps: divide, multiply, subtract and bring down. The number you divide is the dividend, the number you divide by is the divisor, the answer is the quotient and what is left over is the remainder.
The formula
dividend = quotient × divisor + remainder, where 0 ≤ remainder < divisor
each round: digit = (current number) ÷ divisor, rounded down
new number = (current number − digit × divisor) × 10 + next digit
mixed number = quotient and remainder/divisor
decimal: keep bringing down zeros after the point
Worked example
437 ÷ 12. 12 doesn’t go into 4, so start with 43. 43 ÷ 12 = 3 (because 3 × 12 = 36 and 4 × 12 = 48 is too big). Write 3 on top, then 43 − 36 = 7. Bring down the 7 to make 77. 77 ÷ 12 = 6, 6 × 12 = 72 and 77 − 72 = 5. There are no digits left, so the answer is 36 remainder 5. Check: 36 × 12 = 432 and 432 + 5 = 437. As a mixed number it is 36 5/12.
To carry on as a decimal, put a point after 36 and bring down zeros: 50 ÷ 12 = 4 (50 − 48 = 2), 20 ÷ 12 = 1 (20 − 12 = 8), 80 ÷ 12 = 6 (80 − 72 = 8). The remainder 8 has come back, so the 6 repeats for ever: 36.41666…, written 36.416. Rounded to 2 places it is 36.42, because the next digit (6) is 5 or more.
Decimals in the numbers
You can’t easily divide by a decimal, so make the divisor whole first. Move its decimal point to the right until it is a whole number, and move the point in the dividend the same number of places (this multiplies both by the same 10, 100 or 1,000, so the answer doesn’t change). For 12.5 ÷ 0.25, move both points 2 places: 1250 ÷ 25 = 50. If the dividend still has a point, like 127.5 ÷ 5, put the point straight above it in the answer and carry on: 25.5.
For a whole-number answer with a remainder, move the point in both numbers until both are whole. Then move the remainder’s point back the same number of places: 7.5 ÷ 2 becomes 75 ÷ 20 = 3 R 15, so the real remainder is 1.5 (check: 3 × 2 + 1.5 = 7.5).
Negative numbers
Divide the numbers without their signs, then fix the sign: if exactly one number is negative, the answer is negative; if both are, it is positive. For the remainder there are two common rules. Most calculators and computer languages give the remainder the same sign as the number divided: −437 ÷ 12 = −36 R −5. In number theory the remainder is never negative: −437 ÷ 12 = −37 R 7. Both pass the check: −36 × 12 − 5 = −437 and −37 × 12 + 7 = −437.
Short division
Short division is the same method with the multiplying and subtracting done in your head. Write the small remainder in front of the next digit instead of below. For 437 ÷ 12: 12 into 4 won’t go, so carry 4 to make 43; 12 into 43 is 3 remainder 7, so carry 7 to make 77; 12 into 77 is 6 remainder 5. Answer: 36 r 5. It is quickest when you know the divisor’s times table.
Polynomial long division
Polynomials divide the same way. Write both with the highest power first and fill any missing powers with 0. Divide the first term by the divisor’s first term, multiply the whole divisor by that, subtract and bring down the next term. For (x³ − 2x² − 4) ÷ (x − 3): x³ ÷ x = x², and x²(x − 3) = x³ − 3x² leaves x² + 0x. Then x² ÷ x = x, and x(x − 3) = x² − 3x leaves 3x − 4. Then 3x ÷ x = 3, and 3(x − 3) = 3x − 9 leaves 5. So the answer is x² + x + 3 with remainder 5.
Synthetic division is a shortcut when you divide by x − c. Write c (here 3) and the coefficients 1, −2, 0, −4. Bring down the 1, multiply by 3 and add to the next coefficient, and repeat: 1, 1, 3, 5. The last number is the remainder (5) and the others are the quotient’s coefficients (x² + x + 3). By the remainder theorem, the remainder is also the value of the polynomial at x = 3: 27 − 18 − 4 = 5.
Divisibility shortcuts
| Divides exactly by | When | Example |
|---|---|---|
| 2 | The last digit is even | 436 |
| 3 | The digits add up to a multiple of 3 | 4 + 3 + 5 = 12, so 435 |
| 4 | The last two digits divide by 4 | 436 (36) |
| 5 | The last digit is 0 or 5 | 435 |
| 6 | It divides by both 2 and 3 | 438 |
| 8 | The last three digits divide by 8 | 1,432 (432) |
| 9 | The digits add up to a multiple of 9 | 4 + 3 + 2 = 9, so 432 |
| 10 | The last digit is 0 | 430 |
| 11 | Alternate digits added and taken away give a multiple of 11 | 4 − 1 + 8 = 11, so 418 |
| 12 | It divides by both 3 and 4 | 432 |
All answers are exact: the calculator works with whole numbers of any size up to 120 digits, so nothing is rounded until you choose a number of decimal places. Repeating decimals are found by watching for a remainder that comes back (up to 120 decimal places in the written layout).
Common questions
How do you do long division step by step?
Repeat four steps: divide, multiply, subtract, bring down. For 437 ÷ 12, 12 doesn’t go into 4, so use 43: 43 ÷ 12 = 3. Then 3 × 12 = 36 and 43 − 36 = 7. Bring down the 7 to make 77: 77 ÷ 12 = 6, 6 × 12 = 72 and 77 − 72 = 5. So 437 ÷ 12 = 36 remainder 5.
How do you write a remainder as a decimal or a fraction?
For a fraction, put the remainder over the number you divided by: 437 ÷ 12 = 36 R 5 = 36 5/12. For a decimal, put a point after the answer, add zeros to the number you are dividing and keep going: 437 ÷ 12 = 36.41666…, where the 6 repeats for ever. Rounded to 2 places that is 36.42.
How do you do long division with decimals?
Move the decimal point in the number you divide by until it is a whole number, and move it the same number of places in the other number. For 12.5 ÷ 0.25, move both points 2 places: 1250 ÷ 25 = 50. If the number being divided still has a point, put the point straight above it in the answer.
How do you know when a decimal repeats?
Watch the remainders. Once you have used every digit and are bringing down zeros, a remainder that comes up a second time means the digits after it will repeat for ever. In 437 ÷ 12 the remainder 8 comes up twice in a row, so the 6 repeats: 36.41666… is written 36.416 with a bar over the 6.
What is the difference between long division and short division?
They use the same steps. In long division you write each multiply and subtract under the number. In short division you do them in your head and write only the small remainder in front of the next digit. Short division is quicker for dividing by one digit or by numbers up to about 12.
How do you check a long division answer?
Multiply the answer by the number you divided by, then add the remainder. You should get the number you started with. For 437 ÷ 12 = 36 R 5: 36 × 12 = 432, and 432 + 5 = 437, so the answer is right.
Related calculators
Made by Zulu Calculator, part of AlphaZulu LLC. Formulas are shown in full and rule figures are checked against official sources; see how we build calculators.