Parts

LM358 dual op-amp: pinout, single-supply limits, the LM358A and the LM324

By Bulan Sarkar

The LM358 is two op-amps in one 8-pin package. Pin 1 is the first output, pins 2 and 3 its inverting and non-inverting inputs, pin 4 is V− (ground on a single supply), pins 5 and 6 are the second amplifier's inputs, pin 7 its output and pin 8 is V+. The LM358A is the same part with tighter offset, and the LM324 is the quad, with its supply pins moved.

It was built for one supply: its inputs work down to the negative rail and its output gets within a few millivolts of it. The top 1.5 V of the supply is out of reach for both, and that limit decides most designs. Every figure here comes from TI's LM358 sheet (SLOS068AB, October 2024) and its LM324 sheet (SLOS066AE, September 2025).

Datasheet: Texas Instruments LMx58, LM2904 Industry-Standard Dual Operational Amplifiers (SLOS068AB) (PDF)Ask Datasheet Guru about the LM358

Advertisement

Pinout by package

LM358P DIP-8 · TI1=OUT1 2=IN1- 3=IN1+ 4=V- 5=IN2+ 6=IN2- 7=OUT2 8=V+
top view, notch upLM358P18OUT1V+27IN1-OUT236IN1+IN2-45V-IN2+

Top view, notch up: pin 1 is top left and the count runs down the left side, then up the right.

The SOIC (LM358DR, marked LM358) has the same pin order.

Source: Texas Instruments LMx58, LM2904 Industry-Standard Dual Operational Amplifiers (SLOS068AB), p. 3 (Figure 4-1, D, DDF, DGK, P, PS, PW and JG packages, top view, and Table 4-1 pin functions); Texas Instruments LMx58, LM2904 Industry-Standard Dual Operational Amplifiers (SLOS068AB), p. 39 (package option addendum: LM358P, PDIP (P) 8 pins, marking LM358P, 0 to 70 °C)

LM358AP DIP-8 · TI1=OUT1 2=IN1- 3=IN1+ 4=V- 5=IN2+ 6=IN2- 7=OUT2 8=V+
top view, notch upLM358AP18OUT1V+27IN1-OUT236IN1+IN2-45V-IN2+

Top view, notch up. Same pins as the LM358.

Source: Texas Instruments LMx58, LM2904 Industry-Standard Dual Operational Amplifiers (SLOS068AB), p. 3 (Figure 4-1 covers the LM358A); Texas Instruments LMx58, LM2904 Industry-Standard Dual Operational Amplifiers (SLOS068AB), p. 38 (package option addendum: LM358AP, PDIP (P) 8 pins, marking LM358AP, 0 to 70 °C)

LM324N DIP-14 · TI1=1OUT 2=1IN- 3=1IN+ 4=VCC+ 5=2IN+ 6=2IN- 7=2OUT 8=3OUT 9=3IN- 10=3IN+ 11=VCC- 12=4IN+ 13=4IN- 14=4OUT
top view, notch upLM324N1141OUT4OUT2131IN-4IN-3121IN+4IN+411VCC+VCC-5102IN+3IN+692IN-3IN-782OUT3OUT

Top view, notch up. VCC+ is pin 4 and VCC− is pin 11.

Pin 4 is the positive supply here but the negative supply on the LM358.

Source: Texas Instruments LMx24, LM2902 Quadruple Operational Amplifiers (SLOS066AE), p. 3 (Figure 5-1, D, DB, J, N, NS, PW and W packages, top view, and Table 5-1 pin functions); Texas Instruments LMx24, LM2902 Quadruple Operational Amplifiers (SLOS066AE), p. 35 (package option addendum: LM324N, PDIP (N) 14 pins, marking LM324N, 0 to 70 °C)

Which one do you have?

The 358 is the dual and the 324 the quad. An A after the number (LM358A) marks a part sorted for lower offset and bias current. A B (LM358B, LM358BA) is TI's newer die with a wider supply range and more bandwidth, covered under substitutes. The last letter is the package: P or N is the through-hole DIP, D the SOIC. An LM358P is the plain dual in an 8-pin DIP; the SOIC version is marked just LM358.

The LM2904 sits in the same datasheet with the same pins. It is rated for −40 to 125 °C but only 26 V of supply, so check the number before you fit one on a 30 V rail.

Absolute maximum ratings

TI allows 32 V across the LM358, or ±16 V on a split supply, and recommends 3 to 30 V for normal use. Either input may go from 0.3 V below V− to 32 V, which means an input can sit above V+ without harm, as long as it stays inside that range.

