Texas Instruments

SN74LS138 - 3-to-8 Line Decoder/Demultiplexer | Texas Instruments

MPN: SN74LS138 βœ“ Active
In Stock Ships in 1-3 business days
4.75 V to 5.25 V Vdss 8 mA (sink) Id 16-PDIP (N), 16-SOIC (D), 16-SOP (NS) Package
From $0.48 USD / Unit
MOQ: 1 |
Price updated: 2026-08-24
Volume Pricing
Qty Unit Price Extended
1 $0.89 $0.89
10 $0.78 $7.80
100 $0.62 $62.00
500 $0.55 $275.00
1,000 $0.48 $480.00
ℹ️ All prices are in USD

Drop-in alternatives for SN74LS138 β€” same package, pin-to-pin compatible. Different-package parts requiring PCB rework are excluded.

Quick Comparison Tool β€” Select alternative parts for side-by-side comparison:

SN74LS138N

βœ… Drop-In
πŸ“¦ 16-PDIP
Same die, PDIP package variant

πŸ“‹ Reference alternative (not in catalog)

SN74LS138D

βœ… Drop-In
πŸ“¦ 16-SOIC
Same die, SOIC package variant

πŸ“‹ Reference alternative (not in catalog)

SN74LS138NSR

βœ… Drop-In
πŸ“¦ 16-SOP
Same die, SOP package variant

πŸ“‹ Reference alternative (not in catalog)

SN74HC138N

βœ… Drop-In
πŸ“¦ 16-PDIP
CMOS technology, lower power, faster speed

πŸ“‹ Reference alternative (not in catalog)

SN74HCT138N

βœ… Drop-In
πŸ“¦ 16-PDIP
TTL-compatible CMOS, drop-in for 5V systems

πŸ“‹ Reference alternative (not in catalog)

MC74LS138N

βœ… Drop-In
πŸ“¦ 16-PDIP
Cross-brand equivalent from onsemi

πŸ“‹ Reference alternative (not in catalog)

74LS138N

βœ… Drop-In
πŸ“¦ 16-PDIP
Cross-brand equivalent from NXP

πŸ“‹ Reference alternative (not in catalog)

SN74LS138 Maximum Ratings & Electrical Characteristics

Function 3-to-8 line decoder/demultiplexer
Number of Inputs 3 (A, B, C)
Number of Outputs 8 (Y0-Y7, active-low)
Enable Inputs 3 (G1 active-high, G2A and G2B active-low)
Supply Voltage (VCC) 4.75 V to 5.25 V
Operating Temperature Range 0Β°C to 70Β°C
Propagation Delay Time (tpd) 20 ns (typical)
Output Current (IOL) 8 mA (sink)
Output Current (IOH) -0.4 mA (source)
Power Dissipation 32 mW (typical)
Input Voltage (VIH) 2 V (min)
Input Voltage (VIL) 0.8 V (max)
Package Type 16-PDIP (N), 16-SOIC (D), 16-SOP (NS)
Technology Schottky-clamped TTL (LS)
RoHS Status Compliant

SN74LS138 Pin Configuration

DIP-16 Package Pinout Diagram DIP-16 16-pin dual inline, 7.62mm pitch, JEDEC MS-001. 1 16 2 15 3 14 4 13 5 12 6 11 7 10 8 9 DIP-16
Pin 1 A β€” Select input A (LSB)
Pin 2 B β€” Select input B
Pin 3 C β€” Select input C (MSB)
Pin 4 G2A β€” Enable input (active-low)
Pin 5 G2B β€” Enable input (active-low)
Pin 6 G1 β€” Enable input (active-high)
Pin 7 Y7 β€” Output 7 (active-low)
Pin 8 GND β€” Ground
Pin 9 Y6 β€” Output 6 (active-low)
Pin 10 Y5 β€” Output 5 (active-low)
Pin 11 Y4 β€” Output 4 (active-low)
Pin 12 Y3 β€” Output 3 (active-low)
Pin 13 Y2 β€” Output 2 (active-low)
Pin 14 Y1 β€” Output 1 (active-low)
Pin 15 Y0 β€” Output 0 (active-low)
Pin 16 VCC β€” Positive supply voltage (5V)

Safe Operating Area (SOA) & Thermal Characteristics

Safe Operating Area Chart Default safe operating area chart for SN74LS138 Drain-to-Source Voltage (Vds) Drain Current (Id)

