
- Digital Electronics - Home
- Digital Electronics Basics
- Types of Digital Systems
- Types of Signals
- Logic Levels And Pulse Waveforms
- Digital System Components
- Digital Logic Operations
- Digital Systems Advantages
- Number Systems
- Number Systems
- Binary Numbers Representation
- Binary Arithmetic
- Signed Binary Arithmetic
- Octal Arithmetic
- Hexadecimal Arithmetic
- Complement Arithmetic
- Base Conversions
- Base Conversions
- Binary to Decimal Conversion
- Decimal to Binary Conversion
- Binary to Octal Conversion
- Octal to Binary Conversion
- Octal to Decimal Conversion
- Decimal to Octal Conversion
- Hexadecimal to Binary Conversion
- Binary to Hexadecimal Conversion
- Hexadecimal to Decimal Conversion
- Decimal to Hexadecimal Conversion
- Octal to Hexadecimal Conversion
- Hexadecimal to Octal Conversion
- Binary Codes
- Binary Codes
- 8421 BCD Code
- Excess-3 Code
- Gray Code
- ASCII Codes
- EBCDIC Code
- Code Conversion
- Error Detection & Correction Codes
- Logic Gates
- Logic Gates
- AND Gate
- OR Gate
- NOT Gate
- Universal Gates
- XOR Gate
- XNOR Gate
- CMOS Logic Gate
- OR Gate Using Diode Resistor Logic
- AND Gate vs OR Gate
- Two Level Logic Realization
- Threshold Logic
- Boolean Algebra
- Boolean Algebra
- Laws of Boolean Algebra
- Boolean Functions
- DeMorgan's Theorem
- SOP and POS Form
- POS to Standard POS Form
- Minimization Techniques
- K-Map Minimization
- Three Variable K-Map
- Four Variable K-Map
- Five Variable K-Map
- Six Variable K-Map
- Don't Care Condition
- Quine-McCluskey Method
- Min Terms and Max Terms
- Canonical and Standard Form
- Max Term Representation
- Simplification using Boolean Algebra
- Combinational Logic Circuits
- Digital Combinational Circuits
- Digital Arithmetic Circuits
- Multiplexers
- Multiplexer Design Procedure
- Mux Universal Gate
- 2-Variable Function Using 4:1 Mux
- 3-Variable Function Using 8:1 Mux
- Demultiplexers
- Mux vs Demux
- Parity Bit Generator and Checker
- Comparators
- Encoders
- Keyboard Encoders
- Priority Encoders
- Decoders
- Arithmetic Logic Unit
- 7-Segment LED Display
- Code Converters
- Code Converters
- Binary to Decimal Converter
- Decimal to BCD Converter
- BCD to Decimal Converter
- Binary to Gray Code Converter
- Gray Code to Binary Converter
- BCD to Excess-3 Converter
- Excess-3 to BCD Converter
- Adders
- Half Adders
- Full Adders
- Serial Adders
- Parallel Adders
- Full Adder using Half Adder
- Half Adder vs Full Adder
- Full Adder with NAND Gates
- Half Adder with NAND Gates
- Binary Adder-Subtractor
- Subtractors
- Half Subtractors
- Full Subtractors
- Parallel Subtractors
- Full Subtractor using 2 Half Subtractors
- Half Subtractor using NAND Gates
- Sequential Logic Circuits
- Digital Sequential Circuits
- Clock Signal and Triggering
- Latches
- Shift Registers
- Shift Register Applications
- Binary Registers
- Bidirectional Shift Register
- Counters
- Binary Counters
- Non-binary Counter
- Design of Synchronous Counter
- Synchronous vs Asynchronous Counter
- Finite State Machines
- Algorithmic State Machines
- Flip Flops
- Flip-Flops
- Conversion of Flip-Flops
- D Flip-Flops
- JK Flip-Flops
- T Flip-Flops
- SR Flip-Flops
- Clocked SR Flip-Flop
- Unclocked SR Flip-Flop
- Clocked JK Flip-Flop
- JK to T Flip-Flop
- SR to JK Flip-Flop
- Triggering Methods:Flip-Flop
- Edge-Triggered Flip-Flop
- Master-Slave JK Flip-Flop
- Race-around Condition
- A/D and D/A Converters
- Analog-to-Digital Converter
- Digital-to-Analog Converter
- DAC and ADC ICs
- Realization of Logic Gates
- NOT Gate from NAND Gate
- OR Gate from NAND Gate
- AND Gate from NAND Gate
- NOR Gate from NAND Gate
- XOR Gate from NAND Gate
- XNOR Gate from NAND Gate
- NOT Gate from NOR Gate
- OR Gate from NOR Gate
- AND Gate from NOR Gate
- NAND Gate from NOR Gate
- XOR Gate from NOR Gate
- XNOR Gate from NOR Gate
- NAND/NOR Gate using CMOS
- Full Subtractor using NAND Gate
- AND Gate Using 2:1 MUX
- OR Gate Using 2:1 MUX
- NOT Gate Using 2:1 MUX
- Memory Devices
- Memory Devices
- RAM and ROM
- Cache Memory Design
- Programmable Logic Devices
- Programmable Logic Devices
- Programmable Logic Array
- Programmable Array Logic
- Field Programmable Gate Arrays
- Digital Electronics Families
- Digital Electronics Families
- CPU Architecture
- CPU Architecture
Digital Electronics - Binary Arithmetic
Binary arithmetic is one of the fundamental concepts in the field of digital electronics and computer engineering. It is basically the mathematics of binary numbers allow to perform various arithmetic operations on binary numbers. We know that the binary number system has two digits, i.e., 0 and 1 which are used to represent the ON or OFF states of the digital systems. Hence, binary arithmetic forms the foundation of the digital computing.
In this chapter, we will discuss the following four main binary arithmetic operations −
- Binary Addition
- Binary Subtraction
- Binary Multiplication
- Binary Division
Lets discuss each of these binary arithmetic operations in detail along with solved examples.
Binary Addition
In binary arithmetic, the process of adding two binary numbers is called binary addition. Where, the binary numbers consist of only 0 and 1. In the binary addition, a carry is generated when the sum is greater than 1.
Rules of Binary Addition
The addition of two binary numbers is performed according to these rules of binary arithmetic −
$$\mathrm{0 \: + \: 0 \: = \: 0}$$
$$\mathrm{0 \: + \: 1 \: = \: 1}$$
$$\mathrm{1 \: + \: 0 \: = \: 1}$$
$$\mathrm{1 \: + \: 1 \: = \: 10 \: (Sum \: = \: 0 \: \& \: Carry \: = \: 1)}$$
Let us consider some examples to understand the binary addition.
Example 1
Add two binary numbers, 1101 and 1110.
Solution
The binary addition of the given binary numbers is described below −

