Binary calculator with step-by-step working

Add, subtract, multiply and divide binary numbers with step-by-step working.

Was this helpful?
Share Tool

This binary calculator adds, subtracts, multiplies and divides bit strings in your browser. Type 0s and 1s in both boxes — spaces, underscores and a 0b prefix are allowed — then pick Add, Subtract, Multiply or Divide. The result appears in binary, decimal and hex together. Division also shows the remainder. Nothing is uploaded and nothing needs an account. The sample 1011 and 110 is eleven plus six: the sum is 10001 (17 decimal, 11 hex).

Unsigned is the default. Values use BigInt, so a 80-bit 1 plus another 80-bit 1 is exact, not a rounded IEEE float. Signed mode interprets each operand as two’s complement at 8, 16, 32 or 64 bits — the same widths as the decimal to binary converter. 11111011 + 00000011 in 8-bit signed is −5 + 3 = −2, stored as 11111110. If the result does not fit the signed range, a red range error appears instead of wrapping in silence. Invalid digits and divide-by-zero also use a red alert.

Open Step-by-step working for the school method. Addition is a column of bits with carries. Subtraction walks right to left and borrows — 1000 − 1 is a borrow chain that yields 111. Multiplication is shift-and-add: each 1 in the multiplier adds the multiplicand shifted by that place. Division is binary long division and reports both quotient and remainder (1011 ÷ 110 is 1 remainder 101). The panel stays collapsed until you open it, so the first paint stays small.

This page is arithmetic, not a text translator. “Hi” as UTF-8 bytes belongs on the converter’s Text ↔ Binary tab. Negative storage belongs on the two’s complement calculator. Close the tab when you are done — FlashKit does not store the operands.

How to add, subtract, multiply or divide binary

  1. Enter two binary numbers. Spaces, underscores and 0b are stripped; any other digit shows a red error.
  2. Choose Add, Subtract, Multiply or Divide. Unsigned is exact BigInt; Signed uses two’s complement at 8, 16, 32 or 64 bits.
  3. Read binary, decimal and hex together. For divide, also read the remainder.
  4. Open Step-by-step working for column carries, borrow chains, shift-and-add or long division.
  5. Close the tab when you are done. Nothing is stored on FlashKit.

Key Features

  • Binary add, subtract, multiply and divide with BigInt
  • Column addition with carries, borrow subtraction, shift-and-add, long division
  • Results in binary, decimal and hex; quotient plus remainder for divide
  • Optional signed two’s complement at 8/16/32/64 bits
  • Red alerts for invalid digits, divide by zero, and signed overflow

Worked addition: 1011 + 110

  • Align on the right: 1011 over 0110. Rightmost column 1+0 = 1, no carry.
  • Next: 1+1 = 10 in binary → write 0, carry 1. Next: 0+1 plus carry 1 = 0, carry 1. Left: 1+0 plus carry 1 = 0, carry 1.
  • The leftover carry becomes a new 1. Sum = 10001 = 17 decimal = 11 hex. The widget’s sample is this pair.
  • Unsigned addition never overflows in this tool: the bit string just grows. Signed 8-bit 01111111 + 1 is out of range (−128 to 127) and shows a red error.

Borrow subtraction, shift-and-add, long division

  • 1000 − 1 needs a borrow chain: the 1 in the 8s place lends through two zeros, leaving 0111 (7). 1011 − 110 is 0101 (5).
  • If the minuend is smaller, unsigned mode prefixes a minus on the magnitude (1 − 1000 = −111). Signed mode stores two’s complement of the difference when it fits.
  • 1011 × 110: the multiplier bits are 1, 1, 0 from the right. Add 1011, add 10110, skip the 4s place. Product 1000010 = 66 decimal = 42 hex.
  • 1011 ÷ 110: 11 is less than 110, so the first two bits of the quotient are 0; bringing down the last 1 makes 1011, which fits once. Quotient 1, remainder 101. Check: 1×110 + 101 = 1011.
  • Divide by zero is not a bit pattern. The remainder card stays empty and a red alert says you cannot divide by zero.

Signed mode and related converters

  • Short bit strings in signed mode are padded with zeros on the left, so 1011 in 8 bits is +11, not −5. Type 11111011 when you mean −5.
  • Need only to convert a decimal such as −5 into bits, without adding two bit strings? Use the two’s complement calculator.
  • Need 10.625 ↔ 1010.101, or UTF-8 bytes for a word? That is the decimal to binary converter, not this page.

Frequently Asked Questions

What is 1011 + 110 in binary?

10001. Place values 8+2+1 and 4+2 make 11+6=17, which is 10001. The working panel shows each carry. Decimal 17, hex 11.

How does binary subtraction borrow?

From the right, a 0 that must subtract 1 borrows 2 from a 1 further left. Zeros in between become 1s. 1000 − 1 = 111. A red error is not used for a negative unsigned difference; the result is prefixed with a minus.

What happens if I divide by zero?

A red alert (role=alert) reports that you cannot divide by zero. No quotient or remainder is shown.

Does signed mode use two’s complement?

Yes, at 8, 16, 32 or 64 bits. 11111011 is −5 in 8 bits. The result is stored as two’s complement of the same width, or a range error if it does not fit.

Are large numbers exact?

Yes. Arithmetic uses BigInt. A 2^80 bit string plus another 2^80 bit string is exact in unsigned mode. Signed mode is limited to the selected width.

Is this a text-to-binary translator?

No. Letters such as “Hi” → 01001000 01101001 belong on the binary converter’s Text ↔ Binary tab. This page only adds, subtracts, multiplies and divides bit strings.

Expert Guide for Binary Calculator

View Blog
What Does 1011001 Mean in Binary? Binary to Decimal

What Does 1011001 Mean in Binary? Binary to Decimal

Short binary strings like 1011001 or 01011 are usually numbers, not letters. Learn to convert binary to decimal by hand, with a free converter to check.

Read Guide

Categories

Browse all FlashKit tools