Analog Op-AmpsBeginner11 min read · November 2026

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.

Launch This Pre-Wired Circuit in NodeSim
Opens directly inside the ngspice WebAssembly workbench with sources and probes attached — zero signup required.
Simulate Live Circuit →
Operational Amplifier Feedback & Transfer Curve−+RinRfVoutVinLinear feedback vs rail / hysteresis bounds
Inverting op-amp schematic with negative feedback Rf across inverting input (−) and Vout alongside 180-degree phase-inverted waveform.

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 / DesignatorNominal ValueRole in Circuit
U1 (Operational Amplifier)Universal / LM741 SPICEHigh open-loop differential amplifier enforcing virtual ground via negative feedback
Rin (Input Resistor)10 kOhmSets input current Iin = Vin/Rin and defines circuit input impedance
Rf (Feedback Resistor)100 kOhmRoutes Iin from summing junction to output, locking closed-loop gain at -10
Vin (AC Source)0.5 Vpk 1 kHzLinear test excitation kept inside +/-15 V rail swing margin
Vcc / Vee Rails+15 V / -15 VSymmetric dual supplies allowing negative & positive AC output swing

Expected Waveforms & Simulation Verification

Probe / NodeAnalysis TypeExpected WaveformEngineering Check
Vin (Input Sine)Transient (.tran)+/-0.50 V at 1 kHzReference input sinusoid amplitude and phase
V− (Summing Junction)Transient (.tran)~0.00 mV flat lineConfirms negative feedback maintains virtual ground continuously
Vout (Amplified)Transient (.tran)-/+5.00 V inverted sineExact Av = -10x scaling and 180-degree inversion with zero clipping
Vout (Overdriven Vin=2V)Transient (.tran)Clamped +/-13.5 V flat topsVisual demonstration of supply rail headroom saturation

Troubleshooting Common SPICE & Bench Mistakes

Output slams permanently to +V or −V rail with zero sine swing
Verify Rf connects to the inverting (−) terminal and NOT the non-inverting (+) terminal (positive feedback creates a latching Schmitt trigger). Also verify both V+ and V− op-amp supplies are wired cleanly.
Output clips half of the sine wave at 0 V cleanly
You used a single-supply 0 V / +12 V setup while grounding the non-inverting (+) pin. Either wire a symmetric negative supply −Vee or bias V+ to Vcc/2 with AC coupling capacitors.
Measured gain is noticeably smaller than −Rf/Rin
Check two culprits: your input signal frequency may exceed GBWP/(1+Rf/Rin), or the signal source has significant series resistance adding directly to Rin.

Hands-On Lab Exercises in NodeSim

  1. Reduce Rf from 100 kOhm to 47 kOhm and measure the new peak output amplitude to verify proportional scaling Av = -4.7.
  2. 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.
  3. 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.
Ready to run your own numbers?
Open this schematic live in NodeSim or export an IEEE PDF lab report.
Related Guides:Inverting Op-Amp LabNon-Inverting Op-AmpVoltage Follower BufferDifferential AmplifierSchmitt Trigger