gately

XOR and XNOR Gates

Learn how exclusive logic routing behaves, the cornerstone of modern cryptography and arithmetic.

Exclusive Logic

Standard basic gates don’t care if both inputs are active at once. Exclusive logic gates are significantly stricter. They are highly specialized tools designed specifically to detect inequality or absolute equality.

The XOR Gate (Exclusive OR)

The XOR gate outputs 1 if the inputs are different from each other. Think of it as an inequality detector. It perfectly mimics adding 1 + 1 producing a 0. Test it with alternating switches!

Input AInput BXOR Output
000
011
101
110

The XNOR Gate (Equivalence Gate)

The XNOR gate outputs 1 if the inputs are precisely identical. While Gately doesn’t include a rigid singular “XNOR” primitive by default, you natively construct it by stringing an XOR directly into a NOT gate!

Notice that the output exclusively turns OFF when the inputs differ!

Input AInput BXNOR Output
001
010
100
111
Gately

A visual logic editor for building, simulating, and sharing digital circuits with ease. Drag, drop, and explore logic.

© 2026 Gately