Absolute maximum and recommended ratings, TI SLOS068AB and SLOS066AE
ParameterLM358PDIP-8LM358APDIP-8LM324NDIP-14
Supply voltage, absolute maximum VS32 V (±16 V)32 V (±16 V)32 V
Supply voltage, recommended VS3 to 30 V3 to 30 V3 to 30 V
Input voltage, either input VI−0.3 to 32 V−0.3 to 32 V−0.3 to 32 V
Differential input voltage VID±32 V±32 V±32 V
Output short circuit to ground, one amplifierTA ≤ 25 °C, VS ≤ 15 Vunlimitedunlimitedunlimited
Thermal resistance, junction to air, DIP RθJA80.9 °C/W80.9 °C/W83.5 °C/W
Operating temperature TA0 to 70 °C0 to 70 °C0 to 70 °C
ESD, human-body model V(ESD)±500 V±500 V±500 V

The output may be shorted to ground indefinitely, but only one amplifier at a time, at 25 °C or below, on 15 V or less. TI adds that a short from the output to V+ can overheat and destroy the part. Its ESD rating is ±500 V (human-body model), a quarter of the LM358B's ±2000 V, so handle it on a grounded mat.

Input range, output swing and speed

At VS = 5 V and 25 °C unless marked (min/max unless marked typical)
ParameterLM358PDIP-8LM358APDIP-8LM324NDIP-14
Input offset voltage VOS25 °C3 typ, 7 mV max2 typ, 3 mV max3 typ, 7 mV max
Input bias current IB25 °C, flows out of the pin20 typ, 250 nA max15 typ, 100 nA max20 typ, 250 nA max
Input bias current, hot IB0 to 70 °C500 nA max200 nA max500 nA max
Common-mode input range VCM25 °C; 0 to 70 °CV− to V+ − 1.5 V; to V+ − 2 VV− to V+ − 1.5 V; to V+ − 2 V0 to VCC − 1.5 V; to VCC − 2 V
Output high, below V+VS = 5 V, RL ≥ 2 kΩ1.5 V max1.5 V max1.5 V max (VOH ≥ VCC − 1.5 V)
Output low, above V−RL ≤ 10 kΩ, 0 to 70 °C5 typ, 20 mV max5 typ, 20 mV max5 typ, 20 mV max
Open-loop gain AOLVS = 15 V, RL ≥ 2 kΩ25 min, 100 V/mV typ25 min, 100 V/mV typ25 min, 100 V/mV typ
Gain-bandwidth product GBW0.7 MHz typ0.7 MHz typnot in the LM324 table
Slew rate SRG = +10.3 V/µs typ0.3 V/µs typnot in the LM324 table
Output current, sourcingVS = 15 V, VO = 0 V20 min, 30 mA typ20 min, 30 typ, 60 mA max20 min, 30 typ, 60 mA max
Output current, sinking at 200 mVVO = 200 mV12 min, 30 µA typ12 min, 30 µA typ12 min, 30 µA typ
Supply current IQVS = 5 V, no load350 typ, 600 µA max per amplifier350 typ, 600 µA max per amplifier0.7 typ, 1.2 mA max, all four

The inputs work from V− up to 1.5 V below V+ at 25 °C, and up to 2 V below V+ over 0 to 70 °C. On 5 V that is 0 V to 3.5 V, or to 3 V when warm. The output swings from about 5 mV above ground (20 mV at most) up to 1.5 V below V+. So a 5 V LM358 has a working range of roughly 0 V to 3.5 V, not 0 V to 5 V.

LM3585 V, 25 °C50in 0 to 3.5 Vout 0 to 3.5 VLM3585 V, 0 to 70 °C50?in 0 to 3 Vhigh side not givenTL072C5 V50?in 4 to 5.1 Vout not givensupplyinput rangeoutput swing
Figure 1. Where the inputs and output may go on a single 5 V supply. The LM358 covers the bottom of the range; a TL072 on the same supply covers almost nothing.

It is slow: 0.7 MHz of gain-bandwidth and 0.3 V/µs of slew rate, both typical. Each amplifier draws about 350 µA, 600 µA at most. The input bias current flows out of the pins, up to 250 nA at 25 °C. The TL072 draws picoamps but cannot work near ground.

The output sources current well (20 mA minimum on 15 V) but sinks very little near ground: TI guarantees only 12 µA at 200 mV. If the load returns to V+ instead of to ground, the output will not pull it fully low.