Explanation
Add 1 (rightmost bit of first number) and 0 (rightmost bit of the second number). It gives 1 + 0 = 1 (thus, write down 1 as sum bit).
Add 0 (second rightmost bit of first number) and 1 (second rightmost bit of the second number). It gives 0 + 1 = 1 (write down 1 as sum bit).
Add 1 (third rightmost bit of first number) and 1 (third rightmost bit of second number). It gives 1 + 1 = 10 (write down 0 as sum and 1 as carry).
Add 1 (leftmost bit of the first number), 1 (leftmost bit of second number) and 1 (carry). It gives 1 + 1 + 1 = 11 (write down 1 as sum and 1 as carry).
Write the end around carry 1 in the sum.
Thus, the result is 11011.
Example 2
Add 1010 and 11011.
Solution
The binary addition of given numbers is explained below −

Explanation
Add 0 (rightmost bit of first number) and 1 (rightmost bit of second number). It gives 0 + 1 = 1 (write down 1 as sum).
Add 1 (second rightmost bit of first number) and 1 (second rightmost bit of second number). It gives 1 + 1 = 10 (write down 0 as sum and 1 as carry).
Add 0 (third rightmost bit of first number), 0 (third rightmost bit of second number), and 1 (carry). It gives 0 + 0 + 1 = 1 (write down 1 as sum).
Add 1 (leftmost bit of first number) and 1 (second leftmost bit of second number). It gives 1 + 1 = 10 (write down 0 as sum and 1 as carry).
Add 1 (leftmost bit of second number) and 1 carry. It gives 1 + 1 = 10 (write down 0 as sum and 1 as the end around carry).
Hence, the sum of 1010 and 11011 is 100101.
Binary Subtraction
In binary arithmetic, binary subtraction is a mathematical operation used to find the difference between two binary numbers.
In binary subtraction, each bit of the binary numbers is subtracted, starting from the rightmost bit.
Also, a borrow bit can be taken from higher bits if require.
Rules of Binary Subtraction
The binary subtraction is performed as per the following rules of binary arithmetic −
$$\mathrm{0 \: \: 0 \: = \: 0}$$
$$\mathrm{1 \: \: 0 \: = \: 1}$$
$$\mathrm{0 \: \: 1 \: = \: 1 \: (borrow \: 1 \: from \: the \: next \: higher \: bit)}$$
$$\mathrm{1 \: \: 1 \: = \: 0}$$
Let us see some examples to understand the binary subtraction.
Example 1
Subtract 1100 from 1101.
Solution
The subtraction of given binary numbers is given below −
1101 1100 = 0001