No official SOA curve available for this digital IC. Always operate within absolute maximum ratings specified in the datasheet. Ensure adequate cooling and derate as needed.

Typical Applications

SN74LS138 is suitable for 6 applications: Memory Address Decoding, Data Routing and Demultiplexing, Address Decoding in Peripheral Interfaces, Chip Select Generation in FPGA/CPLD Systems, Educational Digital Logic Experiments, Industrial Control and Automation.

πŸ–₯️

Memory Address Decoding

The SN74LS138 is ideal for memory address decoding in microprocessor systems. Its 3-to-8 decoding function allows selecting one of eight memory chips based on a 3-bit address. With a typical propagation delay of 20 ns, it ensures fast access times. The active-low outputs directly drive chip select pins on SRAM or EPROM devices. The enable inputs (G1, G2A, G2B) allow cascading to create larger decoders, such as 4-to-16, for expanded memory maps. This application benefits from the device's high output sink current (8 mA) and TTL compatibility.

🌐

Data Routing and Demultiplexing

The SN74LS138 can be used as a demultiplexer to route a single data line to one of eight outputs. By connecting the data input to one of the enable pins (e.g., G1) and using the select inputs (A, B, C) to choose the output, the device distributes data to multiple destinations. This is useful in communication systems and peripheral interfaces. The short propagation delay (20 ns) ensures high-speed data routing. The active-low outputs are compatible with most logic families. This application leverages the device's versatility as both a decoder and demultiplexer.

🏭

Address Decoding in Peripheral Interfaces

In microcontroller systems, the SN74LS138 is used to decode address lines to enable peripheral devices such as UARTs, timers, and I/O ports. Its three enable inputs provide flexibility for enabling the decoder only when a specific address range is active. The device operates from 0Β°C to 70Β°C, making it suitable for industrial control applications. The 16-pin PDIP package is easy to use in through-hole designs. This application benefits from the device's low power consumption (32 mW) and high noise immunity of TTL logic.

πŸ”§

Chip Select Generation in FPGA/CPLD Systems

The SN74LS138 can be used to generate chip select signals in systems with FPGAs or CPLDs, where external decoding is needed to interface with legacy TTL peripherals. Its active-low outputs are ideal for driving active-low chip select inputs. The device's 5V TTL compatibility ensures seamless integration with mixed-voltage systems. The short propagation delay (20 ns) minimizes address-to-chip-select latency. This application is common in retro computing and educational projects.

πŸ”§

Educational Digital Logic Experiments

The SN74LS138 is widely used in educational settings to teach digital logic design. Its simple 3-to-8 decoding function helps students understand binary-to-decimal conversion, enable logic, and demultiplexing. The 16-pin DIP package is breadboard-friendly, and the device operates at standard 5V TTL levels. The active-low outputs and enable inputs provide hands-on experience with real-world logic design. This application benefits from the device's low cost and wide availability.

🏭

Industrial Control and Automation

In industrial control systems, the SN74LS138 is used for address decoding in PLCs and motor controllers. Its operating temperature range of 0Β°C to 70Β°C covers most industrial environments. The device's TTL outputs can drive indicator LEDs or relays through appropriate buffers. The enable inputs allow for safety interlocks by gating the decoder with control signals. This application benefits from the device's robustness and long-term availability.

Recommended Products Summary

