Building an op amp with gain is the foundational skill of analog circuit design. Whether you are amplifying a millivolt-level sensor signal or buffering an audio line, the operational amplifier relies on negative feedback to set a precise, predictable voltage gain. The direct answer to configuring an op amp for gain comes down to two topologies: the inverting amplifier (gain formula: $A_v = -R_f / R_{in}$) and the non-inverting amplifier (gain formula: $A_v = 1 + (R_f / R_{in})$).

For 90% of hobbyist and general-purpose DC/low-frequency projects, the LM358 (dual, single-supply, ~$0.25) or TL072 (dual, JFET input, ~$0.80) are the safe default part numbers. If you need low noise for audio, step up to the OPA2134 (~$5.50). Below is a complete guide to selecting your part, wiring the gain network, biasing for single-supply operation, and testing a blown chip with a multimeter.

Default Op Amp Part Numbers and Specifications

Before wiring your feedback resistors, you must select an op amp that matches your power supply and signal bandwidth requirements. Pushing an audio signal through a slow op amp will result in high-frequency roll-off, while using a precision FET-input op amp for a simple DC battery monitor is a waste of budget. Here are the benchmark parts for the bench and jobsite in 2026.

Part Number Typ. Price Supply Voltage (Vs) GBW (Gain-Bandwidth) Slew Rate Input Bias Current Best Application
LM358 $0.25 3V to 32V (Single/Dual) 1 MHz 0.3 V/µs 20 nA DC sensors, battery monitors, slow control loops
TL072 $0.80 ±5V to ±15V (Dual) 3 MHz 13 V/µs 8 pA General audio, active filters, high-impedance sensors
OPA2134 $5.50 ±2.5V to ±18V (Dual) 8 MHz 20 V/µs 5 pA High-fidelity audio preamps, precision DAC buffering
MCP6002 $0.45 1.8V to 6.0V (Single) 1 MHz 0.6 V/µs 1 pA 3.3V microcontroller ADC buffering, IoT sensor nodes
Bench Tip: Notice the GBW (Gain-Bandwidth Product) column. If you configure an LM358 for a gain of 100 (40dB), your maximum usable frequency drops to 10 kHz (1 MHz / 100). If you need a gain of 100 at 50 kHz, you must choose a part with at least a 5 MHz GBW, like the TL082 or OPA2134. Always calculate your closed-loop bandwidth before buying parts.

Inverting vs Non-Inverting Gain Configurations

Most standard op amps come in an 8-pin DIP or SOIC package containing two independent amplifiers. The standard pinout for a dual op amp is: Pin 1 (Output A), Pin 2 (Inverting Input A), Pin 3 (Non-Inverting Input A), Pin 4 (V- / GND), Pin 5 (Non-Inverting Input B), Pin 6 (Inverting Input B), Pin 7 (Output B), and Pin 8 (V+). Understanding how to route the feedback network to these pins dictates your circuit's input impedance and phase response.

The Inverting Amplifier

In the inverting topology, the non-inverting input (Pin 3) is tied to ground (or a virtual ground). The input signal passes through $R_{in}$ to the inverting input (Pin 2), and the feedback resistor $R_f$ connects from the output (Pin 1) back to Pin 2.

  • Gain Formula: $A_v = - (R_f / R_{in})$
  • Phase Shift: 180 degrees (the output waveform is inverted relative to the input).
  • Input Impedance: Equal to $R_{in}$. This can be a problem if your signal source is high-impedance (like a piezo sensor), as it will load down the source.

The Non-Inverting Amplifier

The signal is fed directly into the non-inverting input (Pin 3). The feedback network ($R_f$ and $R_{in}$) forms a voltage divider from the output to ground, with the midpoint connected to the inverting input (Pin 2).

  • Gain Formula: $A_v = 1 + (R_f / R_{in})$
  • Phase Shift: 0 degrees (output is in phase with input).
  • Input Impedance: Extremely high (typically >1 Megohm for BJT inputs, >10^12 ohms for JFET/CMOS). Ideal for buffering delicate sensors.

Complete Application Circuit: Single-Supply Audio Preamp

