NOT Gate Explained: Inverter Truth Table and Demo
A NOT gate reverses one binary input: 0 becomes 1 and 1 becomes 0. Toggle the input in the mini-demo and inspect its truth table.
How a NOT gate works
A NOT gate has one input and one output. It returns the opposite binary value: when A is 0, Y is 1; when A is 1, Y is 0. For that reason, the NOT gate is also called an inverter. Its Boolean expression is Y = ¬A, where the small negation mark means “not A”. Some textbooks write the same expression with a bar over A or an apostrophe after the variable.
Because there is only one input, the complete truth table has two rows. Negation is a basic operation in Boolean logic and appears inside larger expressions as well as in standalone gates. An inverted signal is not delayed or remembered in this ideal logic model; it simply takes the opposite value of the current input.
Using inverters in logic circuits
A NOT gate lets a circuit use the complement of a signal. A two-to-one multiplexer, for example, needs both a selector S and its inverse ¬S to choose between two data inputs. Inverters are also used to form NAND and NOR behavior from AND and OR logic, and to express conditions such as “the switch is not pressed”.
Toggle A in the live demo to watch the output invert immediately. In the logic gate simulator, connect an input pad to a NOT gate and then to an output pad; the output should always disagree with the input. This one-gate experiment is a useful check before adding inverted signals to a decoder, multiplexer, or other circuit.
NOT truth table
Boolean expression: Y = ¬A
| A | Y |
|---|---|
| 0 | 1 |
| 1 | 0 |
Use the interactive controls on this page to toggle the inputs and see the output change.
Frequently asked questions
What is another name for a NOT gate?
A NOT gate is also called an inverter because it changes 0 to 1 and 1 to 0.
How many inputs does a NOT gate have?
A standard NOT gate has one input and one output. Its output is the complement of its input.