Long Division Calculator
: Do long division step by step with the school layout, the quotient with a remainder, as a mixed number and as a decimal with the repeating digits marked, for whole numbers, decimals and negatives- Quotient
- 54 r 1
- 7 goes into 379 54 whole times, with 1 left over.
- Remainder
- 1
- Of the whole-number division: 7 × 54 = 378, and 379 − 378 = 1 is left over.
- Mixed number
- 54 1/7
- The whole part, then the remainder over the divisor: 1/7.
- Decimal
- ≈ 54.1428571429
- Rounded half up to 10 decimal places.
- Repeating decimal
- 54.(142857)
- The 6 digits in brackets repeat forever. With a bar over the repeating digits: 54.1̅4̅2̅8̅5̅7̅.
- Check
- 7 × 54 + 1 = 379
- Divisor × quotient + remainder gives the dividend back: 378 + 1 = 379.
Long division layout
The last difference, 1, is smaller than 7: it is the remainder.
Steps (2)
| # | Bring down | Divide | Multiply | Subtract |
|---|---|---|---|---|
| 1 | 37 (first digits) | 37 ÷ 7 = 5 | 5 × 7 = 35 | 37 − 35 = 2 |
| 2 | 29 (9 brought down) | 29 ÷ 7 = 4 | 4 × 7 = 28 | 29 − 28 = 1 |
Each step: divide, multiply, subtract, bring down the next digit.
Long Division Calculator
A long division calculator that works the division out digit by digit and writes it the way it is done at school: the quotient over the bar, each subtraction under its digits and the next digit brought down. 379 ÷ 7 = 54 r 1, 54 1/7 as a mixed number, or 54.(142857) as a repeating decimal. It is a long division calculator with steps, remainders and decimals in one place, and takes negative numbers too.
How to do long division
- Type the number being divided in
Dividendand the number you divide by inDivisor. Whole numbers, decimals (3.75), negative numbers and thousands commas (1,000) all work. - Divide: take the first digits of the dividend that the divisor goes into and write how many times above the last of them. For 379 ÷ 7 that is 37 ÷ 7 = 5.
- Multiply and subtract: write the quotient digit times the divisor under those digits and take it away: 5 × 7 = 35, then 37 − 35 = 2.
- Bring down the next digit beside the difference and repeat: 29 ÷ 7 = 4, 4 × 7 = 28, 29 − 28 = 1. When no digit is left, the last difference is the remainder.
- Pick
Answer:Autostops at the units digit with a remainder when both numbers are whole, and goes on past the point otherwise;Decimaladds zeros after the point until the remainder is 0, it repeats, orDecimal placesis reached. The Examples menu fills four divisions.
Example
379 ÷ 7 with a remainder: the figures and the long division layout.
Dividend: 379
Divisor: 7
Answer: AutoQuotient: 54 r 1
Remainder: 1
Mixed number: 54 1/7
Decimal: ≈ 54.1428571429
Repeating decimal: 54.(142857)
Check: 7 × 54 + 1 = 379
Long division layout:
54 r 1
____
7 ) 379
-35
---
29
-28
---
1Details
- Long division with decimals starts by making the divisor a whole number. The calculator moves the point the same number of places right in both numbers, which leaves the quotient unchanged, and says so: 3.75 ÷ 0.25 = 375 ÷ 25, so 3.75 ÷ 0.25 = 15. A dividend that still has decimals keeps its point, and the point of the quotient goes straight above it: 0.5 ÷ 4 = 0.125. In the layout the point is a column of its own, and a number that crosses it is written with its point, so each digit keeps its place value.
- The remainder is what is left when the divisor goes in a whole number of times. Over the divisor it is the fraction of the mixed number, reduced: 22 ÷ 8 = 2 r 6, and 6/8 reduces to 3/4, so 2 3/4. As a decimal it is carried on past the point by bringing down zeros, which
Decimaldoes: 379 ÷ 7 = 54.142857 and on. The Decimal row rounds half up to the places you set, so 2 ÷ 3 to 2 places is 0.67. - A repeating decimal is found from the remainders, not guessed from the digits. When a remainder comes back, every digit after it comes back in the same order, so the layout of 1 ÷ 7 stops at 0.142857, where the remainder 1 it started from is back. The tool writes the block in brackets, 0.(142857), and with a bar over it. Digits that do not repeat stay outside: 1 ÷ 6 = 0.1(6). The block is exact however long it is: 1 ÷ 97 repeats every 96 digits.
- Negative numbers: the layout divides the sizes and the sign goes on the answer, negative when the signs differ. The remainder is kept 0 or more and below the divisor's size, so -245 ÷ 12 = -21 r 7, because 12 × (-21) + 7 = -245; the mixed number is -20 5/12 and the decimal -20.41(6). The note also gives the other convention, truncating toward 0: -20 r -5. All the arithmetic is in whole numbers of any length (BigInt), so a 30-digit dividend divides exactly.
Limits
- A number can have at most 150 digits, whole and decimal part together.
Decimal placesgoes from 0 to 100,000. The steps table has every step, drawn a page at a time; the layout text grows with the square of the steps, so past 4,000,000 characters it stops with a line saying how many steps are left, and the table has the rest. - A repeating block is searched for up to 1,000,000 digits. A divisor with large prime factors can repeat in a longer block (up to one less than the divisor); the tool then says the decimal never ends and that its block is longer than that, instead of guessing.
- Fractions are not taken as input: use the Fraction Calculator to divide fractions. Polynomial long division (dividing x² + 3x + 2 by x + 1) is not covered; this tool divides numbers only. The layout is the US style, with the divisor on the left; other countries' layouts are not drawn.
- A wrong value is marked on its field: a divisor of 0 gives "Cannot divide by zero: enter a divisor other than 0."
FAQ
How do you do long division step by step?
Divide, multiply, subtract, bring down, and repeat until no digit is left. For 379 ÷ 7: 37 ÷ 7 = 5, 5 × 7 = 35, 37 − 35 = 2; bring down the 9 to make 29, 29 ÷ 7 = 4, 4 × 7 = 28, 29 − 28 = 1. The answer is 54 r 1.
How do you do long division with decimals?
Move the point in the divisor right until it is a whole number, and move the point in the dividend the same number of places: 3.75 ÷ 0.25 becomes 375 ÷ 25. Divide as usual, put the quotient's point above the dividend's point, and add zeros after it to keep going: 0.5 ÷ 4 = 0.125.
How do you write a remainder as a fraction or a decimal?
Put the remainder over the divisor and reduce it: 379 ÷ 7 = 54 r 1 = 54 1/7. For a decimal, keep dividing past the point by bringing down zeros: 54.142857, and the digits 142857 go on repeating.
What is a repeating decimal?
A decimal whose digits never end but go round in a block, written with the block in brackets or with a bar over it: 1/7 = 0.(142857). A division gives one when the divisor, in lowest terms, has a prime factor other than 2 and 5; otherwise the decimal ends, as 1 ÷ 8 = 0.125 does.
How do you check a long division answer?
Multiply the quotient by the divisor and add the remainder; the result must be the dividend. 7 × 54 + 1 = 379, so 379 ÷ 7 = 54 r 1 is right.
Runs entirely in your browser. Nothing is uploaded.