Sub topic 8
Supply Rails and Output Clipping
This chapter assumes you can apply Ohm's law and Kirchhoff's laws, use the voltage divider, and read simple schematics. It also assumes you know the inverting gain, -Rf/Rin, and the non-inverting gain, 1 + Rf/Rg, from earlier chapters. Here you will see why the ideal equations stop working when the output reaches the power supply, and how to predict where that happens.
Why the output cannot go anywhere it likes
The ideal op amp model says the output can take any voltage needed to force the inputs to match. A real op amp is powered from supply rails, and its output stage is built from transistors that can only move the output between those rails. The output cannot rise above the positive supply, +Vs, and it cannot fall below the negative supply, -Vs (or ground, in a single-supply circuit).
When the closed-loop equation asks for a voltage outside that range, the output stops at the limit. This is called saturation or clipping. The feedback loop can no longer hold the inputs at the same voltage, so the virtual short fails. The gain equations assume the virtual short holds, so they are invalid while the amplifier is clipped.
Output swing is smaller than the supply
Most op amps cannot reach the rails exactly. The datasheet gives an output voltage swing, which is how close the output gets to each supply under a stated load.
- A classic bipolar part such as the 741 swings to roughly 1.5 to 2 V short of each rail. On ±15 V supplies, the usable output is about ±13 V.
- A rail-to-rail output (RRO) part gets within tens of millivolts of each rail at light load. Near the rail it behaves like a transistor in saturation, so the gap grows as the load current grows.
- The swing depends on load current. A 2 kΩ load at ±5 V draws 2.5 mA at full swing. A 100 Ω load would need 50 mA, which many parts cannot supply, so the output would stop well short of the rail.
Always read the swing specification at your actual supply voltage and load. A table of typical values for one condition does not transfer to another.
Predicting clipping
For a given gain and supply, the largest input that avoids clipping follows from the usable output swing, Vout,max and Vout,min.
For the inverting amplifier:
- Vout = -(Rf/Rin) Vin
- The input limit is |Vin| ≤ Vout,swing / (Rf/Rin), where Vout,swing is the smaller of the positive and negative output limits.
For the non-inverting amplifier:
- Vout = (1 + Rf/Rg) Vin
- The input limit is |Vin| ≤ Vout,swing / (1 + Rf/Rg).
The sign matters in the inverting case. A positive input drives the output toward the negative rail, and a negative input drives it toward the positive rail. If the supplies are asymmetric, or the swing is asymmetric, the two polarities clip at different input levels.
Worked example: inverting amplifier on ±12 V
An inverting amplifier uses Rf = 47 kΩ and Rin = 4.7 kΩ, so the gain is -10. The op amp swings to within 1.5 V of each rail, so the output limits are +10.5 V and -10.5 V.
- The input limit is 10.5 V / 10 = 1.05 V.
- A 1 V sine wave (1 V peak) produces a 10 V peak output and passes undistorted.
- A 1.5 V peak sine wave would ask for 15 V. The output flattens at ±10.5 V for the part of each cycle where |Vin| exceeds 1.05 V.
Worked example: non-inverting amplifier on a single 5 V supply
A non-inverting amplifier has Rf = 9 kΩ and Rg = 1 kΩ, so the gain is 10. The op amp is rail-to-rail with 0.05 V of headroom at the load used, powered from 0 V and 5 V. The output can reach about 0.05 V to 4.95 V.
- The input limit at the top is 4.95 V / 10 = 0.495 V.
- A 0.5 V DC input would require 5 V and clips at 4.95 V.
- A sine wave centered on 0 V cannot work here. Its negative half asks for a negative output, which the amplifier cannot produce.
The second point is the main trap in single-supply design. An AC signal must be biased to a midpoint, often half the supply, so that it swings both ways around that point. That bias network is outside this chapter, but you must know it is needed.
What clipping looks like
The shape of the output tells you what is happening.
| Observation | Likely cause |
|---|---|
| Flat tops and bottoms on a sine wave | Gain times input exceeds the output swing |
| Only the bottom (or top) is flat | Single supply, asymmetric swing, or a DC offset that shifts the waveform |
| Output stuck near one rail with no signal | A large DC input, or offset amplified by high gain |
| Output sits at a rail and inputs differ by volts | Loop is broken, for example a missing feedback resistor |
| Output moves less than expected under load | The part is current-limited, not voltage-limited |
During clipping, the differential input voltage is no longer near zero. The op amp is still trying to push the output further, and the error between the inputs grows. You can use this as a diagnostic. If you measure a significant difference between the inverting and non-inverting inputs, the loop is not in control.
Clipping and recovery
Clipping is not only a loss of waveform shape. Some op amps take extra time to leave saturation. Internal stages that were driven hard need to recover before the output follows the input again. The delay is called overload recovery time, and it appears in datasheets for precision and high-speed parts.
Some older op amps can also show phase reversal when an input goes beyond the common-mode limits. The output jumps to the opposite rail even though the input was pushed only slightly too far. Check the input common-mode range in the datasheet, in addition to the output swing.
A simple clipping calculator
The following Python function applies the swing limits to the ideal equations. It models the output as the ideal result limited to the allowed range, and it reports whether the result clipped.
def inverting_output(vin, rf, rin, v_low, v_high):
ideal = -rf / rin * vin
out = min(max(ideal, v_low), v_high)
return out, out != ideal
def noninverting_output(vin, rf, rg, v_low, v_high):
ideal = (1 + rf / rg) * vin
out = min(max(ideal, v_low), v_high)
return out, out != ideal
# Inverting amplifier, gain -10, output limits +/-10.5 V
for vin in (0.5, 1.0, 1.05, 1.2, -1.2):
out, clipped = inverting_output(vin, 47e3, 4.7e3, -10.5, 10.5)
print(f"vin={vin:+.2f} V out={out:+.2f} V clipped={clipped}")
# Non-inverting amplifier, gain 10, single 5 V supply with 50 mV headroom
for vin in (0.0, 0.2, 0.495, 0.5):
out, clipped = noninverting_output(vin, 9e3, 1e3, 0.05, 4.95)
print(f"vin={vin:+.3f} V out={out:+.3f} V clipped={clipped}")This is a model of the limit, not of the real device. It ignores recovery time and the changing headroom with load. The values at exactly the limit can differ by floating-point rounding, so compare with a small tolerance in real test code.
Testing the limit in SPICE
An ideal voltage-controlled source has no output limit, so it will never clip. To model clipping you need a limiting element. This netlist uses a behavioral source with a clamp. It assumes a SPICE simulator that supports B sources with limit(), as ngspice does.
* Inverting amplifier with output limited to +/-10.5 V
Vin in 0 DC 1.2
Rin in inv 4.7k
Rf inv out 47k
Bop out 0 V = limit(1e5 * (0 - V(inv)), -10.5, 10.5)
.op
.endThe ideal output for a 1.2 V input is -12 V. The operating point reports -10.5 V, and V(inv) is no longer near zero. Change the input to 1.0 V and the output returns to about -10 V with V(inv) near microvolts. That change shows the virtual short appearing and disappearing.
Design consequences
Use these points when you choose gain and supply.
- Set the supply from the largest output you need, plus the headroom the datasheet gives for your load. Do not set it from the nominal signal.
- Check the largest input that can occur, including noise, DC offsets, and fault conditions, against the input limit above.
- In a high-gain stage, a small DC offset can use up much of the swing. An offset of 5 mV at a gain of 1000 produces 5 V of output offset. Chapter-level treatment of offset comes later, but you should leave margin for it now.
- Prefer to split high gain across stages if one stage would clip or lose bandwidth. Each stage then has a smaller offset to amplify.
- Choose a rail-to-rail output part when the supply is low, such as 3.3 V or 5 V, because a 1.5 V loss on each side leaves little usable range.
- Check the load current. Include the feedback network, which loads the output too. A feedback network of 1 kΩ in total on a 10 V output draws 10 mA from the op amp before the load is connected.
Diagram: where the output goes
The diagram shows the three regions of operation for an amplifier as the required output changes.
Common errors
- Using the supply voltage as the output limit. The real limit is smaller, by the headroom in the datasheet.
- Using the closed-loop gain equations while the output is clipped. They no longer apply.
- Forgetting that the inverting amplifier flips the sign, so a positive input hits the negative rail first.
- Applying a signal that swings below ground to a single-supply stage without a bias point.
- Reading the swing specification for a light load and then driving a heavy load.
- Ignoring DC offset at the output when the gain is high.
Exercise
An inverting amplifier has Rf = 33 kΩ and Rin = 3.3 kΩ. It runs from ±9 V, and the op amp output can reach within 1 V of each rail. (a) What is the largest peak input voltage that avoids clipping? (b) What does the output look like for a 1.2 V peak sine input?
Show answer
(a) The gain is -33k/3.3k = -10. The output limits are ±8 V, so the largest peak input is 8 V / 10 = 0.8 V. (b) A 1.2 V peak input would need ±12 V, so the output is a sine wave of inverted polarity, flattened at +8 V and -8 V. The flat parts occur whenever the input magnitude is above 0.8 V.
Exercise
A non-inverting amplifier with gain 5 runs from a single 3.3 V supply. The op amp is rail-to-rail and the output reaches 0.1 V to 3.2 V at your load. A sensor provides a DC voltage between 0 and 0.8 V. Does the output clip? What is the largest sensor voltage that stays linear?
Show answer
The ideal output is 5 times the input, so 0.8 V would need 4.0 V, which exceeds the 3.2 V limit. The amplifier clips for inputs above 3.2 V / 5 = 0.64 V. In addition, the output cannot go below 0.1 V, so inputs below 0.1 V / 5 = 0.02 V also fail to track. The linear range is 0.02 V to 0.64 V.