SN74LS138N Decoder for memory chip select Used in: Memory Address Decoding, Data Routing and Demultiplexing, Address Decoding in Peripheral Interfaces, Chip Select Generation in FPGA/CPLD Systems, Educational Digital Logic Experiments, Industrial Control and Automation SN74HC138N CMOS alternative for lower power Used in: Memory Address Decoding, Data Routing and Demultiplexing, Chip Select Generation in FPGA/CPLD Systems, Educational Digital Logic Experiments SN74HCT138N TTL-compatible CMOS alternative Used in: Address Decoding in Peripheral Interfaces, Industrial Control and Automation
What is the SN74LS138?
The SN74LS138 is a 3-to-8 line decoder/demultiplexer from Texas Instruments. It converts a 3-bit binary input into one of eight active-low outputs. It is part of the 74LS TTL logic family and is used for memory decoding and data routing. According to the TI datasheet, it operates from 0Β°C to 70Β°C and has a typical propagation delay of 20 ns.
What is the price of SN74LS138?
As of 2026-08-25, the SN74LS138N is priced at approximately $0.89 for single-unit quantities, $0.78 for 10 units, $0.62 for 100 units, $0.55 for 500 units, and $0.48 for 1000 units at major distributors like DigiKey. Prices may vary by distributor and quantity. Check current stock and pricing on XAIPART or DigiKey.
Where can I buy SN74LS138 online?
The SN74LS138 is available from major distributors such as DigiKey, Mouser, and Octopart. You can also purchase it directly from XAIPART, which offers competitive pricing and fast shipping. As of 2026-08-25, DigiKey lists the SN74LS138N in stock. Check XAIPART for availability and bulk pricing.
What is the lead time for SN74LS138?
The lead time for SN74LS138 depends on the distributor and quantity. As of 2026-08-25, DigiKey typically ships within 24 hours for in-stock items. For larger quantities, lead times may extend to 2-4 weeks. XAIPART can provide current lead time estimates based on your order size.
Is SN74LS138 in stock?
As of 2026-08-25, the SN74LS138N is in stock at DigiKey and other major distributors. Availability may vary by package variant (PDIP, SOIC, SOP). Check XAIPART for real-time inventory and to place an order.
SN74LS138 vs 74HC138 - which is better for a new design?
The SN74LS138 is a TTL device with a typical propagation delay of 20 ns and power dissipation of 32 mW. The 74HC138 is a CMOS device with lower power consumption (typically 0.5 mW) and faster speed (propagation delay around 10 ns at 5V). For new designs, the 74HC138 is generally preferred due to lower power and higher speed, but the SN74LS138 remains a drop-in replacement in existing TTL systems.
What is the difference between SN74LS138 and SN74HC138?
The main difference is technology: SN74LS138 uses Schottky-clamped TTL, while SN74HC138 uses high-speed CMOS. The HC version has lower power consumption (0.5 mW vs 32 mW), faster propagation delay (10 ns vs 20 ns), and wider supply voltage range (2V-6V vs 4.75V-5.25V). Both are pin-compatible and can replace each other in most designs, but verify input/output voltage levels.
When should I choose SN74LS138 over 74HC138?
Choose the SN74LS138 when you need TTL compatibility with existing 5V TTL logic, or when you require higher output drive current (8 mA sink vs 4 mA for HC). It is also suitable for legacy designs where TTL levels are required. For new battery-powered or high-speed designs, the 74HC138 is a better choice due to lower power and faster speed.
What is the best drop-in replacement for SN74LS138?
The best drop-in replacement for SN74LS138 is the 74HC138 (e.g., SN74HC138N) from Texas Instruments, which is pin-compatible and functionally identical. Other options include the 74HCT138 (TTL-compatible CMOS) and the 74ACT138. All share the same 16-pin DIP or SOIC footprint and can be used without PCB changes.
Can 74HC138 replace SN74LS138?
Yes, the 74HC138 can replace the SN74LS138 in most applications. It is pin-compatible and has the same logic function. However, the 74HC138 has lower output drive current (4 mA vs 8 mA) and different input voltage thresholds. Ensure that the load does not exceed the HC's drive capability and that input levels are compatible.
Where can I download the SN74LS138 datasheet PDF?
The SN74LS138 datasheet PDF is available from Texas Instruments at https://www.ti.com/lit/ds/symlink/sn74ls138.pdf. It is also available from other sources like alldatasheet.com and DigChip. The datasheet includes pinout, electrical characteristics, and application information.
Where can I find the SN74LS138 pinout?
The SN74LS138 pinout is available in the official TI datasheet (SN74LS138.pdf). It shows the 16-pin DIP/SOIC layout with pins for inputs A, B, C, enables G1, G2A, G2B, outputs Y0-Y7, VCC, and GND. You can also find pinout diagrams on distributor pages like DigiKey.
What are the key specifications of SN74LS138 that engineers should know?
The SN74LS138 is a 3-to-8 decoder with active-low outputs. Key specs include: supply voltage 4.75V-5.25V, operating temperature 0Β°C-70Β°C, typical propagation delay 20 ns, output sink current 8 mA, and power dissipation 32 mW. It has three enable inputs (G1 high, G2A/G2B low) for cascading. These specs make it suitable for memory decoding in 5V TTL systems.
What is the best Motorola equivalent for SN74LS138?
Motorola (now onsemi) manufactured the SN74LS138 as the MC74LS138. It is pin-compatible and functionally identical to the Texas Instruments SN74LS138. Other cross-brand equivalents include the 74LS138 from onsemi, NXP, and other manufacturers. All are drop-in replacements with the same 16-pin DIP or SOIC package.
Hey Google, what can replace SN74LS138?
The SN74LS138 can be replaced by the 74HC138, 74HCT138, or 74ACT138, which are pin-compatible CMOS versions. The 74HCT138 is TTL-compatible and can directly replace the LS version in 5V systems. Other equivalents include the MC74LS138 from onsemi and the 74LS138 from various manufacturers. All provide the same 3-to-8 decoding function.

