Computing Library › Classical Logic Gates
Classical Logic Gates

Logic Gate Symbols

A reference to the standard distinctive-shape symbols for the basic gates and the bubble convention that ties them together.

Distinctive shapes

Each basic gate has a fixed silhouette that identifies it at a glance. Learning these shapes is the first step to reading any schematic without a legend.

Kronos motion — classical

The bubble convention

A small circle, the bubble, always means inversion. It converts a gate into its complemented form: an AND with an output bubble is a NAND, an OR with one is a NOR, a triangle with one is a NOT, and an XOR with one is an XNOR. Bubbles on inputs mean the gate responds to a 0 on that line.

Symbol-to-function table

SymbolBase shapeBubbleFunction
ANDD-shapenoconjunction
NANDD-shapeoutputnot-and
ORcurvednodisjunction
NORcurvedoutputnot-or
NOTtriangleoutputcomplement

Two symbol standards

The distinctive shapes above are the traditional style. A rectangular standard also exists, drawing every gate as a box with a qualifying symbol inside, such as an ampersand for AND. Both convey the same functions; distinctive shapes remain the most common in practice.

De Morgan equivalents

Because of De Morgan's laws, one gate has two valid symbols. A NAND may be drawn as an AND with an output bubble or as an OR with two input bubbles. Choosing the form that matches the active levels of the signals makes a schematic far easier to read.