The Core Formula: Calculating Op Amp Inverting Amplifier Gain
The voltage gain of an ideal inverting operational amplifier is determined entirely by the ratio of two external resistors. The direct answer for your bench calculations is:
Av = -Rf / Rin
Where Rf is the feedback resistor (connecting the output to the inverting input) and Rin is the input resistor (connecting your signal source to the inverting input). The negative sign indicates phase inversion: a positive input voltage yields a negative output voltage.
You need to scale a 0.2V peak sensor signal up to 2.0V peak for an oscilloscope. You select
Rin = 10 kΩ and Rf = 100 kΩ. Gain = -100k / 10k = -10.
When the input swings to +0.2V, the output swings to -2.0V. The input impedance of this stage is simply the value of
Rin (10 kΩ), because the inverting input acts as a virtual ground.
Pinout, Symbol, and the Virtual Ground Principle
In circuit schematics, the op-amp symbol is a triangle. The inverting input is marked with a minus (-), the non-inverting input with a plus (+), and the output emerges from the tip. Power rails (V+ and V-) are often omitted in simplified schematics but are mandatory on the bench.
For a standard dual op-amp in an 8-pin DIP or SOIC package (like the ubiquitous TLV9002 or LM358), the pinout is:
- Pin 1: Output A
- Pin 2: Inverting Input A (-)
- Pin 3: Non-Inverting Input A (+)
- Pin 4: V- (Negative supply or Ground in single-supply)
- Pin 5: Non-Inverting Input B (+)
- Pin 6: Inverting Input B (-)
- Pin 7: Output B
- Pin 8: V+ (Positive supply)
The Virtual Ground: Because an op-amp has massive open-loop gain (often >100,000), the negative feedback loop forces the voltage difference between the (+) and (-) pins to virtually zero. If you tie Pin 3 (Non-Inverting) to 0V (Ground), Pin 2 (Inverting) becomes a "virtual ground." It sits at 0V, but unlike a true ground, it can source or sink current through the feedback network. This principle is what makes the Av = -Rf / Rin formula so mathematically clean.
Operation Regions and Spec-Sheet Realities
Beginners often calculate a gain of -100, feed in 1V, and expect -100V out. Real op-amps are constrained by their power rails and internal transistor saturation voltages. According to All About Circuits, understanding these boundaries prevents head-scratching when your waveform clips.
| Region | Condition | Typical Output Voltage | Current Behavior |
|---|---|---|---|
| Linear (Active) | Feedback loop is intact; output is within rail limits. | -13.5V to +13.5V (Standard) -14.9V to +14.9V (Rail-to-Rail) |
Output sources/sinks current up to Isc (typically 20-40mA). |
| Positive Saturation | Input drives output beyond positive rail capability. | Clamped at ~+13.5V (Standard) Clamped at ~+14.9V (R2R) |
Output stage PNP/P-channel fully on; gain formula breaks down. |
| Negative Saturation | Input drives output beyond negative rail capability. | Clamped at ~-13.5V (Standard) Clamped at ~-14.9V (R2R) |
Output stage NPN/N-channel fully on; risk of phase reversal in older parts. |
Bandwidth Limitation (GBWP): Gain is not infinite across all frequencies. The Gain-Bandwidth Product (GBWP) is a constant. If your op-amp has a 1 MHz GBWP and you set a closed-loop gain of 100 (40dB), your maximum usable frequency drops to 10 kHz. For high-gain, high-frequency applications, you must select a high-speed op-amp.
Complete Application Circuit: Single-Supply AC-Coupled Preamp
Designing an inverting amplifier for a single-supply system (like a 5V USB-powered microcontroller or audio interface) requires biasing. Since the output cannot swing below 0V, we must shift the "virtual ground" up to mid-rail (2.5V) so the AC signal can swing both positive and negative relative to that DC bias.
Component List & Values
- U1: TLV9002 (Dual R2R Op-Amp)
- R1, R2: 100 kΩ (Voltage divider for 2.5V bias)
- R3: 10 kΩ (Input resistor,
Rin) - R4: 100 kΩ (Feedback resistor,
Rf) - C1: 10 µF (Input coupling capacitor)
- C2: 10 µF (Output coupling capacitor)
- C3: 10 µF (Bias bypass capacitor to ground)
- C4: 100 nF (Power supply decoupling, placed physically adjacent to Pins 4 and 8)
Wiring Steps
- Establish the Bias: Connect R1 from V+ (5V) to Pin 3 (Non-Inverting). Connect R2 from Pin 3 to Ground. This creates a 2.5V reference. Tie C3 from Pin 3 to Ground to filter power supply noise out of your reference.
- Route the Input: Connect your AC signal source through C1 (10 µF) to Pin 2 (Inverting Input). Connect R3 (10 kΩ) between the C1/Pin 2 junction and the signal source side of C1.
- Close the Loop: Connect R4 (100 kΩ) directly between Pin 2 (Inverting Input) and Pin 1 (Output). This sets your op amp inverting amplifier gain to -10.
- Extract the Signal: Connect C2 (10 µF) to Pin 1. The other side of C2 is your final output, stripped of the 2.5V DC bias, ready for an ADC or audio jack.
Decision Tree: Selecting the Right Op Amp for Your Gain Stage
Do not just grab the first chip in your bin. Match the silicon to the signal. Use this decision matrix to terminate your selection process with a concrete part number.
| Application Constraint | Required Spec | Concrete Part Pick |
|---|---|---|
| Interfacing with 3.3V/5V MCUs (ESP32, Arduino) | Rail-to-Rail I/O, low voltage operation (1.8V to 5.5V) | TI TLV9002 |
| High-fidelity Audio Pre-amplification | Low noise (<10 nV/√Hz), low THD, high slew rate | TI OPA1678 or TL072 |
| Precision DC Sensor Scaling (Thermocouples, Shunts) | Ultra-low offset voltage (<50 µV), low drift | ADI OP07 or TI OPA2188 (Zero-drift) |
| Legacy High-Voltage Industrial (±15V or +30V single) | Wide supply range (up to 32V), robust, cheap | TI LM358 (Single supply) or NE5532 (Dual) |
Failure Modes and Multimeter Troubleshooting
When your inverting amplifier outputs garbage, do not immediately desolder the chip. Grab your digital multimeter (DMM) and follow this diagnostic sequence.
- Verify Power Rails: Measure Pin 8 (V+) and Pin 4 (V-) relative to system ground. If you expect 5V and read 0.2V, your power trace is blown or the chip is internally shorted. Fix: Check for solder bridges or replace the IC.
- Check the Virtual Ground: Measure the DC voltage at Pin 3 (+), then Pin 2 (-). They must match within 1-5 mV. If Pin 3 is at 2.500V and Pin 2 is at 3.800V, the feedback loop is broken. Fix: Check R4 (feedback resistor) for an open circuit or cold solder joint.
- Test for Output Saturation: If the output (Pin 1) is stuck hard at V+ or V-, the op-amp is saturated. This usually means the input signal is too large, or the non-inverting pin (Pin 3) is floating. Fix: Ensure Pin 3 has a solid DC path to ground or a bias network.
- Hunt for Oscillation: If the DC voltage at the output is erratic or reads incorrectly on your DMM (but looks fine on an oscilloscope), the circuit is oscillating at high frequency due to parasitic capacitance. Fix: Add a small feedback capacitor (10pF - 100pF) in parallel with R4 to roll off high-frequency gain.
The 2026 Safe Defaults: Exact Part Numbers to Buy
If you are stocking your lab bench or finalizing a BOM for production, these are the definitive safe defaults based on current market availability, pricing, and performance.
- The Modern General-Purpose Default: Texas Instruments TLV9002
Rating: 1 MHz GBWP, 2 V/µs Slew Rate, 1.8V to 5.5V Supply.
Why: It replaces the legacy LM358 for modern low-voltage designs. True rail-to-rail input and output means your 3.3V ESP32 projects will actually use the full 0-3.3V ADC range without clipping at 2V. Costs roughly $0.35 in single quantities. - The High-Voltage Workhorse: Texas Instruments LM358
Rating: 1 MHz GBWP, 0.3 V/µs Slew Rate, 3V to 32V Single Supply.
Why: As noted in the TI LM358 datasheet, this part is virtually indestructible and handles up to 32V. Use it for 12V/24V automotive or industrial sensor scaling where 5V logic chips would fry. Costs ~$0.15, but suffers from crossover distortion in audio applications. - The Audio Standard: Texas Instruments OPA1678
Rating: 3.6 MHz GBWP, 9 V/µs Slew Rate, ±2.25V to ±18V Supply.
Why: For guitar pedals, synth modules, or hi-fi preamps, the TLV9002 will introduce noticeable hiss. The OPA1678 offers ultra-low noise (4.5 nV/√Hz) and drives heavy capacitive loads without oscillating. Costs ~$1.20 per dual package.
By locking in your resistor ratio for the gain, biasing the non-inverting pin correctly for your supply topology, and selecting a part that matches your voltage and bandwidth needs, your inverting amplifier will perform exactly as the math predicts.