Here is a complete, buildable non-inverting amplifier designed to boost a microphone-level signal (10mV) to line-level (~1.1V) using a single 9V battery and an LM358.

  1. Power: 9V battery connected to Pin 8 (V+) and Pin 4 (V- / GND). Place a 100nF ceramic decoupling capacitor directly across Pins 4 and 8.
  2. Virtual Ground Bias: Because we are on a single supply, the op amp cannot output negative voltages. We must bias the input to half the supply voltage. Use two 100kΩ resistors in series from 9V to GND. The midpoint (4.5V) connects to Pin 3 (Non-Inverting Input) through a 10kΩ isolation resistor. Add a 10µF capacitor from Pin 3 to GND to filter power supply noise.
  3. Input Coupling: Route your AC audio signal through a 1µF film capacitor into Pin 3 (after the 10kΩ isolation resistor). This blocks any DC offset from the microphone.
  4. Gain Network: To achieve a gain of 11, use $R_f = 10k\Omega$ (from Pin 1 to Pin 2) and $R_{in} = 1k\Omega$ (from Pin 2 to GND).
  5. Output Coupling: Route the output (Pin 1) through a 10µF electrolytic capacitor (positive leg toward Pin 1) to your load, blocking the 4.5V DC bias from reaching the next stage.

Biasing and Operation Regions

A common mistake when designing an op amp with gain on a single supply is assuming the output can swing all the way to the power rails. Standard op amps like the LM358 are not true 'rail-to-rail' devices. If you bias your input incorrectly, the output will clip, introducing severe harmonic distortion. Below are the exact operation regions for an LM358 powered by a 9V single supply.

Operation Region Input Voltage Range (Pin 3) Output Voltage Range (Pin 1) Physical State of Internal Transistors
Linear (Active) 0V to 7.0V (V+ minus 2V) 0.05V to 7.5V Feedback loop is stable; virtual short exists between Pin 2 and Pin 3. Output accurately follows gain equation.
Positive Saturation > 7.0V Clipped at ~7.5V Internal PNP pull-up transistors are fully saturated. The op amp loses control; virtual short is broken.
Negative Saturation < 0V (or below V-) Clipped at ~0.05V (20mV) Internal NPN pull-down transistors are fully saturated. Output cannot reach true 0V due to Vce(sat) voltage drop.
Phase Reversal > 8.5V (Exceeding Vcm max) Slams to 0V unexpectedly Input stage overloads, causing the output to invert polarity violently. Common in older BJT op amps.
Safety & Design Warning: If your application requires the output to swing within millivolts of the 9V rail, the LM358 will fail you. You must select a true Rail-to-Rail Output (RRO) op amp like the MCP6002, or increase your supply voltage to 12V to give the LM358 enough headroom to output a clean 9V peak.

Failure Modes and Multimeter Testing

Op amps are sensitive to electrostatic discharge (ESD), output short circuits, and input overvoltage. If your circuit is outputting a flat DC voltage regardless of the input, or if the chip is physically hot to the touch, it has likely failed. You do not need an oscilloscope to verify a dead op amp; a standard digital multimeter (DMM) is sufficient.

How Op Amps Typically Fail

  • Output Short to Vcc/GND: If the output pin is accidentally shorted to a power rail while the op amp is trying to drive current, the internal output transistors will overheat and melt, usually resulting in a permanent short or open circuit.
  • Input Overvoltage: Applying a voltage to the input pins that exceeds the supply rails (even when the chip is unpowered) forward-biases the internal ESD protection diodes, burning them out and destroying the high-impedance input stage.
  • Exceeding Differential Input Voltage: Forcing a voltage difference greater than the datasheet rating (often 0.7V or up to 30V depending on the part) between Pin 2 and Pin 3 will rupture the input differential pair.

Step-by-Step Multimeter Testing (Diode Mode)

To test an op amp in-circuit (power removed and capacitors discharged) or on the bench, use the Diode Test setting on your DMM. This setting applies a small current and measures the forward voltage drop across semiconductor junctions.

  1. Test ESD Diodes (Inputs to V-): Place the red probe on Pin 4 (V-) and the black probe on Pin 2 (In-). You should read a diode drop of approximately 0.6V to 0.7V. Repeat for Pin 3 (In+). If you read 0.00V, the internal diode is shorted (dead chip). If you read OL (Open Loop), the bond wire or diode is blown.
  2. Test ESD Diodes (Inputs to V+): Reverse the probes. Red on Pin 2, Black on Pin 8 (V+). You should again read 0.6V to 0.7V.
  3. Test Output Stage: Place the red probe on Pin 4 (V-) and the black probe on Pin 1 (Output). You are checking the pull-down transistor junction. Expect a reading around 0.5V to 0.6V. A reading of 0.00V indicates the output is shorted to ground internally.

For deeper theoretical foundations on op amp stability and compensation, the Texas Instruments Precision Labs Op Amp series remains the industry gold standard for understanding how internal capacitance affects your gain at high frequencies. Additionally, All About Circuits provides excellent foundational reading on the virtual short concept that governs all negative feedback networks.

By selecting the correct part for your bandwidth requirements, respecting the input common-mode voltage limits, and verifying your feedback resistor ratios, you can build an op amp with gain that performs reliably from the breadboard to the final PCB.