Skip to content

Long Division and Long Arithmetic Calculator

Mode

How many digits after the decimal point to work out past the remainder.

Answer —
Check
—
Detail
—

Long division splits the dividend one digit at a time: divide, multiply, subtract, bring down the next digit. For 997 ÷ 7, seven goes into 9 once, into 29 four times and into 17 twice, leaving 3, so the answer is 142 R 3, or 142.43 to two decimal places. The check is 7 × 142 + 3 = 997.

About this tool

Pupils checking homework, parents who last did long division decades ago, and programmers puzzled by a negative remainder all need the same thing: the answer and the written working behind it. Pick Divide, Multiply, Add or Subtract. Division returns the whole quotient with its remainder, the modulo, a decimal form to the number of places you choose, and each bring-down line in the order you would write it on paper. Multiplication lists the partial products; addition and subtraction list each column with its carry or borrow. Decimals work by moving the point first, the same trick taught in school. One limit: numbers must stay under a quadrillion after the decimal point is moved, and at most six decimal places are kept, so very large or very precise values are refused rather than rounded quietly.

How to use it

  1. Pick the operation

    Divide, Multiply, Add or Subtract. Each one shows only the two numbers it needs.

  2. Type the numbers

    For division, the dividend is the number being shared out and the divisor is what you divide by. Negatives and decimals are allowed.

  3. Set the decimal places

    In Divide, the stepper sets how many digits after the point the working continues past the remainder.

  4. Read the answer and the lines below it

    The Check line multiplies back so you can confirm the result; the working lists every column or bring-down line.

Examples

997 ÷ 7 with steps

Mode
Divide
Dividend (number being divided)
997
Divisor (number you divide by)
7
Decimal places
2

Result Answer: 142 R 3
Check: 7 × 142 + 3 = 997
Detail: ≈ 142.43; 997 mod 7 = 3

  1. Bring down 9: 9 ÷ 7 = 1, 1 × 7 = 7, 9 − 7 = 2.
  2. Bring down 9: 29 ÷ 7 = 4, 4 × 7 = 28, 29 − 28 = 1.
  3. Bring down 7: 17 ÷ 7 = 2, 2 × 7 = 14, 17 − 14 = 3.
  4. Add a 0 to the remainder: 30 ÷ 7 = 4 (decimal place 1), remainder 2.
  5. Add a 0 to the remainder: 20 ÷ 7 = 2 (decimal place 2), remainder 6.
  6. Check: 7 × 142 + 3 = 997.

Seven goes into 9 once, into 29 four times, into 17 twice, leaving 3. Two more digits give 142.43.

123 × 45 by partial products

Mode
Multiply
First number
123
Second number
45

Result Answer: 5535
Check: 5535 ÷ 45 = 123
Detail: 2 partial products

  1. Partial product 1: 123 × 5 = 615.
  2. Partial product 2: 123 × 4 then shift 1 place left = 4920.
  3. Add the partial products: 5535.

Multiply 123 by each digit of 45, shift the tens product one place, then add 615 and 4920.

478 + 356 column by column

Mode
Add
First number
478
Second number
356

Result Answer: 834
Check: 834 − 356 = 478
Detail: 2 carries

  1. Column 1: 8 + 6 = 14, write 4, carry 1.
  2. Column 2: 7 + 5 + 1 carried = 13, write 3, carry 1.
  3. Column 3: 4 + 3 + 1 carried = 8, write 8.
  4. 478 + 356 = 834.

The ones and tens columns both reach 10 or more, so two carries move left before the hundreds give 8.

503 − 278 borrowing across 0

Mode
Subtract
First number
503
Second number
278

Result Answer: 225
Check: 225 + 278 = 503
Detail: 2 borrows

  1. Column 1: 13 (borrowed 10) − 8 = 5.
  2. Column 2: 10 (borrowed 10) − 7 − 1 lent = 2.
  3. Column 3: 5 − 2 − 1 lent = 2.
  4. 503 − 278 = 225.

The ones column needs a borrow, and the tens digit is 0, so the borrow comes from the hundreds first.

How it is calculated

dividend = divisor × quotient + remainder, with 0 ≤ |remainder| less than |divisor|

quotient
the whole number of times the divisor fits, cut toward zero
remainder
what is left over; it takes the sign of the dividend
a mod b
a − b × floor(a ÷ b), which takes the sign of the divisor

