XOR Gate

An exclusive-OR gate outputs 1 when its inputs are different and 0 when they're the same — binary addition without the carry. The 74HC86 is the canonical CMOS quad XOR; cascaded XORs build adders, parity generators, and CRC checkers.

Inside the XOR is a small network of NAND or AND-OR gates: at the algebra level, A⊕B = (A·¯B) + (¯A·B). In CMOS standard cells, an XOR is typically built from a transmission-gate multiplexer that selects the input or its complement based on the other input — only 6 transistors instead of the 12 a NAND-based version would need.

In plain terms

Two friends who can never agree on a restaurant: dinner only happens when one wants pizza and the other wants sushi. If both pick the same place, the night collapses.

Why designers use it

Best for

Key specifications

When not to use it

Common mistakes

Where you will find it

A short history

An XOR gate is a digital logic gate with two inputs that outputs true only when the inputs differ, that is when exactly one input is true; if both inputs match, the output is false. This behavior makes XOR useful for binary addition, producing the sum bit while an AND gate produces the carry, and for generating parity bits in digital data.

Good to know

Related