Binary Division Calculator

Enter two binary numbers to divide the first by the second.

How it is calculated

Both numbers must be written with the digits 0 and 1 only. The tool converts each to decimal, then does integer division: q = floor(a ÷ b) and r = a mod b, so that a = b × q + r with 0 ≤ r < b. Quotient and remainder are shown in binary and in decimal. There are no fractional bits: dividing 1 by 10 (that is 1 ÷ 2) gives quotient 0 and remainder 1, not 0.1. Leading zeros and surrounding spaces are ignored. A divisor of 0 gives no result, and neither does any entry containing other characters (digits 2–9, a minus sign, a point). Each number may have at most 63 binary digits once leading zeros are removed; longer entries show no result.

Worked example

Divide 101101 by 110. In decimal, 101101 is 32 + 8 + 4 + 1 = 45, and 110 is 4 + 2 = 6. The integer division is 45 ÷ 6 = 7 with remainder 3, because 6 × 7 = 42 and 45 − 42 = 3. Converting back, the quotient 7 is 111 in binary and the remainder 3 is 11. Check: 110 × 111 = 101010 (42), and adding the remainder 11 gives 101101 (45).

Try this example →

Common mistakes

  • Typing decimal digits such as 2 or 13. Every digit must be 0 or 1, otherwise there is no result; convert first.
  • Expecting a binary fraction. Division here stops at a whole quotient, and what is left over appears as the remainder, not as digits after a point.
  • Reading the remainder as part of the quotient. The remainder is always smaller than the divisor, and the quotient is only the whole number of times the divisor fits.
  • Swapping dividend and divisor. The first number is divided by the second, so 11 ÷ 1101 gives quotient 0 and remainder 11.
  • Entering a minus sign or a binary point (for example -101 or 1.1), or a number longer than 63 digits. Only unsigned whole binary numbers up to 63 bits are accepted.

About this calculator

Binary division applies the same long-division process you learned with decimal numbers, but restricted to the two digits 0 and 1: at each step, the calculator checks whether the current partial remainder is large enough to subtract the divisor at all — the quotient digit can only ever be 0 or 1, since there is no “how many times does it go in” beyond that.

This is exactly how division is implemented in a computer's arithmetic logic unit (ALU) at the hardware level, using shift-and-subtract algorithms built from binary logic gates, which is why binary long division is a standard exercise in computer science and digital logic courses — it builds the same intuition a processor uses, just done by hand.

Was this helpful?

You can pick up to 3 reactions.

Comments

  • Be the first to comment.

Popular calculators

All Calculators