Long Division Calculator
Long division calculator that shows the written layout step by step, with remainders, decimals, repeating digits and divisibility notes. Handles huge numbers.
0 stops at the whole-number quotient and its remainder.
- Quotient and remainder
- –
- Decimal result
- –
- Decimal places
- –
Check
Written division
This division is too long to draw neatly (more than 90 columns or a divisor above 30 digits). The results above are still exact.
Step by step
Divisibility notes
How to use the long division calculator
- Type the Dividend (number to divide) and the Divisor (number to divide by). Whole numbers of any length work, as do decimals such as 12.5 or 0.25 and negative numbers.
- Choose the number of Decimal places. With 0, the division stops at the whole-number quotient and gives a remainder, as in primary school. With 2, 5 or up to 50, zeros are added after the point and the division continues until the remainder is 0 or the places are written.
- Pick a Layout: US bracket (divisor on the left) or French potence (divisor on the right). Untick Write the subtractions to show only the successive remainders, as many European pupils do once they are confident.
- The results update as you type (or click Divide). You get the Quotient and remainder, the exact Decimal result with the repeating block in brackets, the value rounded to your number of places, and a Check line that multiplies back.
- Below, the written division is drawn digit by digit, the Step by step list explains every move in words, and Divisibility notes apply the classic tests to the dividend. Copy layout as text copies the drawing for a message or a document.
How long division works
Long division splits a big division into small ones you can do in your head. Take the first digits of the dividend that make a number at least as large as the divisor, and ask how many times the divisor fits: that is the first digit of the quotient. Multiply, subtract, and bring down the next digit next to the remainder. Repeat until every digit is used. For 125 ÷ 3: 12 ÷ 3 = 4 (12 − 12 = 0), bring down 5, 5 ÷ 3 = 1 (5 − 3 = 2). The answer is 41 remainder 2, and indeed 3 × 41 + 2 = 125.
To go past the decimal point, write a point in the quotient, add a 0 to the remainder and keep dividing: 20 ÷ 3 = 6 remainder 2, again and again, so 125 ÷ 3 = 41.666… The calculator notices when a remainder comes back: from that moment the digits repeat forever, and it marks the repeating block (underlined in the layout, in brackets in the result, e.g. 41.(6)).
When the divisor has decimals, the tool first moves the point in both numbers the same number of places, which does not change the quotient: 12.5 ÷ 0.25 becomes 1250 ÷ 25 = 50.
Two ways to write it
In the United States, the United Kingdom and Canada, the divisor sits to the left of a bracket, the dividend under a bar, and the quotient on top, each digit above the column it belongs to. In France, Belgium, Quebec schools and much of Europe, the “potence” puts the dividend on the left, the divisor on the right of a vertical line, and the quotient under the divisor. The arithmetic is exactly the same; only the placement changes.
Remainders, negatives and divisibility
With negative numbers, the division is done on the absolute values and the sign is applied afterwards. The remainder shown has the sign of the dividend (−17 ÷ 5 = −3 remainder −2), as most calculators and programming languages do; the notes also give the Euclidean form, where the remainder is never negative (−4 remainder 3).
A fraction written in lowest terms has a terminating decimal only when its denominator has no prime factors other than 2 and 5; otherwise the decimal repeats. For a whole-number dividend, the notes apply the quick tests: last digit for 2, 5 and 10, last two digits for 4, last three for 8, digit sum for 3 and 9, both 2 and 3 for 6, and the alternating digit sum for 11.
Frequently asked questions
What does "R" mean in a long division answer?
R stands for remainder: 125 ÷ 3 = 41 R 2 means 3 goes into 125 forty-one times with 2 left over. Written as a mixed number it is 41 2/3.
How many decimal places should I choose?
For homework, use what the exercise asks, often 2. The rounded value follows the usual rule (5 and above rounds up), while the written layout shows the digits obtained so far, without rounding.
Can it divide very large numbers?
Yes. The arithmetic uses exact big integers, so a 100-digit dividend gives an exact quotient and remainder. The written layout is drawn up to about 90 columns; beyond that, only the results are shown.
Why does the answer show brackets, as in 0.(3)?
The brackets mark the repeating block: 0.(3) means 0.333… forever and 3.(142857) means 3.142857142857… Some textbooks draw a bar over these digits instead.
Why is the divisor multiplied by 10, 100…?
Dividing by a whole number is easier to write. Multiplying both numbers by the same power of ten keeps the quotient unchanged, which is why 1.2 ÷ 0.4 and 12 ÷ 4 both equal 3.
Related tools
- Fraction to Decimal Converter Convert fractions to decimals and decimals to fractions, including repeating decimals like 0.(3) = 1/3, with long division and algebra steps.
- GCD and LCM Calculator Find the greatest common divisor and least common multiple of two or more numbers, with the Euclidean algorithm, prime factorization and LCM steps.
- Math Worksheet Generator Free math worksheet generator for addition, subtraction, multiplication and division. Choose number ranges, print or download a PDF with a separate answer key.