Xerobit

Long Division Calculator with Steps and Remainder

Enter a dividend and a divisor to compute the quotient, the remainder and the exact decimal result. This long division calculator also writes out every subtraction step so you can follow the method on paper. It runs entirely in your browser and nothing is uploaded.

Result

Full calculation:
22 x 7 = 154
156 - 154 = 2

Digit-by-digit steps:
Step 1: 15 / 7 = 2, 2 x 7 = 14, 15 - 14 = 1
Step 2: 16 / 7 = 2, 2 x 7 = 14, 16 - 14 = 2
  • Quotient
    22
  • Remainder
    2
  • Decimal
    22.(285714)
  • Check
    22 x 7 + 2 = 156

How to use the long division calculator

  1. Enter the dividend (the number being divided) in the first field.
  2. Enter the divisor (the number you divide by) in the second field.
  3. The long division calculator instantly displays the quotient, remainder and decimal answer.
  4. Review the step-by-step breakdown below the results to see each partial product and subtraction.

How the long division algorithm works

The standard long division method processes the dividend one digit at a time from left to right. At each position you determine how many times the divisor fits into the current working number, write that digit in the quotient, multiply it back and subtract.

For example, dividing 156 by 7:

  • Take the first digit, 1. Since 7 does not fit into 1, combine it with the next digit to make 15.
  • 7 fits into 15 two times. Write 2 in the quotient. Multiply: 2 x 7 = 14. Subtract: 15 - 14 = 1.
  • Bring down the next digit, 6, making 16.
  • 7 fits into 16 two times. Write 2 in the quotient. Multiply: 2 x 7 = 14. Subtract: 16 - 14 = 2.
  • No more digits remain. The final quotient is 22 and the remainder is 2.

You can verify this with the identity: dividend = quotient x divisor + remainder, so 22 x 7 + 2 = 156.

Common division reference table

Here are several frequently needed divisions with their quotients and remainders for quick lookup.

DividendDivisorQuotientRemainderDecimal
100333133.333...
100714214.285714...
25516151515.9375
365752152.142857...
1024101024102.4
10001283483.333...

Quotient, remainder and decimals

When you divide two whole numbers, the result can be expressed in three ways. The quotient is the whole-number part of the answer. The remainder is what is left over after the last subtraction. Together they satisfy the equation a = q x b + r where 0 ≤ r < b.

If you need an exact value rather than a remainder, you continue the process past the decimal point by appending zeros to the dividend. Some fractions terminate, like 1/4 = 0.25, while others repeat infinitely, like 1/3 = 0.333... The long division calculator above shows up to 10 decimal places so you can spot repeating patterns.

For tasks where you only care about the leftover amount, a modulo calculator gives you the remainder directly without the full quotient breakdown.

Practical uses for division with steps

Long division is not just a classroom exercise. Several real-world tasks rely on splitting a quantity evenly and knowing exactly what remains.

  • Scheduling: Dividing total minutes by 60 gives hours and leftover minutes. For instance, 250 minutes is 4 hours with a remainder of 10 minutes.
  • Packaging: If you have 1,000 items and each box holds 32, you need 31 full boxes and have 8 items left over.
  • Computing: Converting between number bases requires repeated division. See the number base converter for an automated approach.
  • Budgeting: Splitting costs among a group often leaves a remainder that must be handled separately or rounded using a rounding calculator.

Handling edge cases

A few rules govern what inputs are valid for integer long division. First, the divisor can never be zero because no number multiplied by zero produces a non-zero dividend. Second, if the dividend is smaller than the divisor, the quotient is simply 0 and the remainder equals the dividend itself. For example, 7 divided by 12 yields a quotient of 0 and a remainder of 7.

This tool accepts non-negative integers up to 999,999,999,999. Numbers beyond that range may lose precision in JavaScript because all numbers are stored as 64-bit floating-point values. If you need to work with extremely large integers, consider breaking the problem into smaller parts or using a dedicated arbitrary-precision library.

Worked examples

Each result below was produced by the same code the tool runs, so you can check your own numbers against them.

ExampleInputResult
156 divided by 7Dividend: 156; Divisor: 7Quotient: 22; Remainder: 2; Decimal: 22.(285714); Check: 22 x 7 + 2 = 156
1000 divided by 32Dividend: 1000; Divisor: 32Quotient: 31; Remainder: 8; Decimal: 31.25; Check: 31 x 32 + 8 = 1,000
45 divided by 9 (exact)Dividend: 45; Divisor: 9Quotient: 5; Remainder: 0; Decimal: 5; Check: 5 x 9 + 0 = 45
7 divided by 12 (smaller dividend)Dividend: 7; Divisor: 12Quotient: 0; Remainder: 7; Decimal: 0.58(3); Check: 0 x 12 + 7 = 7

FAQ

What is long division?

Long division is a written method for dividing large numbers. It breaks the problem into a series of smaller steps: divide, multiply, subtract and bring down the next digit until the entire dividend has been processed.

How do I check my long division answer?

Multiply the quotient by the divisor and add the remainder. The result should equal the original dividend. For example, if 156 / 7 = 22 remainder 2, then 22 x 7 + 2 = 156.

Can the divisor be larger than the dividend?

Yes. When the divisor is larger, the whole-number quotient is 0 and the remainder is the dividend itself. For instance, 5 divided by 8 gives a quotient of 0 and a remainder of 5.

Why is division by zero not allowed?

There is no number that, when multiplied by zero, gives a non-zero result. Therefore dividing by zero has no defined answer in mathematics.

Does this long division calculator work offline?

Yes. Once the page loads, all calculations happen locally in your browser. No data is sent to a server, so it works even without an internet connection.

What is the difference between a remainder and a decimal?

A remainder is the whole number left over when you stop dividing at the integer level. A decimal continues the division past the decimal point by adding zeros, giving a more precise fractional result.