What it is good for

  • Sensor amplifiers on a 5 V or 12 V board: the voltage across a shunt resistor, an LM35 output, anything that starts at 0 V.
  • Current sensing on the low side of a load, where the signal sits a few millivolts above ground.
  • Battery chargers and supply monitors that need a reference and a comparator-like stage from the same rail.
  • Slow active filters and buffers, below about 10 kHz.

It is a poor choice for audio above a few volts of swing, anything that must reach V+, and fast edges. For a comparator, use the LM393, a dual comparator, instead of an LM358 run open loop.

Worked example: a 0 to 300 mV sensor into a 3.3 V ADC

One half of an LM358 on a single 5 V supply, scaling a sensor that gives 0 to 300 mV so its full scale lands at 3.3 V, the top of a 3.3 V microcontroller's ADC.

1. Set the gain. 3.3 V / 300 mV = 11. With 100 kΩ from the output to the inverting input and 10 kΩ from there to 0 V, the gain is 1 + 100 kΩ / 10 kΩ = 11.

2. Check the input range. The input runs from 0 V to 300 mV. The LM358 accepts 0 V to 3.5 V at 25 °C and to 3 V when warm, so the whole sensor range fits with room to spare.

3. Check the top of the output. Full scale is 300 mV × 11 = 3.3 V. The output can reach 5 V − 1.5 V = 3.5 V, so there is 200 mV of margin. A gain of 12 would already clip.

4. Check the bottom. The output gets down to 20 mV at most, so inputs below 20 mV / 11 = 1.82 mV all read the same. For most sensors that is the first 0.6 % of the range.

5. Add up the DC errors. The 7 mV maximum offset becomes 77 mV at the output; an LM358A (3 mV) cuts that to 33 mV. The 250 nA bias current flowing through 100 kΩ adds up to 25 mV. Calibrate the zero in software if the reading has to be better than about 3 %.

6. Check speed. 0.7 MHz / 11 = 63.6 kHz of bandwidth, and a full-scale step takes 3.3 V / 0.3 V/µs = 11 µs. Temperature and pressure readings change far more slowly than that.

3 2 1 8 4 R1 100 kΩ R2 10 kΩ +5 V U1A LM358 sensor to ADC
Figure 2. The sensor amplifier on half an LM358 (pins 1, 2 and 3), drawn as ngspice checked it: 300 mV in gives 3.3 V out, gain 11, flat to 63.6 kHz. The second half (pins 5, 6, 7) is free for another channel.
0123450100200300400ceiling 3.5 V300 mV → 3.3 Vfloor 20 mV maxinput, mVV
Figure 3. Output against input for the stage. The sensor's full scale stops 200 mV short of the ceiling.
1 mV10 mV100 mVOutput floor20 mV max20 mVBias current250 nA × 100 kΩ25 mVOffset, LM358A3 mV × 1133 mVOffset, LM3587 mV × 1177 mVDC error at the + input, log scale
Figure 4. The DC errors at the output, worst case at 25 °C. The offset voltage is the largest; the A grade halves it.

Fit 100 nF from pin 8 to ground, close to the package. The non-inverting amplifier lesson derives the gain formula.

Worked example in numbers

Gain
11
Full scale out
3.3 V of 3.5 V
Smallest input read
1.82 mV
Bandwidth
63.6 kHz

LM358A: the same chip, sorted for offset

The LM358A uses the same pins and the same limits. TI sorts it for a 3 mV maximum offset against 7 mV, and a 100 nA maximum bias current against 250 nA. In the example above that takes the worst-case output error from 102 mV to 43 mV. Buy it for any DC-coupled stage with gain.

LM324: the quad, with the supplies moved

The LM324 puts four of the same amplifiers in a 14-pin DIP, with the same input range, output swing, offset and bias current in TI's tables. The trap is the supply: VCC+ is pin 4 and VCC− (ground) is pin 11. On the LM358, pin 4 is ground.

LM358 (DIP-8)18V+273645V−LM324 (DIP-14)114213312411V+V−5106978top view, notch up
Figure 5. Pin 4 is ground on the LM358 and the positive supply on the LM324.

The whole LM324 draws 0.7 mA typical and 1.2 mA at most on 5 V, so about 175 µA per amplifier, against the 350 µA TI quotes for each half of an LM358.

Advertisement

Tips and checks

  • Keep every input at least 1.5 V below V+, or 2 V if the board gets warm. On 5 V that means nothing above 3 V.
  • Plan the output to stop at V+ − 1.5 V. If you need a 0 to 5 V output, run the LM358 from a higher rail, such as 9 V or 12 V.
  • An unused half still needs a defined state. Tie its non-inverting input to a voltage inside the input range and wire it as a follower.
  • The bias current flows out of the inputs. A high-value resistor from an input to ground lifts that input: 250 nA through 1 MΩ is 0.25 V.
  • Bypass pin 8 with 100 nF at the package. On the LM324 the bypass goes on pin 4.

