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”, which is why a NAND gate is drawn as an AND with a bubble, and a PMOS transistor is drawn with a bubble on the gate.

Image: NOT gate symbol, Public domain — inverter / NOT gate (ANSI/IEEE symbol).

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 mostly use the overbar (); the prime notation () shows up in older textbooks. Programming languages use ! (logical NOT) or ~ (bitwise NOT).