Sub topic 5
Non-inverting Amplifier Gain
This chapter assumes you know Ohm's law, voltage dividers, and the ideal op amp model with the virtual short from the earlier chapters. You will derive the gain of the non-inverting amplifier, see why its input resistance is very high, and learn where it differs from the inverting amplifier. The same result appears again inside the difference amplifier, so it is worth getting right now.
The circuit
In the non-inverting amplifier, the input source drives the non-inverting (+) input directly. The output connects back to the inverting (−) input through a voltage divider made of two resistors:
- Rf runs from the output to the inverting node.
- Rg runs from the inverting node to ground.
Because the feedback goes to the inverting input, the feedback is negative. The virtual short therefore applies: the op amp adjusts its output until the voltage at the − input equals the voltage at the + input.
Derivation
The derivation uses two ideal op amp facts: the input currents are zero, and the virtual short makes V− = V+.
- The + input is connected to the source, so V+ = Vin.
- The virtual short gives V− = Vin.
- No current enters the − input, so the current through Rg equals the current through Rf. Call it I.
- Rg connects the inverting node to ground, so I = Vin / Rg.
- The same current flows through Rf from the output to the inverting node, so Vout − Vin = I · Rf = Vin · Rf / Rg.
- Solve for Vout:
Vout = Vin · (1 + Rf / Rg)
The closed-loop gain is
A = 1 + Rf / Rg
This is the same result you get by treating Rf and Rg as a voltage divider that feeds a fraction β = Rg / (Rf + Rg) of the output back to the − input. The loop forces β · Vout = Vin, so Vout = Vin / β.
Worked example
You need a gain of 11 from a sensor signal of 0.2 V.
- Set 1 + Rf / Rg = 11, so Rf / Rg = 10.
- Choose Rg = 1 kΩ and Rf = 10 kΩ.
- Vout = 0.2 V × 11 = 2.2 V.
Check with the current method. V− = 0.2 V, so I = 0.2 V / 1 kΩ = 0.2 mA. The drop across Rf is 0.2 mA × 10 kΩ = 2 V. The output is 0.2 V + 2 V = 2.2 V, which agrees.
Two special cases
Rg removed: the voltage follower
If Rg is open (Rg → ∞), then Rf / Rg → 0 and the gain is 1. If you also replace Rf with a wire, the output connects straight to the − input. This is the voltage follower (buffer). It has a gain of 1, but it presents a very high input resistance and a low output resistance. That makes it useful for isolating a high-impedance source from a load.
Rf = 0 with Rg present
If Rf = 0, the gain is also 1, and Rg carries no useful current. Many designs keep Rf as a small resistor anyway, for protection or for stability. The gain stays 1 regardless of Rg.
Input resistance
The signal source connects to the op amp's + input only. An ideal op amp draws no current there, so the ideal input resistance is infinite. The source does not see Rf or Rg at all.
This differs sharply from the inverting amplifier. In that circuit the input resistor R1 connects to the virtual ground, so the source sees an input resistance of R1. A source with a high output resistance loses signal across that R1 loading effect, so the inverting amplifier is a poor choice for such a source. The non-inverting amplifier avoids this problem.
| Property | Inverting amplifier | Non-inverting amplifier |
|---|---|---|
| Gain | −Rf / R1 | 1 + Rf / Rg |
| Output polarity | Inverted | Same as input |
| Minimum gain magnitude | Any positive value | 1 |
| Input resistance (ideal) | R1 | Infinite |
| Op amp input node | Virtual ground | Moves with Vin |
Common-mode voltage on the inputs
In the inverting amplifier, both op amp inputs sit near the same fixed potential (ground), so the op amp never sees a large common-mode signal. In the non-inverting amplifier, both inputs follow Vin. The op amp must therefore work correctly at a common-mode voltage equal to the signal itself. Real op amps specify an input common-mode range, and the input signal must stay inside it. If it does not, the output may clip or even reverse its polarity on some older devices.
Checking the gain numerically
The following Python function computes the gain and the output, and also shows the effect of a finite open-loop gain. With a finite gain Aol, the exact closed-loop gain is Aol / (1 + A_ol · β), where β = Rg / (Rf + Rg).
def noninverting_gain(rf, rg):
"""Ideal closed-loop gain: 1 + Rf/Rg."""
return 1 + rf / rg
def noninverting_gain_finite(rf, rg, a_ol):
"""Closed-loop gain with finite open-loop gain a_ol."""
beta = rg / (rf + rg)
return a_ol / (1 + a_ol * beta)
rf, rg = 10e3, 1e3
print(noninverting_gain(rf, rg)) # 11.0
print(round(noninverting_gain_finite(rf, rg, 1e5), 4)) # about 10.9988
print(round(0.2 * noninverting_gain(rf, rg), 3)) # 2.2With an open-loop gain of 100,000, the error is about 0.01 percent. The ideal formula is accurate when A_ol · β is much larger than 1.
You can confirm the same value in SPICE with the high-gain controlled source model used earlier. Here the + input is the controlling positive node, and the − input is the controlling negative node.
* Non-inverting amplifier, gain should be about 11
V1 in 0 DC 0.2
Rf out inv 10k
Rg inv 0 1k
E1 out 0 in inv 100k
.op
.endThe operating point should report V(out) close to 2.2 V, slightly below it because the model's gain is finite.
Common errors
- Using the inverting formula. Writing −Rf / Rg for this circuit gives the wrong sign and the wrong magnitude. Remember that Rg goes to ground and the input goes to the + pin.
- Swapping the op amp inputs. If the feedback goes to the + input, the feedback is positive. The output then slams into a supply rail, and the virtual short no longer applies.
- Forgetting the "1 +". The "1" comes from the input voltage appearing at the − node and adding to the drop across Rf.
- Expecting gain below 1. If you need attenuation, put a voltage divider ahead of a follower, or use an inverting stage.
- Ignoring the supply limits. The output cannot exceed the supply rails. A gain of 11 on a 2 V input asks for 22 V, which saturates a ±15 V op amp.
- Letting the input float. With no source connected, the high-impedance + input picks up noise and may drift to a rail. Give it a defined DC path, such as a resistor to ground.
Why this matters for later chapters
The difference amplifier uses both configurations at the same time. The signal at the + input sees a non-inverting gain of 1 + Rf / R1, scaled by a divider at the input. The signal at the − input sees an inverting gain of −Rf / R1. Superposition combines the two, and the next chapters on the difference amplifier rely on the result you derived here.
Exercise
A non-inverting amplifier has Rf = 47 kΩ and Rg = 4.7 kΩ. (a) What is its gain? (b) What is Vout for Vin = 0.5 V? (c) What is the largest Vin that keeps the output within ±10 V?
Show answer
(a) Gain = 1 + 47k / 4.7k = 1 + 10 = 11. (b) Vout = 0.5 V × 11 = 5.5 V. (c) The output limit of 10 V divided by the gain of 11 gives Vin(max) = 10 / 11 ≈ 0.909 V, so the input must stay within about ±0.909 V.
Exercise
You need a non-inverting gain of exactly 3 using Rg = 5 kΩ. Find Rf. Then state what input resistance the signal source sees in the ideal case, and say how that compares with an inverting amplifier of gain −3 built with R1 = 5 kΩ.
Show answer
Set 1 + Rf / 5k = 3, so Rf / 5k = 2 and Rf = 10 kΩ. The ideal input resistance is infinite, because the source drives only the + input. The inverting amplifier with R1 = 5 kΩ presents 5 kΩ to the source, which loads it.
Exercise
Find the gain of the circuit if Rg is removed (open) and Rf is 10 kΩ. Explain why the result does not depend on Rf.
Show answer
With Rg open, no current can flow through Rf, because the − input draws no current. The voltage drop across Rf is therefore zero, so Vout = V− = Vin. The gain is 1, the circuit is a voltage follower, and Rf has no effect. This also matches the formula 1 + Rf / Rg with Rg → ∞.