Sub topic 9
Choosing resistor values for a design
This chapter assumes you can derive the inverting and non-inverting gain equations from the virtual short. It also assumes you know how the input resistance of each configuration loads a source, and how the supply rails limit the output. Here you turn those results into a procedure for picking real resistor values.
Gain sets the ratio, not the values
Both gain equations depend only on a resistor ratio. Rf/Rin = 10 is satisfied by 1 kΩ and 10 kΩ, but also by 100 Ω and 1 kΩ, or 100 kΩ and 1 MΩ. The ratio fixes the ideal gain. The absolute size of the resistors decides everything else, so that is where the design work happens.
Constraints on the absolute size
Each limit below pushes the resistor scale in one direction.
| Concern | Pushes resistors | Reason |
|---|---|---|
| Source loading (inverting) | Larger Rin | The source sees Rin to the summing node, which sits at virtual ground. |
| Output current | Larger Rf + Rg | The output must drive the feedback network and the load in parallel. |
| Thermal noise and bias-current error | Smaller | Resistor noise grows with resistance, and bias current times resistance becomes an offset. |
| Stray capacitance | Smaller | Large resistors with a few pF at the inverting input create a pole and can cause peaking. |
A common starting range is 1 kΩ to 100 kΩ. Below about 1 kΩ, the feedback network draws noticeable output current. Above about 100 kΩ, noise, bias-current error, and capacitance start to matter.
A design procedure
- Write down the target gain, the source impedance, the signal amplitude, and the supply voltages.
- Check the output swing. The peak output, |gain| × peak input, must stay below the supply minus the op amp's headroom.
- For an inverting stage, set Rin from the input-resistance requirement. The source sees Rin plus its own source resistance. Then compute Rf = |gain| × Rin.
- For a non-inverting stage, the source drives the high-impedance input, so loading is rarely a problem. Pick Rg in the 1 kΩ to 10 kΩ range, then compute Rf = (gain − 1) × Rg.
- Replace the computed values with the nearest standard values, then recompute the gain.
Worked example
Design an inverting amplifier with a gain of −20. The source is a sensor with 1 kΩ output resistance, and its signal swings ±200 mV. The supply is ±5 V.
The ideal output peak is 20 × 0.2 V = 4 V. This is inside ±5 V, but a general-purpose op amp may only swing to within about 1 V of each rail. That would leave only ±4 V, so this is marginal, and a rail-to-rail output part is a safer choice.
The source resistance adds to Rin, so the effective input resistor is Rs + Rin. To keep the gain error from the source small, choose Rin = 10 kΩ, which makes the 1 kΩ source about 10% of the total. Then the real gain would be −Rf/11 kΩ, so Rf must be 220 kΩ to hit −20. That is too large for comfort. Instead, absorb the source resistance in the calculation: use Rin = 9.1 kΩ so that Rs + Rin ≈ 10.1 kΩ, and Rf = 200 kΩ gives a gain of about −19.8. A lower scale is better: Rin = 4.7 kΩ plus Rs = 5.7 kΩ, with Rf = 110 kΩ, gives −19.3. This shows the trade-off between source loading and resistor size.
The following script checks the gain for several standard-value choices, including the source resistance.
def inverting_gain_with_source(rf, rin, rs):
return -rf / (rin + rs)
rs = 1e3
for rf, rin in [(200e3, 9.1e3), (110e3, 4.7e3), (100e3, 4.0e3)]:
g = inverting_gain_with_source(rf, rin, rs)
print(f"Rf={rf/1e3:.0f}k Rin={rin/1e3:.1f}k gain={g:.2f}")The first two lines print gains near −19.8 and −19.3, and the last prints −20.00. This shows how little the real gain depends on exact values once you account for Rs.
Standard values and tolerance
Resistors come in preferred series. E24 values at 5% or 1% tolerance cover most designs, and E96 at 1% gives finer steps. Tolerance sets the gain accuracy, because the gain depends on a ratio of two parts. With 1% resistors, the worst-case gain error is about 2%. Use 0.1% parts or a matched resistor network when you need better accuracy.
Exercise
A non-inverting amplifier must have a gain of 11 with Rg = 2 kΩ. What Rf do you need, and what E24 standard value is closest?
Show answer
Rf = (11 − 1) × 2 kΩ = 20 kΩ. 20 kΩ is itself an E24 value (2.0 × 10^4), so no rounding is needed.
Exercise
Why is an inverting amplifier with Rin = 100 Ω a poor choice for a source that can supply only 1 mA, if the input swing is ±1 V?
Show answer
The summing node is at virtual ground, so the source must supply 1 V / 100 Ω = 10 mA. That is ten times what the source can provide, so the signal would be pulled down. A larger Rin, such as 10 kΩ, draws only 0.1 mA.