Sub topic 3
The Virtual Short and Virtual Ground
This chapter assumes you know Ohm's law, Kirchhoff's current law (KCL), voltage dividers, and the ideal op amp model from earlier chapters. Here we use negative feedback to turn the ideal op amp into two simple rules, then apply them to the inverting amplifier.
Where the virtual short comes from
An ideal op amp has infinite open-loop gain A, infinite input resistance, and zero output resistance. Its output is Vout = A(V+ − V−). If the output sits at a finite voltage, such as a few volts, then:
V+ − V− = Vout / A → 0 as A → ∞
With negative feedback, the output settles at a finite value. The op amp adjusts its output until the difference between its two inputs is essentially zero. This gives two working rules:
- Virtual short: V+ = V−. The two input voltages are equal, although no wire connects them.
- No input current: Infinite input resistance means no current enters either input terminal.
The short is "virtual" because the voltages match but no current flows between the inputs. A real short would carry current.
Virtual ground
When the non-inverting input (+) is connected to ground, the rule V− = V+ forces the inverting input (−) to 0 V as well. This node is called a virtual ground. It is at ground potential, but it is not connected to ground. Current cannot flow into the op amp's input, so any current arriving at this node must leave through the feedback path.
Applying the rules to the inverting amplifier
Take an input source Vin connected through R1 to the inverting node. A feedback resistor Rf connects the output back to that node. The + input is grounded.
Follow these steps:
- The + input is grounded, so V+ = 0 V.
- The virtual short gives V− = 0 V.
- The current through R1 is I1 = (Vin − 0) / R1 = Vin / R1.
- No current enters the op amp, so by KCL the same current flows through Rf: If = I1.
- The voltage across Rf is Vout − 0, and the current flows from the node toward the output: If = (0 − Vout) / Rf.
- Set the currents equal: Vin / R1 = −Vout / Rf.
Solving gives:
Vout = −(Rf / R1) · Vin
The gain is −Rf / R1. The minus sign means the output is inverted relative to the input. The input resistance seen by the source is R1, because the other end of R1 is at 0 V.
A quick numeric check
With R1 = 10 kΩ, Rf = 20 kΩ, and Vin = 1.5 V:
r1 = 10e3
rf = 20e3
vin = 1.5
i1 = vin / r1 # current into the virtual ground node
vout = -i1 * rf # all of it flows through Rf
print(i1) # 0.00015 (150 microamps)
print(vout) # -3.0The result matches the formula: −(20k / 10k) × 1.5 V = −3 V.
Common errors
- Applying the short to open-loop circuits. Without feedback, the inputs are not forced equal. A comparator, for example, does not obey this rule.
- Treating virtual ground as real ground. You cannot draw current from it. Source current must travel through Rf, not into the node.
- Feedback to the wrong input. Feedback to the + input is positive feedback, and the virtual short does not apply.
- Sign mistakes in KCL. Define current directions first, then write each voltage drop consistently.
Exercise
An inverting amplifier uses R1 = 4.7 kΩ and Rf = 47 kΩ with Vin = −0.2 V. Find the current through R1 and the output voltage.
Show answer
The inverting node is at 0 V, so I1 = (−0.2 − 0) / 4.7k ≈ −42.6 µA, meaning it flows toward the source. The same current passes through Rf. Vout = −(47k / 4.7k) × (−0.2) = −10 × (−0.2) = +2 V.