How to use the NOT Gate Simulator tool
- Pick 1 or 0 in the Input A list. This gate has only one input.
- Select Calculate to invert the input.
- Read the inverted bit in the Result box.
- Select Copy to copy it, or Clear to set Input A back to 1.
NOT gate truth table
A NOT gate, also called an inverter, has one input and one output. The output is always the complement of the input, which makes its truth table the shortest in digital logic.
Input A starts at 1, so the first calculation on a fresh page returns 0.
A NOT A
0 1
1 0How the NOT gate simulator computes the inversion
The simulator reads the selected value as a one-bit binary number, applies a bitwise complement and keeps the lowest bit. Keeping one bit matters: in most programming languages the complement of the integer 1 is not 0 but a number with every higher bit set, such as -2 for a signed 32-bit value. A hardware inverter has no higher bits, and neither does this tool.
To invert a whole word such as 1100, use the Bitwise NOT Calculator, which flips every digit and keeps the original width.
Notation for logical NOT
The same operation is written in several ways depending on the field you work in.
- Boolean algebra: a bar over the variable, or a trailing prime mark.
- Formal logic: the negation sign in front of the variable.
- C-family code: the tilde operator for bitwise complement, which acts on every bit of an integer.
- Hardware description languages: the tilde in Verilog and the keyword not in VHDL.
- Schematics: a triangle with a small circle on its output. The circle alone, drawn on another gate's pin, also means inversion.
Inverters in real circuits
The CMOS inverter is the simplest logic gate to build: one PMOS transistor connects the output to the supply when the input is low, and one NMOS transistor connects it to ground when the input is high. The 7404 chip contains six independent inverters.
Two properties follow directly from the truth table. Inverting twice returns the original signal, so an even chain of inverters acts as a buffer or a delay line. An odd number of inverters connected in a loop can never settle and forms a ring oscillator, a common on-chip clock and test structure.
Frequently asked questions
What does a NOT gate do?
It outputs the opposite of its input. A 1 becomes 0 and a 0 becomes 1. It is the only basic logic gate with a single input.
Why does the NOT gate simulator have only one input?
Negation is a unary operation: it acts on one value. AND, OR, XOR and their inverted forms combine two or more signals, so their simulators on this site show an Input B list as well.
Is a NOT gate the same as an inverter?
Yes. Inverter is the usual name in circuit design and NOT gate is the usual name in logic textbooks. Both describe a device whose output is the complement of its input.
How do I build a NOT gate from NAND or NOR?
Tie both inputs of a two-input NAND or NOR gate to the same signal. With equal inputs, NAND computes NOT (A AND A) and NOR computes NOT (A OR A), and both reduce to NOT A.
What is the difference between logical NOT and bitwise NOT?
Logical NOT treats a value as true or false and returns a single truth value. Bitwise NOT flips every bit of an integer independently. On a one-bit input, as in this simulator, the two give the same answer.