- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

The addition of binary numbers is easy yet tedious at the same time. It is a fundamental feature of digital computers, and hence it is important to know how to add binary digits.

Almost all the operations of a computer depend on binary addition. Once we understand the addition of two binary digits, it is easier to understand subtraction, multiplication, and division of binary digits.

We can start by adding two binary bits. As you are aware a bit can be either 0 or 1. Therefore, we can have only four possible input combinations. The four possible input combinations and their output are as follows −

0 + 0 = 0

0 + 1 = 1

1 + 0 = 1

1 + 1 = 10

In the above four possibilities, we can observe that the fourth possibility results in a 2-bit output. The table shows the method of handling such output.

**Binary Addition**

Input | Output | ||
---|---|---|---|

P | Q | Carry | Sum (P + Q) |

0 | 0 | 0 | 0 |

0 | 1 | 0 | 1 |

1 | 0 | 0 | 1 |

1 | 1 | 1 | 0 |

As shown in the table, the carry digit handles the possibility of overflow. Here, overflow refers to the extra digit that we obtain on adding 1 and 1. The overflow or carry digit is carried forward to the next most significant digit in the operation.

Example − Add 1011011 + 100111

```
1 0 1 1 0 1 1
+ 1 0 0 1 1 1
```__1 0 0 0 0 0 1 0__
1 1 1 1 1 1 → Carry bits

In the example

1 + 1 = 0 (one carry)

1 + 1 (+ the carried digit 1) = 1 (one carry)

0 + 1 (+ the carried digit 1) = 0 (one carry)

1 + 0 (+ the carried digit 1) = 0 (one carry)

1 + 0 (+ the carried digit 1) = 0 (one carry)

0 + 1 (+ the carried digit 1) = 0 (one carry)

1 + 0 (+ the carried digit 1) = 0 (one carry)

The last digit that is carried is placed on the left-hand side of the result. Therefore, the output is 10000010.

- Related Questions & Answers
- What is the subtraction of binary numbers?
- What is the division of binary numbers in Computer Architecture?
- Addition of two numbers without propagating Carry?
- What is Addition Operator (+) in JavaScript?
- Addition of multi-byte numbers in Z-80
- What is Addition Assignment Operator (+=) in JavaScript?
- Design a TM to compute addition of two unary numbers
- Negative Binary Numbers
- What is Binary Decoder?
- What is Binary Adder?
- What is Binary Variables?
- Binary Number System - Overflow in Arithmetic Addition in C/C++?
- Addition of tuples in Python
- What is the use of MySQL BINARY keyword while performing string comparison?
- How to find the product of two binary numbers using C#?

Advertisements