The voltage gain of an op amp inverting gain configuration is calculated using a single, elegant formula: Av = -Rf / Rin. The negative sign indicates a 180-degree phase shift between the input and output signals. If you feed 100mV into the circuit with a gain of -10, you will get -1V out. For 90% of general-purpose DC sensor amplification and audio tasks on the bench, the LM358 (for single-supply 5V-12V systems) or the TL072 (for dual-supply ±12V audio systems) are your safest, most cost-effective default part numbers.
This guide skips the abstract semiconductor physics and goes straight to the workbench. We will cover how to wire the pins, how to bias the IC so it doesn't clip your signal, exact component values for a working pre-amplifier, and how to test a suspect chip with a standard digital multimeter (DMM).
Symbol, Pinout, and the Virtual Ground Concept
The standard symbol for an operational amplifier is a triangle pointing to the right. The top input marked with a minus (-) is the inverting input. The bottom input marked with a plus (+) is the non-inverting input. The point of the triangle is the output. In an inverting configuration, your signal enters through a resistor into the inverting input, while the non-inverting input is tied to a reference voltage (usually ground).
Most hobbyist and prosumer op amps come in an 8-pin DIP (Dual In-line Package). Here is the standard pinout for dual op amps like the LM358, TL072, and NE5532:
- Pin 1: Output A
- Pin 2: Inverting Input A (-)
- Pin 3: Non-Inverting Input A (+)
- Pin 4: V- (Negative Supply or Ground)
- Pin 5: Non-Inverting Input B (+)
- Pin 6: Inverting Input B (-)
- Pin 7: Output B
- Pin 8: V+ (Positive Supply)
Because of the op amp's massive open-loop gain (often >100,000), the negative feedback loop forces the voltage at the inverting input (Pin 2) to exactly match the voltage at the non-inverting input (Pin 3). If Pin 3 is tied to 0V (ground), Pin 2 becomes a 'virtual ground'. It sits at 0V, but unlike a physical ground, it cannot sink or source current to the power supply. All input current flows directly through the feedback resistor.
Selecting and Biasing the Op Amp for the Job
Choosing the right IC and biasing it correctly is where most DIY builds fail. If you are reading an Arduino sensor, you need a single-supply, rail-to-rail op amp. If you are mixing audio, you need a dual-supply, low-noise JFET or bipolar input stage.
Safe Default Part Numbers and Ratings
| Part Number | Supply Range | Slew Rate | GBW (Gain-Bandwidth) | Best Application |
|---|---|---|---|---|
| LM358 | 3V to 32V (Single) or ±1.5V to ±16V | 0.5 V/µs | 1 MHz | DC sensors, slow signals, single-supply |
| TL072 | ±5V to ±18V (Dual supply required) | 13 V/µs | 3 MHz | Guitar pedals, analog synths, audio |
| NE5532 | ±3V to ±22V | 9 V/µs | 10 MHz | Pro audio, low-noise preamps |
| MCP6001 | 1.8V to 5.5V (Single, Rail-to-Rail) | 0.6 V/µs | 1 MHz | 3.3V microcontrollers, battery devices |
How to Bias for Single vs. Dual Supplies
If you use a dual supply (e.g., +12V, GND, -12V), tie the non-inverting input (Pin 3) directly to GND. Your AC signal will swing symmetrically above and below 0V.
If you use a single supply (e.g., +5V and GND), you cannot tie Pin 3 to GND. If you do, the op amp cannot output negative voltages, and the bottom half of your AC waveform will instantly clip. You must create an artificial 'mid-rail' bias. Use two 10kΩ resistors in series from VCC to GND to create a 2.5V node. Tie Pin 3 to this node, and place a 10µF decoupling capacitor from Pin 3 to GND to shunt noise. Your output will now idle at 2.5V and swing ±2.5V around it.
Operation Regions and Typical Specifications
Understanding where the op amp leaves the linear region and hits the supply rails is critical for setting your op amp inverting gain resistor ratios. If you ask an LM358 for 20V of swing on a 12V supply, it will clip.
| Operation Region | Differential Input Voltage | Output Voltage Behavior | Typical Limits (LM358 on 12V Single) |
|---|---|---|---|
| Linear (Active) | ≈ 0V (Virtual short) | Vout = Av × Vin | Output swings from ~20mV to 10.5V |
| Positive Saturation | V- > V+ (Significant mV) | Clipped at VCC - Vdrop | Hard clips at ~10.5V (1.5V headroom loss) |
| Negative Saturation | V+ > V- (Significant mV) | Clipped at VEE + Vsat | Hard clips at ~20mV above ground |
| Input Common-Mode Exceeded | N/A | Phase reversal or unpredictable output | Inputs must stay 1.5V below VCC |
Complete Application Circuit: 10x Inverting Audio Pre-Amp
Let's build a practical circuit. We want an op amp inverting gain of -10 to boost a weak microphone or guitar signal. We will use a TL072 on a ±9V dual supply (two 9V batteries or a split bench supply).
Bill of Materials
- 1x TL072 IC
- 1x 10kΩ Metal Film Resistor (Rin)
- 1x 100kΩ Metal Film Resistor (Rf)
- 1x 10kΩ Potentiometer (Input volume control)
- 2x 100nF (0.1µF) Ceramic Capacitors (Decoupling)
- 1x 10µF Electrolytic Capacitor (Input DC block)
- 1x 100Ω Resistor (Output isolation)
Wiring Steps
- Power and Decoupling: Connect +9V to Pin 8 and -9V to Pin 4. Place a 100nF ceramic capacitor from Pin 8 to Ground, and another from Pin 4 to Ground. Keep these physically as close to the IC pins as possible to prevent high-frequency oscillation.
- Input Network: Pass your audio signal through the 10µF electrolytic capacitor (positive side facing the signal source) to block any DC offset. Connect the other side of the cap to the wiper of the 10kΩ volume pot. Tie one outer lug of the pot to Ground and the other to the signal.
- Set the Gain: Connect the wiper of the pot to Pin 2 (Inverting Input) via the 10kΩ Rin resistor. Connect the 100kΩ Rf feedback resistor from Pin 2 to Pin 1 (Output). This sets the gain to -100k / 10k = -10.
- Ground the Non-Inverting Pin: Tie Pin 3 directly to your system Ground (the midpoint between your +9V and -9V supplies).
- Output Isolation: Connect a 100Ω resistor from Pin 1 to your output jack. This prevents the op amp from going unstable if the output cable has high capacitance.
Always use metal film resistors for Rin and Rf in audio circuits. Carbon composition and thick-film resistors generate excess thermal (Johnson-Nyquist) noise and current noise, which the op amp will happily amplify by a factor of 10, resulting in a distinct hiss in your audio output.
Failure Modes and Multimeter Testing
Op amps rarely fail on their own; they fail because of external abuse. Common killers include applying a voltage higher than the supply rails to the inputs (exceeding the common-mode range), shorting the output directly to ground without an isolation resistor, and static discharge (ESD) during breadboarding.
How to Test an Op Amp with a DMM
If your circuit is outputting a flatline or pegged to the rail, follow this diagnostic path:
- Power Off - Check for Shorts: Set your DMM to resistance mode. Measure between the Output pin (Pin 1) and Ground. You should read high resistance (typically >10kΩ due to the feedback network). If you read near 0Ω, your output is shorted, or the IC's internal output transistor has melted short.
- Power On - Verify Rails: Measure Pin 8 and Pin 4 relative to Ground. If you are missing your supply voltages here, the IC isn't powered. Check your breadboard power rails for continuity breaks.
- Verify the Virtual Ground: Switch to DC Voltage mode. Measure Pin 3 (Non-inverting). Note the voltage (e.g., 0.00V or 2.5V). Now measure Pin 2 (Inverting). In a functioning linear circuit, Pin 2 must exactly match Pin 3 (within a few millivolts). If Pin 2 is stuck at a different voltage, the feedback loop is broken, or the IC's input stage is fried.
- The Diode Test Trick: Power down and discharge all capacitors. Set your DMM to Diode Test mode. Place the red probe on Pin 4 (V-) and the black probe on Pin 2 (Inverting Input). You should read a standard silicon junction drop (0.6V to 0.8V). Repeat for Pin 3. If you read 'OL' (open) or 0.0V (short), the internal ESD protection diodes or the input JFETs are destroyed. Bin the chip.
Frequently Asked Questions
Why is my op amp inverting gain output clipping at a lower voltage than VCC?
This is the most common issue with legacy parts like the LM358 or TL072. These are not 'rail-to-rail' output op amps. The internal output stage uses bipolar transistors that require headroom to remain in the active region. An LM358 powered by a 12V single supply will typically max out at around 10.5V (VCC - 1.5V). If you need the output to swing within millivolts of your positive supply rail, you must upgrade to a modern CMOS rail-to-rail output op amp like the MCP6001 or TS922.
How do I calculate the input impedance of an inverting op amp circuit?
Unlike the non-inverting configuration (which boasts giga-ohm input impedance), the input impedance of an op amp inverting gain circuit is simply the value of your input resistor, Rin. Because the inverting input is a virtual ground, the signal source 'sees' only Rin connecting it to ground. If you use a 10kΩ Rin, your input impedance is exactly 10kΩ. If you need high input impedance (e.g., 1MΩ for a piezo guitar pickup) while maintaining inverting gain, you must use large resistor values, which increases thermal noise, or place a non-inverting buffer stage ahead of the inverting amplifier.
Can I use an op amp inverting gain configuration for high-frequency RF signals?
Generally, no. Standard op amps are limited by their Gain-Bandwidth Product (GBW). If you use an LM358 (1 MHz GBW) and set your inverting gain to -10, your usable bandwidth drops to roughly 100 kHz (1 MHz / 10). Above this frequency, the gain rolls off at -20dB/decade, and phase shift errors destroy signal integrity. For RF signals (MHz to GHz), you must abandon standard op amps and use dedicated Current Feedback Amplifiers (CFAs) or discrete Common-Base/Common-Gate transistor stages, which do not suffer from the same dominant-pole compensation limitations.
What happens if I swap the inverting and non-inverting inputs by mistake?
If you accidentally feed your signal into Pin 3 and tie your feedback network to Pin 2, you have created a positive feedback loop (a Schmitt trigger or latch) instead of a negative feedback amplifier. The moment a tiny noise spike hits the input, the op amp's massive open-loop gain will drive the output instantly into positive or negative saturation (the supply rails), where it will lock up. It will not amplify your linear signal; it will act as a comparator. Swap the wiring back to ensure the feedback resistor always returns to the inverting (-) input.






