Binary Addition Calculator

Add two binary integers and check the base-2 sum with its decimal value.

Add binary numbers
Enter two unsigned binary integers containing only zeros and ones.

About binary addition

Binary addition combines base-2 numbers using the same place-value principle as decimal addition. Each column represents a power of two rather than a power of ten, and every digit is either zero or one. The four basic cases are simple: zero plus zero gives zero, zero plus one gives one, one plus zero gives one, and one plus one gives binary ten. In the last case, write zero in the current column and carry one into the next column to the left. To add longer values by hand, align their rightmost digits and work from right to left. Include any carry from the preceding column. A column containing one plus one plus a carry totals decimal three, represented as binary eleven, so write one and carry one. Continue until every column and final carry have been processed. This procedure is exactly what a ripple-carry adder performs in basic digital hardware, although modern processors use faster carry-lookahead and parallel-prefix circuits. For example, adding 1011 and 0101 starts on the right. One plus one produces zero with a carry. The next column contains one plus zero plus the carry, producing zero with another carry. The following column contains zero plus one plus the carry, again producing zero with a carry. The left column contains one plus zero plus the carry, producing binary ten. Reading the result gives 10000. In decimal, the same check is eleven plus five equals sixteen. Binary addition is fundamental to computer arithmetic. Subtraction can be implemented by adding a two's-complement value, multiplication can be built from shifted additions, and address calculations repeatedly add offsets to base locations. Checksums, counters, timers, graphics operations, and cryptographic algorithms all rely on addition at the bit level. Learning the carry rule makes many other low-level operations easier to understand. This calculator treats inputs as unsigned whole numbers and preserves arbitrary practical lengths through exact integer arithmetic. Leading zeros do not change the numerical result, so 00101 and 101 both represent five. Fractional binary numbers and signed two's-complement interpretation are outside this calculator's scope. For fixed-width hardware work, remember that a result may need one more bit than the larger operand. If that extra carry is discarded, the stored result wraps modulo the selected word size. The decimal value shown with the binary result is a convenient independent interpretation, not a separate approximation. You can verify any answer by converting each input to decimal, adding them, and converting the sum back to base two. Powers of two are especially useful checks: adding one to a run of ones turns those ones into zeros and creates a new leading one.

Binary addition examples

Examples show carry propagation and decimal checks.

AdditionBinary sumDecimal check
1011 + 1011000011 + 5 = 16.
1 + 1101 + 1 = 2 and creates one carry.
1111 + 11000015 + 1 = 16 and the carry crosses every column.
101010 + 11011000042 + 6 = 48.

How to add binary numbers

  1. Enter the first unsigned binary integer using only zeros and ones.
  2. Enter the second binary integer and align its least significant digit conceptually with the first.
  3. Select Add Binary Numbers to calculate the exact base-2 sum.
  4. Read the binary sum and use the displayed decimal value as a quick verification.

Binary addition FAQ

What is one plus one in binary?

One plus one is written as 10 in base two. The zero stays in the current column and the one is carried left.

Do leading zeros affect the answer?

No. Leading zeros do not change a binary integer's value, just as leading zeros do not change a decimal integer.

How can I check a binary sum?

Convert both inputs to decimal, add them, and convert the total back to binary. The calculator displays the decimal interpretation for this purpose.

Can binary addition overflow?

A fixed-width register can overflow when the sum needs an extra leading bit. This calculator displays the full result instead of discarding that carry.

Does this support negative binary numbers?

The inputs are interpreted as unsigned integers. Negative values require an agreed signed representation such as two's complement and a fixed bit width.