Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Aptitude
  • Engineering Mathematics
  • Discrete Mathematics
  • Operating System
  • DBMS
  • Computer Networks
  • Digital Logic and Design
  • C Programming
  • Data Structures
  • Algorithms
  • Theory of Computation
  • Compiler Design
  • Computer Org and Architecture
Open In App
Next Article:
Half Adder and Half Subtractor using NAND NOR gates
Next article icon

Half Adder and Half Subtractor using NAND NOR gates

Last Updated : 14 May, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

A Half Adder is a digital circuit that adds two single-bit binary numbers and outputs the sum and carry. It can be implemented using either NAND gates or with NOR gates.

When using NAND gates : The sum output is given by A AND B. The carry output is given by the A AND B. ​

​W​hen NOR gate is used : The sum output is NOR of the inputs A and B. Carry output is OR of the inputs A and B.

Half Subtractor is any electronic system which takes two one-bit binary numbers as inputs and generates the difference​ along with borrow as output. Besides, they can also be made using NAND or NOR gates.

While applying NAND gates : The Difference output is given by, the NAND for the inputs (A and B). While the borrow output is given by NAND, input A and inverted input B.

Conversely for NOR gates : The difference output has been obtained by NOR operation on (A and B) inputs. While the borrow produces NOT operation on input A and B.

These circuits act as basic blocks in digitization whereas they are very important regarding numerical calculations in computers.

What is Half Adder

A Half Adder is an inverter that takes two binary numbers of single bit and adds them. The two inputs represent the bits inputted for addition while there are two outputs. These outputs indicate a sum bit and carry bit respectively.

Block Diagram of Half Adder

Half-Adder
Block Diagram for Half Adder

Truth Table of Half Adder

A

B​

S (Sum)

C (Carry)

0

0

0

0

0

1

1

0

1

0

1

0

1

1

0

1

What is Half Subtractor

A half subtractor is another digital circuit that is used in binary subtraction. It works on two single-bit binary numbers. It has two inputs and two outputs like the half adder, again. The minuend (i.e., the number from which something is going to be deducted), and the subtrahend (the number that this something will represent), form the inputs. On the other hand, the outputs include a difference bit and a borrow bit.

Block Diagram of Half Subtractor

Half-Subtractor
Block Diagram for Half Subtractor

Truth Table of Half Subtractor

A

B

Diff

Borrow

0

0

0

0

0

1

1

1

1

0

1

0

1

1

0

0

Implementation

Implementation of Half Adder using NAND gates:

Total 5 NAND gates are required to Implement Half AdderImplementation of Half Adder using NOR gates:

Total 5 NOR gates are required to implement Half Adder Implementation of Half Subtractor using NAND gates:

Total 5 NAND gates are required to Implement Half SubtractorImplementation of Half Subtractor using NOR gates:

Total 5 NOR gates are required to Implement Half Subtractor

Advantages of Using NAND and NOR Gates to Implement Half Adder and Half Subtractor

  • Universality: NAND and NOR gates are considered universal gates because they can be used to implement any logical function, including binary arithmetic functions such as addition and subtraction.
  • Cost-effectiveness: NAND and NOR gates are relatively simple and inexpensive to manufacture compared to other types of gates.
  • Reduced power consumption: NAND and NOR gates consume less power compared to other types of gates, making them suitable for low-power applications.

Disadvantages of Using NAND and NOR Gates to Implement Half Adder and Half Subtractor

  • Propagation delay: The propagation delay of NAND and NOR gates can be higher compared to other types of gates, which can affect the overall performance of the system.
  • Noise susceptibility: NAND and NOR gates can be susceptible to noise and other types of interference, which can cause incorrect operation of the circuit.
  • In conclusion, while NAND and NOR gates have their advantages, they are not suitable for all applications. The choice of gates depends on the specific requirements of the circuit and the design trade-offs between performance, cost, and power consumption.

Next Article
Half Adder and Half Subtractor using NAND NOR gates

S

Sumouli Choudhury
Improve
Article Tags :
  • Digital Logic

Similar Reads

    Representation of Boolean Functions
    Boolean functions are expressions involving Boolean variables and operators, such as AND, OR, and NOT. These functions are fundamental in digital logic design, computer science, and engineering.Table of ContentWhat are Boolean Functions?Definition of Boolean FunctionsRepresentation of Boolean Functi
    10 min read
    Canonical and Standard Form
    Canonical Form - In Boolean algebra, the Boolean function can be expressed as Canonical Disjunctive Normal Form known as minterm and some are expressed as Canonical Conjunctive Normal Form known as maxterm. In Minterm, we look for the functions where the output results in "1" while in Maxterm we loo
    6 min read
    Functional Completeness in Digital Logic
    Functional Completeness is a crucial concept in digital logic design. A set of logical operators is functionally complete if it can be used to express any Boolean function. This means that any logical operation, regardless of complexity, can be constructed using only operators from a functionally co
    6 min read
    Introduction of K-Map (Karnaugh Map)
    In many digital circuits and practical problems, we need to find expressions with minimum variables. We can minimize Boolean expressions of 3, 4 variables very easily using K-map without using any Boolean algebra theorems. It is a tool which is used in digital logic to simplify boolean expression. I
    5 min read
    Various Implicants in K-Map
    An implicant can be defined as a product/minterm term in Sum of Products (SOP) or sum/maxterm term in Product of Sums (POS) of a Boolean function. For example, consider a Boolean function, F = AB + ABC + BC. Implicants are AB, ABC, and BC. There are various implicant in K-Map listed below :Prime Imp
    5 min read
    PDNF and PCNF in Discrete Mathematics
    PDNF (Principal Disjunctive Normal Form)It stands for Principal Disjunctive Normal Form. It refers to the Sum of Products, i.e., SOP. For eg. : If P, Q, and R are the variables then (P. Q'. R) + (P' . Q . R) + (P . Q . R') is an example of an expression in PDNF. Here '+' i.e. sum is the main operato
    4 min read
    Variable Entrant Map (VEM) in Digital Logic
    K-map is the best manual technique to solve Boolean equations but it becomes difficult to manage when number of variables exceed 5 or 6. So, a technique called Variable Entrant Map (VEM) is used to increase the effective size of k-map. It allows a smaller map to handle large number of variables. Thi
    3 min read
    Consensus Theorem in Digital Logic
    The Consensus Theorem is a simplification rule in Boolean algebra that helps in minimizing logical expressions by eliminating redundant terms. That is why it is also known as Redundancy Theorem. To apply this theorem, the Boolean expression must meet following conditions:The expression should consis
    5 min read
    Difference between Combinational and Sequential Circuit
    In digital electronics, circuits are classified into two primary categories: The combinational circuits and the sequential circuits. Where the outputs depend on the current inputs are called combination circuit, combinational circuits are simple and effective for functions like addition, subtraction
    4 min read
    Half Adder in Digital Logic
    A half adder is a combinational logic circuit that performs binary addition of two single-bit inputs, A and B, producing two outputs: SUM and CARRY. The SUM output which is the least significant bit (LSB) is obtained using an XOR gate while the CARRY output which is the most significant bit (MSB) is
    3 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences