74LS86 Quad 2-input XOR gate
The 74LS86 holds four independent 2-input XOR gates. Each output is high when its two inputs differ.
74LS86 pinout
Top view of the 14-pin DIP package. Pin 1 is at the bottom left, beside the notch, and the numbers run anticlockwise. Power is on pin 14 (VCC, +5 V) and pin 7 (GND).
| Pin | Name | Type | What it is |
|---|---|---|---|
| 1 | 1A | Input | Input of gate 1 |
| 2 | 1B | Input | Input of gate 1 |
| 3 | 1Y | Output | Totem-pole output |
| 4 | 2A | Input | Input of gate 2 |
| 5 | 2B | Input | Input of gate 2 |
| 6 | 2Y | Output | Totem-pole output |
| 7 | GND | Ground | 0 V |
| 8 | 3Y | Output | Totem-pole output |
| 9 | 3A | Input | Input of gate 3 |
| 10 | 3B | Input | Input of gate 3 |
| 11 | 4Y | Output | Totem-pole output |
| 12 | 4A | Input | Input of gate 4 |
| 13 | 4B | Input | Input of gate 4 |
| 14 | VCC | Power | +5 V supply |
74LS86 truth table
| A | B | Y |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
What the 74LS86 is used for
- The sum bit of a half adder or full adder
- Parity generation and checking
- A controlled inverter: one input chooses whether the other is passed or complemented
- Comparing two bits for equality
Electrical summary
| Package | 14-pin DIP |
| Supply voltage | 5 V (4.75 V to 5.25 V) |
| Supply current, typical | 6.1 mA |
| Output type | Totem-pole — drives both high and low |
| Output current, low | sinks up to 8 mA |
| Output current, high | sources up to 0.4 mA |
| Input current, low | 0.4 mA out of each input held low |
| Fan-out | one output can drive about 20 LS inputs |
Typical figures for quick reference when planning a board. Check the manufacturer's datasheet for limits and timing before committing a design. The 74HC86 and 74HCT86 use the same pin numbers, with different electrical values.
Try the 74LS86 on a breadboard
The Breadboard Simulator has the 74LS86 in its parts library: seat it on a virtual breadboard, wire it, power the board and probe the pins before you build the real thing.