MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › NAND and NOR equivalence and conversion
HomeModels
Table of contents

On this page

Electrical & Electronic Basics (600 articles)

Quick Reference

  • PLC & Programming
  • Electrical & Electronic Basics (monthly)(每月更新中)
  • Electrical Control & Drawings (monthly)(每月更新中)
  • Drives & Actuators (monthly)(每月更新中)
  • Sensors & Detection (monthly)(每月更新中)
  • Industrial Communication & Networks (monthly)(每月更新中)
  • HMI & Host Systems (monthly)(每月更新中)
  • Industrial Robots & Motion Control (monthly)(每月更新中)
  • Mechatronic System Integration (monthly)(每月更新中)
  • Fault Diagnosis & Standards (monthly)(每月更新中)

NAND and NOR equivalence and conversion

NAND and NOR include inversion, and De Morgan lets you convert between them. This page shows the equivalence and how to build all logic from one gate type.

1. How it works

De Morgan says not (A and B) equals not A or not B, and not (A or B) equals not A and not B. So a two input NAND Y equals not (A and B) equals not A or not B, realizable with NOR plus inversion; a NOR equals not A and not B, realizable with NAND plus inversion. Thus only NAND or only NOR builds any logic, handy for parts normalization.

2. Practice and pitfalls

With all NAND, tie the inputs to make an inverter, chain inverters for AND, and invert inputs for OR, giving AND OR NOT. The same works all NOR. These are universal gates. For repair, a spare NAND can stand in for a missing type, but watch the added delay in long chains and worse race hazards.

3. NAND NOR equivalence

FromNANDNOR
NOTNAND tiedNOR tied
ANDNAND then NOTtwo NOR
ORNOT then NANDNOR then NOT
De Morgannot AB = notA+notBnot(A+B)=notA notB
Universalall NANDall NOR
Caredelay stackspeed diff

4. Notes

NAND and NOR convert by De Morgan, and all NAND or all NOR builds any logic (universal gates). Expand and simplify before redrawing, watch stacked delay and unused inputs, and avoid mixing TTL speeds that break timing.

5. References

The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Logic equivalence per GB/T 4728 symbols; design to GB/T 5226.1 and IEC 60204-1. Always check the device datasheet and the product design file for ratings and derating.

6. Cautions

⚠️ Three common pitfalls:
① Drawing the bubble in the wrong place breaks the equivalence.
② Treating NAND as AND forgets inversion and flips logic.
③ Substituting several gates without counting delay mis-times sequential circuits.

Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.

Related reading

Related 3D models: Ready to build it? Download free 3D models & CAD drawings at MOULDL »
MOULDL · Electrical Knowledge Base · free self-study reference for electrical & automation engineers, 3D CAD models at MOULDL