NAND gate
Input  Output  
A  B  A NAND B 
0  0  1 
0  1  1 
1  0  1 
1  1  0 
In digital electronics, a NAND gate (NOTAND) is a logic gate which produces an output which is false only if all its inputs are true; thus its output is complement to that of an AND gate. A LOW (0) output results only if all the inputs to the gate are HIGH (1); if any input is LOW (0), a HIGH (1) output results. A NAND gate is made using transistors and junction diodes. By De Morgan's laws, a twoinput NAND gate's logic may be expressed as AB=A+B, making a NAND gate equivalent to inverters followed by an OR gate.
The NAND gate is significant because any boolean function can be implemented by using a combination of NAND gates. This property is called functional completeness. It shares this property with the NOR gate. Digital systems employing certain logic circuits take advantage of NAND's functional completeness.
The function NAND(a_{1}, a_{2}, ..., a_{n}) is logically equivalent to NOT(a_{1} AND a_{2} AND ... AND a_{n}).
One way of expressing A NAND B is , where the symbol signifies AND and the bar signifies the negation of the expression under it: in essence, simply .
NAND gates with two or more inputs are available as integrated circuits in transistortransistor logic, CMOS, and other logic families.
Symbols
There are three symbols for NAND gates: the MIL/ ANSI symbol, the IEC symbol and the deprecated DIN symbol sometimes found on old schematics. For more information see logic gate symbols. The ANSI symbol for the NAND gate is a standard AND gate with an inversion bubble connected.
MIL/ANSI Symbol  IEC Symbol  DIN Symbol 
Hardware description and pinout
NAND gates are basic logic gates, and as such they are recognised in TTL and CMOS ICs.
CMOS version
The standard, 4000 series, CMOS IC is the 4011, which includes four independent, twoinput, NAND gates.
Availability
These devices are available from most semiconductor manufacturers such as Fairchild Semiconductor, Philips or Texas Instruments. These are usually available in both throughhole DIL and SOIC format. Datasheets are readily available in most datasheet databases.
The standard 2, 3, 4 and 8input NAND gates are available:

CMOS
 4011: Quad 2input NAND gate
 4023: Triple 3input NAND gate
 4012: Dual 4input NAND gate
 4068: Mono 8input NAND gate

TTL
 7400: Quad 2input NAND gate
 7410: Triple 3input NAND gate
 7420: Dual 4input NAND gate
 7430: Mono 8input NAND gate
Implementations
Functional completeness
The NAND gate has the property of functional completeness, which it shares with the NOR gate. That is, any other logic function (AND, OR, etc.) can be implemented using only NAND gates.^{ [1]} An entire processor can be created using NAND gates alone. In TTL ICs using multipleemitter transistors, it also requires fewer transistors than a NOR gate.
As NOR gates are also functionally complete, if no specific NAND gates are available, one can be made from NOR gates using NOR logic.^{ [1]}
Desired gate  NOR Construction 

See also
 Sheffer stroke
 AND gate
 OR gate
 NOT gate
 NOR gate
 XOR gate
 XNOR gate
 NOR logic
 Boolean algebra
 Flash memory
References
External links
 TTL NAND and AND gates – All About Circuits
Wikimedia Commons has media related to NAND gates. 