Key facts
- Binary addition uses four rules: 0 + 0 = 0, 0 + 1 = 1, 1 + 1 = 10 (write 0, carry 1) and 1 + 1 + 1 = 11 (write 1, carry 1).
- 1011₂ + 110₂ = 10001₂, which is 11 + 6 = 17 in decimal.
- Work from right to left, carrying into the next column just as in decimal addition.
- Adding two n-bit numbers gives at most n + 1 bits.
- Computers add binary numbers with circuits called full adders, one per column.
The four rules
| Bits plus carry | Total | Write | Carry |
|---|---|---|---|
| 0 + 0 | 0 | 0 | 0 |
| 0 + 1 or 1 + 0 | 1 | 1 | 0 |
| 1 + 1 | 2 | 0 | 1 |
| 1 + 1 + 1 (with carry) | 3 | 1 | 1 |
In binary, "10" means two and "11" means three, so 1 + 1 = 10 and 1 + 1 + 1 = 11.
How to use the binary addition calculator
- Enter two binary numbers using only 0 and 1. Spaces and underscores are ignored, so 1011_0110 is fine.
- Read the sum, the decimal check, the hex and octal forms and the number of carries.
- Follow the column working and the table to see each step.
Step-by-step examples: binary addition
Example 1
1011 + 110:
- Column 2⁰: 1 + 0 = 1, write 1.
- Column 2¹: 1 + 1 = 10, write 0, carry 1.
- Column 2²: 0 + 1 + 1 = 10, write 0, carry 1.
- Column 2³: 1 + 0 + 1 = 10, write 0, carry 1.
- The final carry becomes the leading 1.
Result: 10001. Check in decimal: 11 + 6 = 17.
Example 2: a long carry chain
1111 + 1 = 10000. The carry ripples through all four columns, just as 9,999 + 1 = 10,000 in decimal.
Example 3: equal lengths
1010 + 0101 = 1111 (10 + 5 = 15). No carries are needed because no column has two 1s.
Example 4: overflow
In an 8-bit register, 11111111 + 1 = 1 00000000. The ninth bit does not fit, so an 8-bit computer stores 00000000. This is called overflow, and it is why counters "wrap around".
Converting to check your work
Add up the place values of the 1 bits: 10001₂ = 16 + 1 = 17. Place values double each step left: 1, 2, 4, 8, 16, 32, 64, 128, …
| Binary | Decimal | Hex |
|---|---|---|
| 1010 | 10 | A |
| 1111 | 15 | F |
| 10000 | 16 | 10 |
| 11111111 | 255 | FF |
How computers add
A half adder adds two bits using an XOR gate for the sum bit and an AND gate for the carry. A full adder adds two bits plus an incoming carry. Chaining full adders, one per bit, gives a ripple-carry adder, the simplest circuit that adds whole binary numbers. Faster processors use carry-lookahead designs so they do not have to wait for the carry to ripple across all 64 bits.
Binary subtraction
Computers usually subtract by adding the two's complement: to compute A − B, invert the bits of B, add 1, and add the result to A, ignoring any carry out of the top bit. The same adder circuit therefore handles both operations.
Common mistakes with binary addition
- Writing 2 in a column. Binary digits are only 0 or 1; 1 + 1 is written as 0 with a carry.
- Misaligning the numbers. Line them up on the right, like decimal addition.
- Dropping the final carry, which loses the leading 1 of the answer.
Binary arithmetic and the machines built on it
Gottfried Wilhelm Leibniz described binary arithmetic in his 1703 paper *Explication de l’Arithmétique Binaire*, noting its link to the hexagrams of the Chinese *I Ching*. George Boole’s *The Laws of Thought* (1854) created the algebra of true and false, and in his 1937 master’s thesis at MIT, Claude Shannon showed that relay circuits could carry out Boolean logic and binary arithmetic, a foundation of digital electronics. Konrad Zuse’s Z3 of 1941 was the first working programmable computer to use binary.
Binary addition follows four rules: 0 + 0 = 0, 0 + 1 = 1, 1 + 1 = 10 (write 0, carry 1) and 1 + 1 + 1 = 11. In hardware, a half adder handles one column and a full adder handles a column with an incoming carry; chaining full adders gives a ripple-carry adder, and faster designs such as the carry-lookahead adder predict carries in advance. Hexadecimal (base 16) and octal (base 8) are shorthand for binary because each hex digit is exactly four bits. Computers store negative numbers in two’s complement, which lets the same adder subtract. Computers multiply binary numbers with shifts and additions, a direct descendant of long multiplication. For decimal column addition, use the long addition calculator; for powers of two, the exponent calculator; and for remainders used in computing, the modulo calculator.
Related: the long addition calculator, the modulo calculator and the scientific notation calculator.
How this calculator works
- Adds two binary numbers column by column from the right, using 1 + 1 = 10 (carry 1).
- Every carry is shown in the working.
- The sum is also given in decimal (as a check), hexadecimal and octal.
- Only digits 0 and 1 are accepted; numbers of any length are handled exactly.
Frequently asked questions
How do you add binary numbers?
Add column by column from the right: 0 + 0 = 0, 0 + 1 = 1, 1 + 1 = 10 (write 0, carry 1), 1 + 1 + 1 = 11 (write 1, carry 1).
What is 1011 + 110 in binary?
10001, which is 11 + 6 = 17 in decimal.
What is 1 + 1 in binary?
10, which is two in decimal.
What is 1 + 1 + 1 in binary?
11, which is three in decimal.
How do I check a binary sum?
Convert all three numbers to decimal and check the addition there.
What is binary overflow?
When a sum needs more bits than the register holds, so the top carry is lost.
How do computers subtract in binary?
By adding the two’s complement of the number being subtracted.
How many bits can the sum have?
At most one more bit than the longer of the two numbers.