Substitutes

The LM358A and LM358B drop into the same socket. The LM358B is the one to buy for new work: wider supply, more bandwidth and a lower offset. The LM2904 fits too, if the supply stays under 26 V.

Pin numbers as on the DIP-8 or SOIC-8 top view, notch or dot at pin 1
PartPinsVerdict
LM358AOUT1 … 4 V−, 8 V+The same amplifier sorted for offset and bias current: 3 mV and 100 nA maximum against 7 mV and 250 nA. Drop-in wherever a DC error matters.Texas Instruments LMx58, LM2904 Industry-Standard Dual Operational Amplifiers (SLOS068AB), p. 3; Texas Instruments LMx58, LM2904 Industry-Standard Dual Operational Amplifiers (SLOS068AB), p. 10
LM358B, LM358BAOUT1 … 4 V−, 8 V+TI’s newer die in the same pinout: 3 to 36 V, 1.2 MHz, 300 µA per amplifier, 3 mV (B) or 2 mV (BA) maximum offset, −40 to 85 °C. The better buy for new work.Texas Instruments LMx58, LM2904 Industry-Standard Dual Operational Amplifiers (SLOS068AB), p. 1; Texas Instruments LMx58, LM2904 Industry-Standard Dual Operational Amplifiers (SLOS068AB), p. 5
LM2904OUT1 … 4 V−, 8 V+The same dual for −40 to 125 °C, in the same sheet and pinout, but with a lower supply limit: 26 V absolute maximum. Fine on 5 V or 12 V; not on 30 V.Texas Instruments LMx58, LM2904 Industry-Standard Dual Operational Amplifiers (SLOS068AB), p. 4; Texas Instruments LMx58, LM2904 Industry-Standard Dual Operational Amplifiers (SLOS068AB), p. 5

Bench check: is it working?

  1. Power the chip from 5 V and wire one half as a follower (output to pin 2). Put 1 V on pin 3: the output should read 1 V within the 7 mV offset.
  2. Turn the input down to 0 V. The output should fall to a few millivolts, 20 mV at most. An output stuck high points to a damaged part or a floating input.
  3. Rewire that half as the gain-of-11 stage above and raise the input past 320 mV. The output should stop rising near 3.5 V and stay there; that is the 1.5 V headroom, not a fault.
  4. Measure the supply current with both halves wired as followers: about 0.7 mA, 1.2 mA at most. Much more points to oscillation or a damaged part.

What we'd do

Use the LM358 for slow signals that start at 0 V on a single supply, and size the gain so the output tops out at least 0.2 V below V+ − 1.5 V. Buy the LM358A or LM358B for any stage with gain, and pick a rail-to-rail op-amp when the output has to reach the supply.

Questions people ask

What is the LM358 pinout?

Pin 1 output A, 2 inverting input A, 3 non-inverting input A, 4 V− or ground, 5 non-inverting input B, 6 inverting input B, 7 output B, 8 V+. The DIP and SOIC use the same order.

Can an LM358 run from 5 V?

Yes, it was made for it. TI recommends 3 to 30 V. On 5 V the inputs work from 0 V to 3.5 V and the output swings from a few millivolts to about 3.5 V.

Is the LM358 rail-to-rail?

Only at the bottom. The inputs include ground and the output gets within 20 mV of it, but both stop 1.5 V below V+.

What is the difference between the LM358 and the LM324?

Two amplifiers against four. The electrical figures are the same; the pins are not. The LM324 has V+ on pin 4, where the LM358 has ground.

Can I use an LM358 as a comparator?

For slow signals, yes, but its 0.3 V/µs slew rate makes the edges slow, and it is not specified for that use. The LM393 is the matching dual comparator.

Buying LM358 in India

The LM358P in DIP-8 and the LM324N in DIP-14 are stocked by most Indian component sellers, often without a maker named. Ask for TI or another named maker, and check one from each batch with the follower test above before it goes into a board. Our guide to buying electronic components in India compares ten online sellers and covers how to spot fakes.

Advertisement

One email a month from the bench

New circuits, lessons, part guides and calculators, on the first Sunday of each month.

We'll send one email to confirm. Every email has a one-click unsubscribe. Privacy policy

Used in these lessons

Lessons that go deeper

Datasheets this page was checked against

Makers revise datasheets. If the copy you download has a newer revision and a number here disagrees with it, the datasheet wins, and we would like to hear about it.