74LS04 Hex inverter

The 74LS04 holds six independent inverters. Each output is the complement of its input.

74LS04 pinout

VCC1A6A1Y6Y2A5A2Y5Y3A4A3Y4YGND141132123114105968774LS04

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).

PinNameTypeWhat it is
11AInputInput of gate 1
21YOutputTotem-pole output
32AInputInput of gate 2
42YOutputTotem-pole output
53AInputInput of gate 3
63YOutputTotem-pole output
7GNDGround0 V
84YOutputTotem-pole output
94AInputInput of gate 4
105YOutputTotem-pole output
115AInputInput of gate 5
126YOutputTotem-pole output
136AInputInput of gate 6
14VCCPower+5 V supply

74LS04 truth table

Truth table for one inverter of the 74LS04
AY
01
10

What the 74LS04 is used for

  • Making A′ from A ahead of AND and OR gates
  • Buffering or squaring up a slow signal
  • Simple RC and crystal oscillators

Electrical summary

Package14-pin DIP
Supply voltage5 V (4.75 V to 5.25 V)
Supply current, typical2.4 mA
Output typeTotem-pole — drives both high and low
Output current, lowsinks up to 8 mA
Output current, highsources up to 0.4 mA
Input current, low0.4 mA out of each input held low
Fan-outone 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 74HC04 and 74HCT04 use the same pin numbers, with different electrical values.

Try the 74LS04 on a breadboard

The Breadboard Simulator has the 74LS04 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.

Related chips

Build it before you build it.

Seat real 74-series chips on a virtual breadboard, wire them and probe every pin.