Division walks the dividend left to right. At each digit the running value is divided by the divisor, the whole-number digit is written in the quotient, and the product is subtracted to leave the next partial remainder. After the last digit, zeros are added to continue into decimal places. Decimal inputs are first scaled by the same power of ten so both become whole numbers, which leaves the quotient unchanged; the remainder is scaled back. Multiplication forms one partial product per digit of the second number, shifted by its place value, and adds them. Addition and subtraction go right to left by column, carrying 1 when a column reaches 10 and borrowing 10 when the top digit is smaller. Everything is done on whole numbers, so there is no floating-point drift in the digits shown.

Sources

Use from code or an AI agent Free API · MCP

The same calculation is a free JSON API. No key needed. The answer is in result.stats.primary.

curl -X POST https://api.tools-directory.workers.dev/v1/tools/long-division-and-long-arithmetic-calculator \
  -H 'Content-Type: application/json' \
  -d '{"inputs":{"mode":"divide","dividend":997,"divisor":7,"places":2}}'

When not to use it

  • Dividing polynomials needs polynomial long division, which this tool does not do.
  • Modular powers such as 7^222 mod 13 need modular exponentiation, not a plain remainder.
  • Values above a quadrillion or with more than six decimal places are refused.

Common mistakes

  • Forgetting a 0 in the quotient when the divisor does not fit the brought-down number.
  • Treating the remainder of a negative dividend as the modulo; −7 leaves −1 but −7 mod 3 is 2.
  • Moving the decimal point in the dividend but not in the divisor.
  • Not lining up the decimal points before adding or subtracting decimals.

Frequently asked questions

What is the formula for calculating a remainder?

Remainder = dividend − divisor × whole quotient. For 997 ÷ 7, the whole quotient is 142, and 997 − 7 × 142 = 997 − 994 = 3. The remainder is always smaller than the divisor; if it is not, the quotient digit was too small.

How do I calculate modulo with a negative number?

Mathematical modulo uses a − b × floor(a ÷ b), so the result takes the divisor's sign: −7 mod 3 = −7 − 3 × (−3) = 2. Truncated division, used by C, Java and JavaScript's % operator, gives −1 instead. The Divide mode shows both: the remainder in the answer and the modulo in the Detail line.

How do I find the quotient and remainder of two numbers?

Divide and keep only the whole-number part as the quotient, then multiply it back and subtract. 100 ÷ 7 is 14.28…, so the quotient is 14; 7 × 14 = 98 and 100 − 98 = 2, giving 14 R 2. The Check line repeats that multiplication so you can confirm it.

How do you do long division with decimals?

Move the decimal point in the divisor to the right until it is a whole number, and move the dividend's point the same number of places. 12.5 ÷ 0.5 becomes 125 ÷ 5 = 25. To continue past a remainder, add zeros after the point and keep dividing; the stepper sets how many places the working goes.

How does long multiplication with carrying work?

Multiply the top number by each digit of the bottom number, carrying the tens digit of each small product into the next column. Each partial product moves one place left per digit position. For 123 × 45: 123 × 5 = 615, 123 × 40 = 4920, and 615 + 4920 = 5535.

How do you do long subtraction with borrowing?

Work from the right. When the top digit is smaller, borrow 10 from the next column and lower that column by 1. In 503 − 278, the ones need a borrow, but the tens digit is 0, so it borrows from the hundreds first: 13 − 8 = 5, 9 − 7 = 2, 4 − 2 = 2, giving 225.

How does long addition with decimals work?

Write both numbers with the same count of decimal places, lining up the points, then add column by column from the right, carrying 1 whenever a column reaches 10. For 2.75 + 1.5, write 1.50, then 5 + 0 = 5, 7 + 5 = 12 (carry 1), 2 + 1 + 1 = 4, giving 4.25.

Cite this tool

Using this tool in an assignment, article or report? Copy a citation, or a link for your website.

APA

Tools Directory Editorial Team. (2026, December 2). Long Division and Long Arithmetic Calculator. Tools Directory. Retrieved December 4, 2026, from https://directory.milunir.com/math-calculators/basic-math/long-division-and-long-arithmetic-calculator/

MLA

Tools Directory Editorial Team. “Long Division and Long Arithmetic Calculator.” Tools Directory, 2 Dec. 2026, https://directory.milunir.com/math-calculators/basic-math/long-division-and-long-arithmetic-calculator/. Accessed 4 Dec. 2026.

Chicago

Tools Directory Editorial Team. “Long Division and Long Arithmetic Calculator.” Tools Directory. Last modified December 2, 2026. Accessed December 4, 2026. https://directory.milunir.com/math-calculators/basic-math/long-division-and-long-arithmetic-calculator/.

Link<a href="https://directory.milunir.com/math-calculators/basic-math/long-division-and-long-arithmetic-calculator/">Long Division and Long Arithmetic Calculator – Tools Directory</a>