The half subtractor circuit

A half subtractor is a digital circuit used when we want to perform binary subtraction on two single-bit binary numbers. The circuit consists of three different types of logic gates, namely, AND, XOR, and NOT. It outputs two binary numbers representing the difference between the two binary numbers and a borrow bit that represents if a borrow is needed to perform the subtraction.

The circuit diagram

Below we can see the diagram of the half subtractor circuit. The two bits, A and B, represent the half subtractor input.

Circuit diagram of the half subtractor
Circuit diagram of the half subtractor

We can see in the diagram that the difference between the two single binary bits A and B is the XOR of the two inputs, and the borrow is the NOT of the subtrahendThe number that is being subtracted by another number., which is then AND'ed with the subtractor. The subtrahend will always be attached to the NOT gate, whose output is fed to the AND gate.

Note: In the diagram, the bit A represents the subtrahend and the bit B represents the subtractor in the subtraction operation.

The truth table

Now that we have looked at the circuit diagram for the half subtractor, we will look at how the truth table is formed for the circuit with the help of the slideshow below.  

Empty truth table
Empty truth table
1 of 5

Applications of the half subtractor

Now that we have understood what is a half subtractor and its internal circuit's working, we are now going to go through some of the applications of a half subtractor circuit listed below:

  • Building blocks: A half subtractor circuit is a basic building block of larger subtractor circuits such as a full subtractor or an n-bit subtractor.

  • Arithmetic and logic units (ALU): These circuits are used in ALUs that are components of a computer's CPU responsible for carrying out arithmetic and logic operations.

  • Calculator circuits: This circuit can also be used when designing a calculator circuit to perform the subtraction operation.

  • Error detection: Can be used to detect bit errors by subtracting the received bits and the expected bits together and analyzing the result of the subtraction.

Conclusion

The half subtractor circuit is a key component of digital circuits that illustrates bit manipulation operations on binary numbers. Its straightforward but crucial architecture enables the subtraction of binary numbers, laying the groundwork for more difficult arithmetic and logic operations.

Note: The half subtractor only works for two single bit binary numbers and does not work in the case of multi bit binary numbers.

Free Resources

Copyright ©2025 Educative, Inc. All rights reserved