Free tool
Long Division Calculator
Divide whole numbers with a quotient and remainder or a decimal answer, with every written step of the long division shown. Big numbers supported.
- Answer
- –
- Quotient
- –
- Remainder
- –
- Exact decimal
- –
- Check: divisor × quotient + remainder
- –
Written steps
Assumptions and limits
Every figure comes from the numbers you enter. Where a rule of thumb is used, it is labeled as one.
- Division uses exact whole-number arithmetic. The dividend is 0 or more with up to 40 digits, and the divisor is 1 or more with up to 20 digits.
- Remainder mode gives quotient × divisor + remainder = dividend, with the remainder smaller than the divisor.
- Decimal mode adds a 0 to the remainder at each step. The steps shown stop at the places you choose, and the exact decimal line shows the full answer with any repeating block in parentheses.
- Decimals and negative numbers are not accepted. To divide decimals, shift the point equally in both numbers until both are whole.
- A repeating decimal that does not cycle within 2,000 digits is cut off, marked with …, and labeled in the steps.
Runs entirely in your browser. Nothing you type or upload is sent to our servers.
How long division works
Long division breaks one large division into a series of small ones that you can do from the times table. You look at the dividend from the left, take just enough digits to be at least as large as the divisor, and ask how many times the divisor fits. That count is the next digit of the answer. You subtract what you used, bring down the next digit of the dividend next to the remainder, and repeat. Whatever is left when the digits run out is the remainder.
If you want a decimal instead, you continue past the end of the dividend by writing a decimal point in the answer and bringing down zeros. This is the same procedure, so a remainder that comes back to a value seen before means the digits will repeat from there.
Worked example 1: 1234 ÷ 7
- 1 is less than 7, so start with the first two digits: 12. 7 goes into 12 once: 1 × 7 = 7, and 12 − 7 = 5.
- Bring down 3 to make 53. 7 goes into 53 seven times: 7 × 7 = 49, and 53 − 49 = 4.
- Bring down 4 to make 44. 7 goes into 44 six times: 6 × 7 = 42, and 44 − 42 = 2.
- The digits of the quotient are 1, 7 and 6, and the remainder is 2, so 1234 ÷ 7 = 176 R 2.
Check: 176 × 7 + 2 = 1232 + 2 = 1234.
Worked example 2: 5 ÷ 12 as a decimal
- 12 goes into 5 zero times, so the whole-number part is 0 with remainder 5.
- Bring down a 0: 50 ÷ 12 = 4 remainder 2, and 12 × 4 = 48.
- Bring down a 0: 20 ÷ 12 = 1 remainder 8. Then 80 ÷ 12 = 6 remainder 8.
- The remainder 8 has now appeared twice, so the digit 6 repeats from here: 5 ÷ 12 = 0.41(6).
Check: 0.41666… × 12 = 5. Choose decimal mode with 5 and 12 to see each of these lines written out.
Typical slips
- Skipping a zero in the quotient when the next piece is too small. If 7 does not go into the new number, write 0 and bring down another digit.
- Subtracting wrongly. The remainder at each step must be smaller than the divisor, so a remainder of 7 or more means the quotient digit was too small.
- Forgetting the check. Multiplying back takes seconds and exposes most errors.
Related calculators
To see a division written as a fraction with its decimal, use the Fraction to Decimal Calculator. The GCF Calculator finds common factors that make a division come out even, and the Average Calculator divides a sum by a count for you.
Frequently asked questions
What are the parts of a division problem?
The dividend is the number being divided, the divisor is the number you divide by, the quotient is the answer, and the remainder is what is left over. In 1234 ÷ 7 = 176 R 2, the dividend is 1234, the divisor is 7, the quotient is 176 and the remainder is 2. The check is divisor × quotient + remainder = dividend.
How does long division work, step by step?
Start with the first digits of the dividend that make a number at least as big as the divisor. See how many times the divisor fits, write that digit in the quotient, multiply and subtract. Bring down the next digit and repeat. The calculator writes each of these lines, such as 12 − 7 = 5, for your numbers.
What is the difference between the remainder and decimal modes?
Remainder mode stops when the digits of the dividend run out and gives a whole-number quotient with a remainder, such as 176 R 2. Decimal mode keeps going by adding a 0 to the remainder at each step until the division ends or reaches your chosen places. In decimal mode 1234 ÷ 7 is 176.(285714), with the block 285714 repeating.
Why does a repeating pattern appear in decimal mode?
Every step of the division leaves a remainder smaller than the divisor, so only a limited number of remainders is possible. When one repeats, the digits after it repeat too. Dividing by 7 can only leave remainders from 1 to 6, so its pattern cannot be longer than six digits. The answer shows the exact repeating block in parentheses.
Can I divide a smaller number by a bigger one?
Yes. The quotient is 0 and the remainder equals the dividend, such as 5 ÷ 8 = 0 R 5. In decimal mode, continue with zeros: 5 ÷ 8 = 0.625. The working explains that the whole-number part is 0 before the decimal point begins.
What are the limits on the numbers?
Use whole numbers: a dividend of 0 or more with up to 40 digits, and a divisor of 1 or more with up to 20 digits. The arithmetic is exact. Decimals and negative numbers are not accepted here. To divide decimals, move the point the same number of places in both numbers until both are whole.
How do I check my answer?
Multiply the quotient by the divisor and add the remainder. The result must equal the dividend. For 1234 ÷ 7, 176 × 7 + 2 = 1232 + 2 = 1234. The calculator shows this check line under the answer, which catches slips in the middle of a long problem.
Is anything I type saved or sent anywhere?
No. The calculation runs in your browser, and nothing you enter is stored or sent to our servers. Only a count that the tool was used is recorded, without any numbers from the form.
Link to this tool
Found it useful? Copy a link for your page, newsletter or documentation.
Get new tools and guides by email
Optional. The tool above works without signing up.
More free tools
Browse all everyday calculators or the full list of free tools.
- Circumference CalculatorFind the circumference, area, radius and diameter of a circle from any one of them, with exact answers in terms of π and the working shown.
- Slope Calculator: Slope, Equation & Angle from Two PointsEnter two points to get the slope as a decimal and a reduced fraction, the line equation in y = mx + b form, the angle, the distance and the midpoint, with working.
- Online Stopwatch with LapsA free online stopwatch accurate to hundredths of a second, with lap and split times that mark your fastest and slowest laps. Runs in your browser, no sign-up.
- Percent Change Calculator & Percentage CalculatorCalculate percent change, percent of a number, what percent X is of Y, increases, decreases and reverse percentages, with the working shown.
- Gravel CalculatorEstimate gravel in cubic yards, cubic meters and tons for a driveway, path or base layer, with the density you enter and an optional extra allowance.
- Mulch CalculatorFind how many cubic yards and bags of mulch a garden bed needs from its size and depth, plus how much area a cubic yard covers at that depth.