Op-amp common-mode/output-swing check

Enter the limits as the data sheet gives them, as volts from each rail. A rail-to-rail input that goes 0.1 V beyond the rail has a headroom of −0.1 V.

Data-sheet limits (distance from each rail)

Signal

Enter the supplies, the four data-sheet limits and the gain to see the usable input range.

Dashed outline: allowed range. Solid bar: range the signal needs. Dashed bar: shortfall.

No valid result to draw.

Show the steps

Interactive calculation is unavailable until JavaScript loads. The formulas, worked examples and references below remain available.

Check whether an op-amp circuit's input common-mode voltage and output swing stay inside the limits you enter from the data sheet, and find the usable input range.

How to use

Choose Non-inverting or Inverting.

Enter the supply rails; use 0 V as the negative supply for a single-supply circuit.

Enter the input common-mode and output limits from the data sheet as volts from each rail.

Enter the gain, the reference voltage and the input signal's lowest and highest values.

Read whether the signal fits, the margins and the usable input range. Copy result copies labeled values; Reset restores the starting fields.

Science

With negative feedback an op amp keeps its two inputs at the same voltage. That shared voltage, the common-mode voltage, must stay inside the range the data sheet guarantees; outside it the input stage stops working and the output is wrong even if it looks normal.

In a non-inverting stage the signal drives the non-inverting input, so the common-mode voltage moves with the signal and the whole input range must fit. In an inverting stage the non-inverting input sits at the reference, so the common-mode voltage stays at VREF whatever the signal does.

The output can only swing to within some distance of each rail, and that distance grows with load current. Data sheets give both limits as distances from the rails, which is why the same part fits on ±15 V and fails on 3.3 V.

On a single supply an inverting stage with a 0 V reference would need a negative output, which it cannot make. Moving the reference to mid-supply centres both the common mode and the output.

Limitations: the limits are the single numbers you enter; real limits change with load, temperature and supply, and rail-to-rail inputs can change offset where their two input stages cross over. The check is for DC and slow signals; it does not cover slew rate, bandwidth or input differential limits.

Formulas

Allowed common mode: CML = VS− + hCL, CMH = VS+ − hCH.

Allowed output: OL = VS− + hOL, OH = VS+ − hOH.

Non-inverting: VCM = Vin; Vout = VREF + G × (Vin − VREF).

Inverting: VCM = VREF; Vout = VREF − G × (Vin − VREF).

Margins: low = needed minimum − allowed minimum; high = allowed maximum − needed maximum; negative means it does not fit.

Examples

5 V supply, inputs 0 V to 1.5 V below VS+, output 0.1 V from each rail, non-inverting gain 2, input 0–2 V: Common mode fits; output needs 0–4 V and is 0.1 V short at the low end; usable input 0.05–2.45 V. A rail-to-rail output still cannot reach 0 V.

Same op amp, inverting gain 1, VREF 0 V, input 0–1 V: Output 0 to −1 V: 1.1 V below the low limit. Common mistake: a single-supply inverting stage needs a reference above 0 V.

Same op amp, inverting gain 1, VREF 2.5 V, input 0.5–4.5 V: Output 0.5–4.5 V, margins 0.4 V; common mode 2.5 V, margins 2.5 V and 1 V. Usable input 0.1–4.9 V.

±15 V, inputs 2 V from each rail, output 1.5 V from each rail, non-inverting gain 10, input ±1.2 V: Fits, smallest margin 1.5 V; usable input ±1.35 V. Output limits bind first.

5 V, inputs 0.1 V beyond each rail (headroom −0.1 V), output 0.1 V, follower, input 0–5 V: Common mode fits with 0.1 V margins; output 0.1 V short at both ends. Boundary: a rail-to-rail input does not make a rail-to-rail output.

References

TI: Understanding Operational Amplifier Specifications (SLOA011B)

TI: Handbook of Operational Amplifier Applications (SBOA092B)

TI: Single-supply 2nd-order MFB high-pass filter circuit (SBOA230)

TI: Three Op Amp Instrumentation Amplifier Circuit (SBOA282A)

TI: INA128/INA129 data sheet (SBOS051G)