Long Division Calculator
Long Division Calculator
Whole numbers, decimals (2.75) and negatives (−8) all work, up to 30 digits each.
How to Use the Long Division Calculator
Type the two numbers
The number you are dividing (the dividend) goes first, the number you divide by (the divisor) second. The working appears as you type.
Read the answer three ways
For whole numbers you get the quotient and remainder, the remainder as a fraction, and the decimal. A decimal that repeats has the repeating digits marked with a bar.
Check your own working line by line
The layout is the written method: each quotient digit sits above the digit it came from, and each subtraction sits under it. The numbered steps below it say the same thing in words.
Long Division, Step by Step
The loop
Long division repeats four moves: divide, multiply, subtract, bring down. For 127 ÷ 4, 4 goes into 1 no times, so look at 12: 4 goes into 12 three times, 3 × 4 = 12, nothing is left. Bring down the 7: 4 goes into 7 once, 1 × 4 = 4, leaving 3. That is 31 remainder 3, and the check is 31 × 4 + 3 = 127. England's national curriculum asks Year 6 pupils to use this written method and to give a remainder as a whole number, a fraction or by rounding, depending on the question.
Going past the decimal point
To keep going, put a decimal point in the answer and bring down zeros. 127 ÷ 4 continues: 30 gives 7 remainder 2, then 20 gives 5 remainder 0, so the answer is 31.75, the same as 31 3/4. Once you are bringing down only zeros, each new digit depends only on the remainder. So if a remainder comes back, the digits between repeat forever: 1 ÷ 7 brings back a remainder of 1 after six steps, and 0.142857 repeats. The calculator stops at that point and marks the repeating block, or tells you if the cycle is longer than it follows.
Decimals and negative numbers
If the divisor has a decimal point, move it right until the divisor is whole and move the dividend's point the same number of places: 1.5 ÷ 0.25 becomes 150 ÷ 25. The answer does not change. For negatives, divide the sizes and then apply the sign: negative if exactly one number is negative. Remainders with negatives have two conventions. Rounding toward zero gives −127 ÷ 4 = −31 remainder −3; keeping the remainder positive gives −32 remainder 1. Both multiply back to −127, and the calculator shows both when they differ.
Frequently Asked Questions
- Watch the remainders once you start bringing down zeros. If a remainder you have already had comes back, the quotient digits since then will repeat. With a divisor of 7 there are only six possible non-zero remainders, so the pattern can be at most six digits long. A remainder of 0 means the decimal ends.
- For whole numbers, yes: the quotient and remainder, the remainder as a fraction in its lowest terms, and the decimal. 127 ÷ 4 is 31 remainder 3, or 31 3/4, or 31.75. With a decimal dividend or divisor a remainder is not usually given, so the answer is shown as a decimal.
- Yes. The working is done on the sizes of the numbers and the sign applied at the end: the answer is negative when exactly one number is. For the remainder, the calculator gives the version that rounds the quotient toward zero and, where it differs, the version that keeps the remainder between 0 and the divisor. Use whichever your course uses.
- Up to 30 digits each, worked exactly with whole-number arithmetic rather than the rounded floating point most calculators use. The layout draws up to 12 decimal places; the answer above it follows a repeating decimal for up to 400 places.
- Yes. The calculation runs in your browser, and the numbers you type are not sent anywhere or added to the page address.
Method & sources
How it computes
The written method in exact integer arithmetic: divide, multiply, subtract, bring down, digit by digit; a decimal divisor is made whole by moving both points; past the point zeros are brought down until the remainder is 0 or a remainder repeats, which marks the repeating block. Whole numbers also get q and r with q × divisor + r = dividend, in both the truncated and the non-negative-remainder conventions for negatives.
What this tool implements
- England national curriculum, Year 6: divide using the formal written method of long division and interpret remainders as whole number remainders, fractions, or by rounding; its example 3 ÷ 8 = 0.375 is reproduced by the calculator.
- Repeating decimals: once only zeros are brought down, the next digit depends only on the remainder, so the first repeated remainder closes the repeating block (1 ÷ 7 = 0.(142857), 1 ÷ 6 = 0.1(6)); the calculator follows up to 400 places and says so if the cycle is longer.
- Every answer is checked in the test suite by converting the decimal back to a fraction with exact integers and by q × b + r = a, over a sweep of whole numbers, decimals and negatives.
- Corrected 2026-11-04: worded steps printed "undefined" for the divisor; decimal inputs were truncated to whole numbers; the decimal was a six-place rounding shown as exact with no repeat marked; a negative dividend gave a remainder that failed q × b + r = a.
Sources
- Department for Education (England). Mathematics programmes of study: key stages 1 and 2, National curriculum in England, 2013 (Year 6). https://assets.publishing.service.gov.uk/media/5a7da548ed915d2ac8…