Build an inverting op-amp with a 100 kΩ feedback resistor and a 10 kΩ input resistor, feed in 0.8 V, and the output lands on exactly -8 V. No magic — just a closed-loop gain formula that drops out of one assumption: the inverting input sits at virtual ground.
Why virtual ground?
An ideal op-amp has (effectively) infinite open-loop gain and draws no input current. With the non-inverting terminal grounded and negative feedback through Rf\, the inverting terminal is forced to sit at 0 V too — not because it's wired to ground, but because any difference would be amplified to an absurd degree and corrected by the feedback loop. That's the "virtual ground."
Because no current flows into the op-amp, the current through Rin\ must equal the current through Rf\:
(Vin - 0) / Rin = (0 - Vout) / Rf Vout = -(Rf / Rin) * Vin Checked in JavaScript
const Rf = 100000; const Rin = 10000; const Vin = 0.8; const gain = -Rf / Rin; const Vout = gain * Vin; console.log(gain); // -10 console.log(Vout); // -8 Gain -10, output -8 V. Double Rf\ to 200 kΩ and gain becomes -20 — as long as the supply rails (commonly ±15 V) can actually swing that far; an ideal-gain calculation that exceeds the rails just means the real circuit clips.
Mistakes worth avoiding
- Dropping the minus sign and reporting +8 V instead of -8 V.
- Treating the virtual ground as a real wire to ground — it only holds because of the feedback loop, not a physical connection.
- Picking resistor values whose ideal output exceeds the supply voltage, then being confused when the real output is clipped lower than calculated.
Try it yourself: PractiSci has a free interactive op-amp inverting amplifier lab where you can drag Rf, Rin and Vin and watch Vout update live. More Class 12 physics practicals: practisci.in/practicals/class-12-physics.
Full disclosure: I build PractiSci, a virtual physics and chemistry lab for Class 11-12 students.