Binary Addition Calculator
Free Binary addition Calculator for binary. Enter values to get step-by-step solutions with formulas and graphs. Enter your values for instant results.
Formula
Binary Addition Rules: 0+0=0, 0+1=1, 1+0=1, 1+1=10 (0 carry 1)
Binary addition proceeds column by column from right to left, just like decimal addition. When the sum in any column equals 2 or more, a carry is generated to the next column. The sum bit is the remainder after dividing by 2, and the carry is the quotient.
Worked Examples
Example 1: Adding Two 4-bit Binary Numbers
Problem: Add binary 1011 (decimal 11) and 1101 (decimal 13).
Solution: Column-by-column from right to left:\n Carry: 1 1 1 0\n 1 0 1 1 (11)\n + 1 1 0 1 (13)\n ---------\n 1 1 0 0 0 (24)\n\nBit 0: 1+1 = 10, write 0 carry 1\nBit 1: 1+0+1(carry) = 10, write 0 carry 1\nBit 2: 0+1+1(carry) = 10, write 0 carry 1\nBit 3: 1+1+1(carry) = 11, write 1 carry 1\nBit 4: carry 1, write 1
Result: 1011 + 1101 = 11000 (decimal 24, hex 0x18)
Example 2: Adding 8-bit Binary Numbers with Multiple Carries
Problem: Add binary 10110111 (183) and 01101010 (106).
Solution: Carry: 1 1 1 1 0 0 1 0\n 1 0 1 1 0 1 1 1 (183)\n + 0 1 1 0 1 0 1 0 (106)\n -----------------\n 1 0 0 0 1 0 0 0 1 (289)\n\nDecimal check: 183 + 106 = 289\nBinary result: 100010001\nHex: 0x121
Result: 10110111 + 01101010 = 100010001 (decimal 289, hex 0x121)
Frequently Asked Questions
How does binary addition work?
Binary addition follows the same principles as decimal addition but uses only two digits: 0 and 1. The basic rules are simple: 0 plus 0 equals 0, 0 plus 1 equals 1, 1 plus 0 equals 1, and 1 plus 1 equals 10 (which is 0 with a carry of 1). When adding multi-bit numbers, you start from the rightmost bit (least significant bit) and work leftward, carrying over just like in decimal addition. If both bits and the carry are all 1, the sum is 11 in binary (decimal 3), giving a result bit of 1 and a carry of 1. This process continues until all bit positions including any final carry have been processed.
What is a carry in binary addition?
A carry in binary addition occurs when the sum of bits in a column exceeds 1, the maximum value a single binary digit can hold. When you add 1 plus 1 in binary, the result is 10 (decimal 2), so you write down 0 and carry the 1 to the next column to the left. This is exactly analogous to carrying in decimal addition when a column sum exceeds 9. In binary, a carry can also propagate through multiple columns, known as a carry chain. For example, adding 1111 plus 0001 creates a carry that ripples all the way through four bit positions. Understanding carries is essential for designing efficient hardware adders in computer processors.
What is the difference between binary and decimal addition?
The fundamental difference is the number base used. Decimal addition uses base 10 with digits 0 through 9, while binary addition uses base 2 with only digits 0 and 1. In decimal, a carry occurs when a column sum reaches 10 or more. In binary, a carry occurs when a column sum reaches 2 or more. Binary addition is simpler in terms of rules since there are fewer combinations to memorize, but binary numbers require more digits to represent the same values. For example, the decimal number 255 requires three decimal digits but eight binary digits (11111111). Computers use binary because electronic circuits can reliably distinguish between two states (on and off) much more easily than ten states.
How do computers perform binary addition in hardware?
Computers use logic gates to perform binary addition through circuits called adders. The simplest is the half adder, which adds two single bits using an XOR gate for the sum and an AND gate for the carry. A full adder extends this by accepting a carry input from the previous column, using two half adders and an OR gate. Multiple full adders are chained together to create a ripple carry adder, which can add multi-bit numbers. However, ripple carry adders are slow because each bit must wait for the carry from the previous bit. Modern processors use more advanced designs like carry-lookahead adders or carry-select adders that calculate carries in parallel, dramatically reducing addition time.
What happens when binary addition results in overflow?
Overflow occurs when the result of a binary addition requires more bits than the available storage capacity. In an 8-bit system, the maximum unsigned value is 11111111 (255). Adding 11111111 plus 00000001 would produce 100000000 (256), which needs 9 bits. In unsigned arithmetic, this extra bit is simply lost, wrapping the result back to 00000000. For signed numbers using twos complement, overflow is detected when adding two positive numbers yields a negative result or adding two negative numbers yields a positive result. Processors have special overflow flags that programmers can check after addition operations to detect and handle these situations in their software applications.
Can you add more than two binary numbers at once?
While binary addition is typically performed on two numbers at a time, you can add multiple binary numbers by chaining additions sequentially or using specialized hardware. In sequential addition, you add the first two numbers, then add the third number to that result, and continue until all numbers are summed. In hardware, multi-operand addition is used in digital signal processing and multiplication circuits. A Wallace tree multiplier, for instance, adds many partial products simultaneously using carry-save adders that defer carry propagation until the final stage. Compressors (3-to-2 or 4-to-2) reduce three or four binary numbers to two numbers with the same sum, enabling efficient parallel addition of many operands.