The Wayback Machine - https://web.archive.org/web/20240813044749/https://www.geeksforgeeks.org/difference-between-nand-gate-and-nor-gate/
Open In App

Difference Between NAND GATE and NOR GATE

Last Updated : 23 Jul, 2024
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

NAND and NOR gates are universal logic gates, which means any Boolean expression can be implemented without using any other gate. Using only NOR gates or only NAND gates all other Boolean expressions can be created unlike other gates. In this article, we will discuss the difference between NAND GATE and NOR GATE. 

What is NAND Gate?

A NAND gate, sometimes known as a ‘NOT-AND’ (Negated Gate) gate, is essentially a Not gate followed by an AND gate. NAND Gate is one of the Universal Gates.

  • This gate’s output is 1 only if none of the inputs is 1. Alternatively, when all of the inputs are not high and at least one is low, the output is high.
  • If there are two inputs A and B, the Boolean expression for the NAND gate is Y = (A.B)’
  • The output is the exact inverse of the AND gate for all possible input combinations in the NAND gate.
  • NAND gate follows the commutative law as (AB)’ = (BA).’

Here, A and B are the inputs and Y is the output. NAND logic gate can be achieved by multiplying all the inputs and then complementing the multiplied result.

NAND Gate Symbol

NAND Gate

Truth Table of NAND Gate

For n=2 (where n is the number of inputs).

Input AND NAND

A

B

A.B

(A.B)’

0

0

0

1

0

1

0

1

1

0

0

1

1

1

1

0

Combining the output of AND with NOT results in NAND Gate output.

Applications of NAND Gate

  1. NAND gates help detect if a single input to a digital system has gone low.
  2. Used in Alarm Circuit.

What is NOR Gate?

The NOR gate (negated OR gate) gives an output of 1 if both inputs are 0. NOR Gate is one of the Universal Gates.

A NOR gate, sometimes known as a “NOT-OR” gate, consists of an OR gate followed by a NOT gate.

  • This gate’s output is 1 only when all of its inputs are 0. Alternatively, when all of the inputs are low, the output is high.
  • The Boolean statement for the NOR gate is Y=(A+B)’ if there are two inputs A and B.
  • The NOR gate is also called the active LOW AND gate.

Here, A and B are the inputs and Y is the output. NOR logic gate can be achieved by the addition of all the inputs and then complementing the added result.

NOR Gate Symbol

NOR Gate

Truth Table of NOR Gate

For n=2 (where n is the number of inputs).

Input OR NOR

A`

B

A+B

(A+B)’

0

0

0

1

0

1

1

0

1

0

1

0

1

1

1

0

Applications of NOR Gate

  1. Used in Combinational Circuit Example – Multipliers, Multiplexers.
  2. Used in Sequential Circuit.

Difference Between NAND Gate and NOR Gate

The table below represents the difference between NAND gate and NOR gate.

S No. Parameter NAND Gate NOR Gate
1. Executes NAND Gate executes Negated logical multiplication.  NOR Gate executes Negated logical addition.
2. Represent 

NAND Gate is represented by a (.)’

Example: Z = (A.B)’

NOR Gate is represented by a (+)’

Example: Z = (A+B)’

3. True Output  NAND Gate gives a true output when exactly one output is true. NOR Gate gives a true output only when both inputs are false. 
4. High output  The NAND Gate gives high output if only one of its inputs is high. The NOR Gate gives high output only if all its inputs are low.
 
5. Combination NAND Gate is the combination of NOT GATE and AND GATE. NOR Gate is the combination of NOT GATE and OR GATE.

6.

Symbol

symbolofNANDgate

NAND gate

sybmolofNORgate

NOR gate

Conclusion

From the above discussion we can conclude that the NAND gate is the negation of AND gate that outputs 0 when all inputs are 1 otherwise output is 1 whereas NOR gate is the negation of OR gate that outputs 1 when all inputs are 0 otherwise output is 0. Also, NAND and NOR gates are universal gates that can be used to implement other logic circuits.

Frequently Asked Questions on NAND Gate and NOR Gate-FAQ’S

What is NAND and NOR Gate?

The NAND gate is a gate that gives output 1 when all inputs are 0. The NOR gate is a gate that gives output 1 when all its inputs are 0.

Why NAND and NOR Gates are Called Universal?

NAND and NOR gates are called universal because these gates can be used to implement other logic gates and circuits.

How Many Gates are Used in NOR Gate?

The NOR gate is combination of two gates i.e., OR gate followed by NOT gate.



Similar Reads

Differences Between NAND vs NOR Flash Memory
Flash memory is a critical factor in cutting-edge digital devices, serving as the spine for storing data persistently. Among the diverse forms of flash reminiscence, NAND and NOR flash are outstanding variations with awesome characteristics. This article delves into the fundamental variations among NAND and NOR flash memory, elucidating their archi
9 min read
Half Adder and Half Subtractor using NAND NOR gates
Introduction: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 simpl
2 min read
MongoDB NOR operator ( $nor )
MongoDB provides different types of logical query operators and $nor operator is one of them. This operator is used to perform logical NOR operation on the array of one or more expressions and select or retrieve only those documents that do not match all the given expression in the array. You can use this operator in methods like find(), update(),
2 min read
Implementation of AND Gate from NAND Gate
It is worth mentioning that Boolean algebra is a fundamental part of the digital electronics field that uses binary variables and logical operations. Think of it as the mind that makes the computers work effectively. Then, imagine that logic gates (AND, OR, and NOT) could be the necessary helpers in the digital world. These gates are the components
5 min read
Implementation of XOR Gate from NAND Gate
Logic Gates are the building blocks of digital circuits, taking binary values as input and returning a binary value as output after performing a logical operation. There are several kinds of gates available in Digital Electronics like basic gates, and universal gates. Implementation of the XOR gate from the NAND gate is possible because the NAND ga
7 min read
Implementation of OR Gate from NAND Gate
Logic gates are an essential component of digital electronics and are used to handle binary data. Because of its universal nature, the NAND gate is particularly significant among these gates. This article explores the use of NAND gates to implement an OR gate, demonstrating the adaptability and usefulness of these fundamental building blocks. In th
4 min read
Implementation of OR Gate from NOR Gate
The Logic gates are the Fundamental Building Blocks of the Digital Circuits. The Logic Gate takes one or more Binary inputs and performs logical Operations to Produce a single binary Output. Understanding through the Different Combinations of gates is important for the Designer to produce the desired functionality in digital circuits. By Understand
5 min read
Implementing Any Circuit Using NAND Gate Only
A universal gate is such a gate that we can implement any Boolean function, no matter how complex, using a circuit that consists of only that particular universal gate. The NAND & NOR gates are the most commonly encountered universal gates in digital logic. In this article, we will take a look at how to convert any circuit into a circuit that c
6 min read
NAND Gate
Logic Gates are one of the most important topics in electronics, especially digital electronics. The concept of logic gates relies on the concept of Boolean functions. Logic gates take one or multiple binary values as input and return one binary value as output after doing the logical calculation on them. There are several kinds of GATEs available
7 min read
NOR Gate
Logic gates are one of the most important elements of digital electronics engineering. It works on the concept of Boolean function. There are several gates in digital electronics, NOR Gate is one of them, which also lies under the Universal Gate because it can be used to implement other basic logic gates like AND, OR, and NOT gate by connecting NOR
7 min read
three90RightbarBannerImg