The negation or NOT of a Boolean value flips it: becomes , and becomes . Negating a value gives its complement.

01
10

The corresponding hardware element is the NOT gate (inverter), drawn as a triangle with a small bubble at the output. The bubble itself stands for “invert” — that’s why a NAND gate is drawn as an AND with a bubble, and a PMOS transistor is drawn with a bubble on the gate.

Two negations cancel: . This is the involution law, and in circuits it means a NOT followed by a NOT is just a wire (electrically slower, but logically equivalent).

A negation interacts with AND/OR through De Morgan’s Laws — negating a product becomes a sum of negations, and vice versa.

Notation

Several conventions:

Modern engineering texts predominantly use the overbar (); the prime notation () is older and now mostly seen in older textbooks. Programming languages typically use ! (logical NOT) or ~ (bitwise NOT).