Inverting Op-Amp Amplifier Tutorial: Virtual Ground, Gain & Bandwidth
The inverting op-amp configuration is the foundational workhorse of analog signal scaling, audio mixing, DAC current-to-voltage conversion, and active filtering. Unlike the non-inverting topology, it can deliver both attenuation (gain magnitude below 1) and clean linear amplification while locking the op-amp common-mode input squarely at ground potential—eliminating nonlinear common-mode distortion inside the differential input stage. In this tutorial you will derive its closed-loop transfer function from virtual-ground KCL, account for real input impedance limitations, predict gain-bandwidth roll-off, and test rail clipping inside NodeSim.
1. Negative Feedback & the Virtual Ground Concept
An ideal operational amplifier boasts virtually infinite open-loop differential gain (A_OL typically 10^5 to 10^6 at DC) and near-infinite input impedance at both inputs. When feedback resistor Rf ties output Vout back to the inverting (−) input terminal while the non-inverting (+) terminal sits firmly grounded (V+ = 0 V), negative feedback forces the output to swing whatever voltage is necessary to drive the differential input voltage (V+ − V−) effectively to zero.
Because V+ = 0 V and Vout stays within finite linear rails, the inverting node sits at V− = V+ − Vout / A_OL ≈ 0 V. Engineers call this pin a "virtual ground": it measures 0 V with respect to reference ground, yet unlike a physical ground wire it sinks zero current directly into the silicon op-amp pin. Instead, every microamp flowing inward from Vin through input resistor Rin must turn upward at the summing junction and flow cleanly through feedback resistor Rf toward Vout.
Summing Junction Voltage: V− ≈ V+ = 0 V (Virtual Ground) Input Current: I_in = (Vin − V−) / Rin = Vin / Rin Feedback Current: I_f = (V− − Vout) / Rf = −Vout / Rf By KCL (no op-amp input current): I_in = I_f ⇒ Vin / Rin = −Vout / Rf Closed-Loop Gain: Av = Vout / Vin = −(Rf / Rin)
Because inverting input sits at virtual ground (0 V), the input source sees a simple load resistance Z_in = Rin directly to 0 V—never infinite like a non-inverting op-amp.
2. Gain Scaling, Inversion Sign & Input Impedance Trade-Offs
Inspecting Av = −(Rf / Rin) highlights two critical design facts. First, the minus sign denotes a 180-degree phase inversion for AC sinusoids (and polarity flip for DC inputs): +1 V in produces −Rf/Rin volts out. Second, unlike a non-inverting gain stage (Av = 1 + Rf/Rin >= 1), an inverting stage can gracefully attenuate high-voltage signals simply by setting Rf < Rin (for example Rin = 20 kOhm, Rf = 10 kOhm gives Av = −0.5 V/V).
Choosing resistor scale matters deeply for noise and source loading. Suppose your sensor has an internal series source impedance Rs = 1 kOhm and you carelessly pick Rin = 1 kOhm and Rf = 10 kOhm targeting Av = −10. Real input current sees Rin + Rs = 2 kOhm total, slashing true gain to −10k / 2k = −5 (50% gain error!). Always make Rin at least 20x to 100x larger than the upstream source impedance Rs—or precede low-Rin stages with a buffer.
Conversely, making Rf too high (1 MOhm+) invites op-amp input bias current offsets (I_bias * Rf) and stray picofarad feedback capacitance poles that destabilize high-frequency response. For classic general-purpose stages, keeping Rin between 2.2 kOhm and 47 kOhm and Rf between 10 kOhm and 220 kOhm keeps thermal noise, loading, and bias offsets balanced.
- Bias Current Cancellation Resistor: Adding a balancing resistor Rcomp = Rin || Rf between the non-inverting (+) pin and ground equalizes DC voltage drops produced by matched input bias currents on bipolar op-amps.
- Multi-Input Summing Mixer Extension: Because the summing node holds steady at virtual ground, attaching multiple input resistors Rin1, Rin2, Rin3 does not cause inputs to bleed into each other—forming an instant clean analog audio or sensor mixer.
3. Real-World Op-Amp Limits: Rail Clipping, GBWP & Slew Rate
Closed-loop formulas hold strictly while the op-amp stays in linear active operation inside its power rails. If you power an op-amp with +/−12 V supplies and apply a 2 V peak sine wave into a gain −10 stage (Rf = 100 kOhm, Rin = 10 kOhm), ideal equations predict a 20 V peak output swing. Real silicon cannot exceed its supply rails (typically flattening cleanly around +/−10.5 V to +/−11.8 V depending on output headroom), chopping the sinusoidal peaks into a distorted flat-topped square-ish wave.
Bandwidth also shrinks inversely with closed-loop gain. Notice that feedback sees noise gain equal to 1 + Rf/Rin (not merely Rf/Rin!). If a TL072 or LM741 op-amp has a Gain-Bandwidth Product (GBWP) of 1 MHz and you wire Av = −100 (noise gain = 101), the −3 dB small-signal bandwidth collapses to roughly 1 MHz / 101 ≈ 9.9 kHz. Running transient or AC sweeps inside NodeSim reveals both rail saturation and high-frequency gain droop visually before soldering.
Noise Gain: G_noise = 1 + (Rf / Rin) Closed-Loop Bandwidth: f_−3dB ≈ GBWP / G_noise Full-Power Slew Bandwidth: f_max = SlewRate / (2 × π × V_peak)
4. Simulating the Inverting Op-Amp in NodeSim
Launch the pre-loaded inverting op-amp testbench in NodeSim via the green CTA button. With dual power rails (+/-15 V), Rin = 10 kOhm, Rf = 100 kOhm (expected gain Av = −10), and a 0.5 V peak 1 kHz sinusoidal source, run Transient (.tran) for 3 ms. Inspect both probes: Vin peeks upward to +0.5 V precisely when Vout drops downward to −5.0 V—confirming both exact −10x scaling and crisp 180-degree phase inversion.
Switch Analysis to AC Sweep (.ac) from 10 Hz to 10 MHz to inspect the Bode plot: notice the flat +20 dB passband rolling off smoothly at −20 dB/decade above the closed-loop gain-bandwidth corner.
Reference Component Values & Bill of Materials
| Part / Designator | Nominal Value | Role in Circuit |
|---|---|---|
| U1 (Operational Amplifier) | Universal / LM741 SPICE | High open-loop differential amplifier enforcing virtual ground via negative feedback |
| Rin (Input Resistor) | 10 kOhm | Sets input current Iin = Vin/Rin and defines circuit input impedance |
| Rf (Feedback Resistor) | 100 kOhm | Routes Iin from summing junction to output, locking closed-loop gain at -10 |
| Vin (AC Source) | 0.5 Vpk 1 kHz | Linear test excitation kept inside +/-15 V rail swing margin |
| Vcc / Vee Rails | +15 V / -15 V | Symmetric dual supplies allowing negative & positive AC output swing |
Expected Waveforms & Simulation Verification
| Probe / Node | Analysis Type | Expected Waveform | Engineering Check |
|---|---|---|---|
| Vin (Input Sine) | Transient (.tran) | +/-0.50 V at 1 kHz | Reference input sinusoid amplitude and phase |
| V− (Summing Junction) | Transient (.tran) | ~0.00 mV flat line | Confirms negative feedback maintains virtual ground continuously |
| Vout (Amplified) | Transient (.tran) | -/+5.00 V inverted sine | Exact Av = -10x scaling and 180-degree inversion with zero clipping |
| Vout (Overdriven Vin=2V) | Transient (.tran) | Clamped +/-13.5 V flat tops | Visual demonstration of supply rail headroom saturation |
Troubleshooting Common SPICE & Bench Mistakes
Hands-On Lab Exercises in NodeSim
- Reduce Rf from 100 kOhm to 47 kOhm and measure the new peak output amplitude to verify proportional scaling Av = -4.7.
- Raise Vin amplitude from 0.5 V to 2.0 V in Transient mode and locate the exact output voltage threshold where rail saturation flattens the sine crests.
- Wire a second 10 kOhm input resistor from a 200 mV DC source into the same inverting (−) summing junction to build a weighted DC-offsetting summer.
