XNOR Gate

An XNOR gate is the complement of XOR: output is 1 when its inputs are the same value and 0 when they differ. The 74HC266 is the classic quad XNOR; XNOR is the building block of every digital comparator and equality test.

For a two-input XNOR, equal logic levels produce HIGH and different levels produce LOW. It is the logical inverse of XOR. Transistor count depends on the implementation and whether complementary inputs are already available; it is not a fixed property of the XNOR function.

In plain terms

Two synchronised metronomes: the indicator only lights when both ticks land at the same instant. Any drift between them, and the light goes out.

Why designers use it

Best for

Key specifications

When not to use it

Common mistakes

Where you will find it

A short history

A two-input XNOR gate outputs HIGH when its inputs match and LOW when they differ. It is the logical complement of a two-input XOR gate. That makes it useful for checking whether two logic signals have the same value.

Related