Binary Addition Calculator – Free

Enter two binary whole numbers and this binary addition calculator returns their sum in both binary and decimal. It runs in your browser with exact integer math.

How to use the Binary Addition Calculator tool

  1. Enter the first operand in the First binary number box.
  2. Enter the second operand in the Second binary number box. Select Example to fill in 1011 and 11.
  3. Select Add to compute the sum.
  4. Read the two lines in the Result box: Binary shows the sum in base 2 and Decimal shows it in base 10.
  5. Select Copy to copy both lines, or Clear to enter new numbers.

How binary addition works

Binary addition follows the same column method as decimal addition, with only two digits to remember. Start at the rightmost column and move left. When a column adds up to two or three, write the low bit and carry a 1 into the next column.

Only four cases can occur in a column, listed below. The last one applies when a carry arrives from the right.

  • 0 + 0 = 0
  • 0 + 1 = 1
  • 1 + 1 = 10, write 0 and carry 1
  • 1 + 1 + 1 = 11, write 1 and carry 1

Worked example: 110110 + 101101

Line the numbers up on the right. Columns 0 and 1 add to 1 with no carry. Column 2 is 1 + 1, so it writes 0 and starts a carry that continues through columns 3, 4 and 5. The last carry becomes a seventh bit. In decimal the same sum is 54 + 45 = 99.

  110110   (54)
+ 101101   (45)
---------
 1100011   (99)

Binary: 1100011
Decimal: 99

What the calculator accepts

Each box takes one binary whole number. The parser is the same for both operands. It turns each input into an arbitrary-precision integer, adds the two and formats the sum, so the answer stays exact for inputs thousands of bits long.

  • Digits 0 and 1 only. Any other character returns Invalid base-2 digit, naming the character.
  • An optional 0b prefix, so 0b1011 is the same as 1011.
  • An optional leading minus sign for negative operands.
  • Up to 4,096 characters per operand.
  • No spaces inside the number. Remove grouping spaces such as 1011 0001 before adding.
  • An empty box returns Enter a base-2 whole number.

No word size, no overflow

A CPU register has a fixed width, so 11111111 + 1 in eight bits wraps around to 00000000 and sets the carry flag. This calculator has no width. The same sum returns 100000000, which is 256, with the extra bit kept. If you are modeling 8, 16 or 32-bit hardware, discard the bits above your word size yourself.

Negative numbers are handled as signed values, not as two's complement patterns. Adding -1011 and 11 gives Binary: -1000 and Decimal: -8. To see where each carry happens bit by bit, use the Binary Carry Calculator, which prints a line for every column.

Frequently asked questions

What is 1 + 1 in binary?

It is 10, which is the binary spelling of two. The column holds 0 and a 1 carries into the next place, in the same way 5 + 5 in decimal writes 0 and carries 1.

How do I add binary numbers of different lengths?

Align them on the right, as you would with decimal numbers, and treat the missing positions of the shorter one as zeros. The calculator does this for you, so 1011 + 11 returns 1110.

Can I add negative binary numbers?

Yes. Put a minus sign in front of the operand, for example -1011. The result uses a minus sign as well. The calculator does not accept or produce two's complement bit patterns.

Why does the result have more bits than my inputs?

A sum can need one more bit than its longer operand. The calculator keeps that bit instead of wrapping around, so 111 + 1 returns 1000. Fixed-width hardware would report this as a carry out.

Does the calculator show the carries?

No. It shows the sum in binary and in decimal. For a step list with the carry into and out of each bit position, open the Binary Carry Calculator with the same two numbers.

Is there a limit on operand size?

Each operand can be up to 4,096 characters, including the sign and any 0b prefix. Sums are computed with big integers, so they are exact at any length within that limit.

Related tools