The material biconditional or XNOR of two operands is true when they have the same value — both or both . It’s the complement of XOR.
| 0 | 0 | 1 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
In SOP form, — true when both are or both are .
XNOR is also called logical equality because it’s exactly in Boolean terms. That’s why an XNOR gate is the natural building block for an equality comparator: bit-wise XNOR each pair, then AND all the results — output is only when every bit matches.
Notation
In electronics: (or sometimes ). In formal logic: (the biconditional arrow).
The corresponding hardware element is the XNOR gate — drawn as an XOR with a bubble on the output.
In context
A useful identity that comes up in MUX-based logic:
If a 2-to-1 multiplexer has and as data inputs (with on the line and on the line) and as the select, the output is .
Like XOR, XNOR is commutative and associative. but — XNOR with inverts.