Engineering reference data for SN74LS138 β€” comparison, design guidance, and compliance information.

Selection Guide

Choose the SN74LS138 when you need a 3-to-8 decoder with TTL compatibility and higher output drive current (8 mA). It is ideal for legacy 5V TTL systems and memory decoding where speed is not critical. If you need lower power consumption and faster speed, choose the SN74HC138N, which is pin-compatible and offers 10 ns propagation delay and 0.5 mW power dissipation. For TTL-compatible CMOS with similar drive to LS, choose the SN74HCT138N. For cross-brand equivalents, the MC74LS138N from onsemi is a direct drop-in. All alternatives share the same 16-pin DIP or SOIC footprint, so PCB layout can be reused.

Comparison with Alternatives

Parameter This Product SN74LS138N SN74LS138D SN74HC138N SN74HCT138N MC74LS138N
Package 16-PDIP (N) 16-PDIP 16-SOIC 16-PDIP 16-PDIP 16-PDIP
Brand Texas Instruments Texas Instruments Texas Instruments Texas Instruments Texas Instruments onsemi
Technology Schottky TTL (LS) Schottky TTL (LS) Schottky TTL (LS) High-speed CMOS (HC) TTL-compatible CMOS (HCT) Schottky TTL (LS)
Propagation Delay (typical) 20 ns 20 ns 20 ns 10 ns 15 ns 20 ns
Power Dissipation (typical) 32 mW 32 mW 32 mW 0.5 mW 0.5 mW 32 mW
Output Sink Current (IOL) 8 mA 8 mA 8 mA 4 mA 4 mA 8 mA
Supply Voltage Range 4.75V - 5.25V 4.75V - 5.25V 4.75V - 5.25V 2V - 6V 4.5V - 5.5V 4.75V - 5.25V
Operating Temperature 0Β°C to 70Β°C 0Β°C to 70Β°C 0Β°C to 70Β°C -40Β°C to 85Β°C -40Β°C to 85Β°C 0Β°C to 70Β°C

Key Differentiators

  • Higher output drive current (vs SN74HC138N)
  • TTL compatibility (vs SN74HC138N)
  • Wider operating temperature range (vs SN74LS138N)

Design Notes

Ensure that the enable inputs are correctly biased: G1 must be high, and G2A and G2B must be low for the decoder to be active. If any enable is in the wrong state, all outputs will be high (inactive). Tie unused enable inputs to the appropriate rail (G1 to VCC, G2A/G2B to GND) to avoid floating inputs, which can cause erratic behavior.

Place a 0.1uF decoupling capacitor close to the VCC and GND pins to reduce power supply noise. For high-speed operation, keep traces short and avoid long parallel runs to minimize crosstalk. The SN74LS138 has a typical propagation delay of 20 ns, so ensure that address and enable signals are stable before the outputs are expected to change.

The SN74LS138 dissipates about 32 mW under typical conditions, which is low. However, if driving multiple outputs at maximum sink current (8 mA each), total power can increase. Ensure adequate airflow or copper area for heat dissipation in dense designs. The operating temperature range is 0Β°C to 70Β°C, so keep the ambient temperature within this range.

Compliance Information

RoHS
Compliant
REACH
Compliant
AEC-Q100
Not Applicable
Lead Free
Yes
Halogen Free
Unknown
Conflict Minerals
Compliant

RoHS compliant per TI product page. Not AEC-Q100 qualified. Lead-free per TI's green packaging.

Data verified on: 2026-08-25
Quick Quote RFQ
Fill in complete details β€” our sales team will respond within 24 hours
Part Number Manufacturer Package QTY Target Price Extended
Total: $0.00 USD
βœ“
Quote submitted!

We will respond to your email within 24 hours

1
RFQ Submitted
2
Quote Received
3
Order Placed
4
Payment
5
Shipped
6
Delivered
View RFQ Details