Explanation
Subtract 0 (rightmost bit of second number) from 1 (rightmost bit of first number). It gives 1 0 = 1 (write down 1 as difference).
Subtract 0 (second rightmost bit of second number) from 0 (second rightmost bit of first number). It gives 0 0 = 0 as result.
Subtract 1 (third rightmost bit of second number) from 1 (third rightmost bit of first number). It gives 1 1 = 0 as result.
Subtract 1 (leftmost bit of second number) from 1 (leftmost bit of first number). It gives 1 1 = 0 as result.
Thus, the difference of 1101 and 1100 is 0001.
Example 2
Subtract 101 from 1111.
Solution
The subtraction of given binary numbers is explained below −

Explanation
Subtract rightmost bits: 1 1 = 0
Subtract second rightmost bits: 1 1 = 1
Subtract third rightmost bits: 1 1 = 0
Subtract leftmost bits: 1 0 = 1
Thus, the result is 1010.
Example 3
Subtract 1011 from 1101.
Solution
The binary subtraction of 1101 and 1011 is given below −

Explanation
Subtract rightmost bits: 1 1 = 0.
Subtract second rightmost bits: 0 1 = 1. A borrow 1 is taken from the next higher bit.
Subtract third rightmost bits: 0 0 = 0. The 1 borrow is given to previous bit.
Subtract leftmost bits: 1 1 = 0.
Thus, the difference of 1101 and 1011 is 0010.
Binary Multiplication
In binary arithmetic, binary multiplication is the process of multiplying two binary numbers and obtain their product.
In binary multiplication, we multiply each bit of one binary number by each bit of another binary number and then add the partial products to obtain the final product.
Rules of Binary Multiplication
The multiplication of two binary numbers is performed as per the following rules of binary arithmetic −
$$\mathrm{0 \: \times \: 0 \: = \: 0}$$
$$\mathrm{0 \: \times \: 1 \: = \: 0}$$
$$\mathrm{1 \: \times \: 0 \: = \: 0}$$
$$\mathrm{1 \: \times \: 1 \: = \: 1}$$
It is clear that the binary multiplication is similar to the decimal multiplication. Let us understand the binary multiplication with the help of solved examples.
Example 1
Multiply 1101 and 11.
Solution
The binary multiplication of given numbers is described below −

Explanation
Multiply the rightmost bit of the second number, 1 by each bit of the first number (1101).
Now, shift the partial product one position to the left to perform the next multiplication.
Multiply the leftmost bit of the second number, 1 by each bit of the first number (1101).
Finally, sum up all the partial products to obtain the final product.
Hence, the product of 1101 and 11 is 100111.
Example 2
Multiply 11011 and 110.
Solution
The multiplication of given binary numbers is demonstrated below −

Explanation
Multiply rightmost bit of the second number (0) by each bit of the first binary number (11011).
Shift the partial product one position to the left.
Multiply the second rightmost bit of the second number (1) by each bit of the first binary number (11011).
Again, shift the partial product one position to the left.
Multiply the leftmost bit of the second number (1) by each bit of the first number.
Then, sum up all the partial products to obtain the final product.
Hence, the product of 11011 and 110 is 10100010.
Binary Division
Binary division is one of the basic arithmetic operations used to find the quotient and remainder when dividing one binary number by another.
Rules of Binary Division
The following rules of binary arithmetic are utilized while diving one binary number by another −
$$\mathrm{0 \: \div \: 0 \: = \: Undefined}$$
$$\mathrm{0 \: \div \: 1 \: = \: 0 \: with \: Remainder \: = \: 0}$$
$$\mathrm{1 \: \div \: 0 \: = \: Undefined}$$
$$\mathrm{1 \: \div \: 1 \: = \: 1 \: with \: Remainder \: = \: 0}$$
Binary Division Procedure
- Start dividing from the leftmost bits of the dividend by the divisor.
- Multiply the quotient obtained by the divisor and subtract from the dividend.
- Bring down the next bits of the dividend and repeat the division process until all the bits of given divided are used.
Let us consider some solved examples to understand the binary division.
Example 1
Divide 110011 by 11.
Solution
The division of the given binary numbers is explained below −
110011 11 = 10001

In this example of binary division, the quotient obtained is 10001 and the remainder is 0.
Example 2
Divide 11011 by 10.
Solution
The binary division of 11011 by 10 is explained below −
11011 10 = 1101

In this example, the quotient is 1101 and the remainder is 1.
Conclusion
Binary arithmetic involves arithmetic operations performed on binary numbers. In general, the four basic arithmetic operations namely addition, subtraction, multiplication, and division are performed on binary numbers.
In this chapter, we explained the rules and procedure to perform all the four basic binary arithmetic operations along with solved examples.