drag to rotate · scroll or pinch to zoom · double-click to reset
Back to Home

XOR Gate

Outputs HIGH when its inputs are different.

An XOR (Exclusive OR) gate is a digital logic gate that produces a HIGH output when its inputs are different.

It is commonly used in adders, parity circuits, comparators, error detection, and other digital logic applications.

Engineering Intuition

XOR means 'one or the other, but not both.' With two inputs, the output is HIGH only when exactly one input is HIGH.

Where You'll Use It

Half adders
Full adders
Parity generation
Parity checking
Digital comparators
Error detection

Specifications

Logic FunctionExclusive OR
Inputs2
Output1
Typical IC74LS86 / 74HC86

Practical Tips

  • The output is HIGH only when exactly one input is HIGH.
  • Connect the IC's VCC and GND pins before using the gate.
  • Do not leave unused logic inputs floating.
  • Use a truth table to verify the expected output.

Common Mistakes

  • Confusing XOR with OR.
  • Leaving unused IC inputs floating.
  • Forgetting to connect VCC and GND.
  • Expecting the output to remain HIGH when both inputs are HIGH.