NAND and NOR Gates as Universal Gates

Physics · Semiconductor Electronics : Materials, Devices And Simple Circuits · NEET

NAND and NOR are called universal gates because using ONLY NAND gates (or ONLY NOR gates) you can build every other gate: NOT, AND, OR, and even NAND/NOR themselves. Memory hook: "Universal = you can build the whole world of logic from just one brick." NAND = AND then NOT; NOR = OR then NOT.
NAND as a Universal GateNOT from NANDAA'both inputs = AAND from 2 NANDABA.B(A.B)' then inverted = A.BDe Morgan: (A.B)'=A'+B' , (A+B)'=A'.B'
One NAND gate with tied inputs acts as NOT; two NAND gates in series act as AND. Because NAND can build NOT, AND and OR, it is a universal gate (NOR works the same way).

Your doubts, answered

Why exactly are NAND and NOR called "universal" gates?

A gate is universal if you can build the three basic gates (NOT, AND, OR) using only copies of that one gate. Since NOT, AND and OR together can make ANY logic circuit, being able to build all three means you can build anything. NAND alone can do this, and NOR alone can do this. That is why both are called universal gates. AND, OR and NOT are NOT universal on their own because, for example, you cannot make a NOT gate from AND gates only.

How do I make a NOT gate from just one NAND gate?

Join both inputs of the NAND gate together and feed the same signal A into both. NAND output = (A . A)' = A'. When A = 0 you get 1, when A = 1 you get 0. That is exactly a NOT gate. The same trick works for NOR: tie both inputs together, output = (A + A)' = A'.

How do I get an AND gate from NAND gates?

AND = NOT of NAND. First NAND gives (A . B)'. Then pass that through a second NAND used as a NOT (both inputs tied). Final output = ((A.B)')' = A.B. So two NAND gates make one AND gate.

How do I get an OR gate from NAND gates?

Use De Morgan's law: A + B = (A' . B')'. Invert A with one NAND-as-NOT, invert B with another NAND-as-NOT, then feed A' and B' into a third NAND. Output = (A' . B')' = A + B. So three NAND gates make one OR gate.

What is the difference between NAND and AND?

AND gives output 1 only when BOTH inputs are 1. NAND is the exact opposite of AND: it gives 0 only when both inputs are 1, and 1 in every other case. In symbols, NAND = (A . B)'. The little bubble on the gate symbol means "NOT", so NAND is literally AND with a NOT stuck on the output.

In NEET circuit questions, how do I quickly find the equivalent gate?

Write the Boolean expression at the output, then simplify using De Morgan's laws: (A . B)' = A' + B' and (A + B)' = A' . B'. A very common NEET trap is: invert both inputs, then feed into a NOR. Output = (A' + B')' = A . B, which is an AND gate. If inputs are inverted then fed to a NAND, output = (A' . B')' = A + B, an OR gate. Learn these two patterns and most questions become one step.

⚠️ The NEET trap
Both inputs inverted and then fed into a NOR gate is a NOR gate.
Inverting both inputs before a NOR gives Y = (A' + B')' = A . B, which is an AND gate, not a NOR gate. Apply De Morgan's law before choosing the answer.
🧠 Bubble on inputs + bubble gate = the OPPOSITE base gate. NOR with inverted inputs flips to AND; NAND with inverted inputs flips to OR.

Real NEET questions

2023

In a circuit each input (A and B) is first passed through a NOT gate, and the two inverted signals are fed into a NOR gate to give output Y. The given circuit is equivalent to a single:

A · OR gate
B · AND gate
C · NOR gate
D · NAND gate
Solution: Step 1: After the inverters the two signals are A' and B'. Step 2: NOR of these = Y = (A' + B')'. Step 3: Apply De Morgan's law: (A' + B')' = (A')' . (B')' = A . B. Step 4: Y = A . B is the AND operation. So the circuit is equivalent to a single AND gate. Answer: B.
2024

Each input is inverted and then both inverted inputs are fed to a NOR gate to produce output Y. The output Y is similar to the output of a/an:

A · NOR gate
B · OR gate
C · AND gate
D · NAND gate
Solution: Step 1: Inverted inputs are A' and B'. Step 2: NOR output Y = (A' + B')'. Step 3: De Morgan: (A' + B')' = A . B. Step 4: Y = A . B, which is AND. Hence the output matches an AND gate. Answer: C.
2025

Two NOR gates each receive the same inputs A and B, and their outputs are fed into a final AND gate to give Y. The output Y is similar to the output of a/an ____ gate.

A · OR
B · NOR
C · AND
D · NAND
Solution: Step 1: Each NOR gate gives (A + B)'. Step 2: The AND gate combines two identical signals: Y = (A + B)' . (A + B)'. Step 3: For any logic value X, X . X = X, so Y = (A + B)'. Step 4: Y = (A + B)' is the NOR operation. Hence the output is that of a NOR gate. Answer: B.

Solved Semiconductor Electronics : Materials, Devices And Simple Circuits NEET PYQs

Try the real previous-year questions from this chapter — each with the answer and a full solution.

See all 34 Semiconductor Electronics : Materials, Devices And Simple Circuits NEET PYQs ›
Next concept: What Is a Semiconductor? Meaning and Simple ExplanationKeep learning — 2 minFeeling ready? Solve the Semiconductor Electronics : Materials, Devices And Simple Circuits NEET PYQs ›Or practice on your phone — get the free MedicNEET app ›

Frequently asked

Which gate is the universal gate, NAND or NOR?

Both NAND and NOR are universal gates. Each one alone can build NOT, AND and OR, and therefore any logic circuit. So the correct answer to "which is universal" is: both of them.

Why are AND, OR and NOT not universal gates?

Because no single one of them can build all three basic operations. For example, you cannot create a NOT (inversion) using only AND gates or only OR gates. You always need an inverter that they cannot supply, so they are not universal by themselves.

How many NAND gates are needed to make an OR gate?

Three NAND gates. Two are used as NOT gates to invert A and B, and the third NANDs the inverted inputs: (A' . B')' = A + B, which is OR.

How many NAND gates make an AND gate?

Two NAND gates. The first gives (A . B)', and the second (used as a NOT with both inputs tied) inverts it back to A . B.

What are the truth tables of NAND and NOR?

NAND: for inputs (00, 01, 10, 11) the output is 1, 1, 1, 0 (it is 0 only when both inputs are 1). NOR: for inputs (00, 01, 10, 11) the output is 1, 0, 0, 0 (it is 1 only when both inputs are 0).

Is XOR a universal gate?

No. XOR (exclusive OR) is not universal because you cannot build every gate from XOR alone; in particular you cannot make an AND or a constant using only XOR gates. Only NAND and NOR are universal.