Long Division Calculator

Divide one whole number by another and see every bring-down.

The number being divided, like 1234.

The number you divide by, like 7.

Try

Result

You entered−72-\frac{7}{2}

−4 r 1\displaystyle -4\text{ r }1
Show the work
  1. Long division

    Divide 77 by 22 from the left, one digit at a time: at each digit, see how many times the divisor goes in and carry the remainder to the next digit. In the working, r stands for the remainder. The signs are ignored here and dealt with afterwards.

    7÷2=3 r 1\begin{array}{l} 7 \div 2 = 3 \text{ r } 1 \end{array}
  2. Division algorithm

    The dividend aa equals the divisor bb times the quotient qq, plus the remainder rr, where rr is at least 00 and less than ∣b∣|b|. Here a=−7a = -7, b=2b = 2, q=−4q = -4 and r=1r = 1. A number is negative, so qq is chosen to keep the remainder from being negative.

    Using a=b×q+r,0≤r<∣b∣a = b \times q + r, \quad 0 \le r < |b|

    2×(−4)+1=−8+1=−7\begin{aligned} 2 \times \left(-4\right) + 1 &= -8 + 1 \\ &= -7 \end{aligned}
  3. Result

    So −7÷2-7 \div 2 gives a quotient of −4-4 and a remainder of 11.

Worked examples