A NAND gate, also known as a Negated AND gate, does the function of the AND gate and then negates it. This means that if the result was one it would change it to zero and vice versa. A NAND gate also has two or more inputs but only a single output. This negated function is done on the AND gate by putting a small circle at the end of it. As you can see to the right, the symbol is identical to the AND gate but with a little circle.
A NAND gate is different than the rest because once you can create a NAND gate you can create any other kind of gate using only NAND gates.
The Boolean equation of the logic gate is:
^{*The line above the A*B represents a "not" or a negation}
Based on this equation we can find out all possible results of different outputs. This gate can have two or more inputs. Below is the truth table that shows the outputs for all the different input combinations for a twoinput NAND gate.
The truth table and Venn diagram below represent the different inputs and outputs of the gate. For more information on truth tables and Venn diagrams, click here.
Truth Table: NAND Gate  2 Inputs 
Input 
Output 
0 
0 
1 
0 
1 
1 
1 
0 
1 
1 
1 
0 


Below, we have provided GIF animations to represent the function of the gate.


NAND Gate: Input = 00

NAND Gate: Input = 01




NAND Gate: Input = 10

NAND Gate: Input = 11

Application
A NAND gate can be used in a variety of different applications. One example of a NAND gate in use is in a car door alarm. The car door alarm will only signal when one or both doors are open. For example if any door is open (0) then the result will be one since anything multiplied by 0 is 0 and the gate is negated. Only when both doors are closed (1 and 1) will the alarm turn off to 0.