Operational Amplifier (Op-Amp)

On this page

The "voltage equality" between the inverting and non-inverting terminals is not a hard-wired property of the op-amp itself, but an approximation resulting from high gain, stable negative feedback, and linear operation. Once the input range, output headroom, or dynamic capabilities are insufficient, continuing to use the virtual short concept will yield impossible results. This article first presents the conditions for using this approximation, then derives common circuits from node current equations.

TaskMust Confirm FirstReading Location
Calculate circuits using virtual short and virtual openFeedback polarity, stability, and linear rangeConditions for the two approximations
Amplify AC while maintaining single-supply biasPosition and capability of VrefInverting, non-inverting, and follower
Extract differential or integrateResistor ratios and DC pathDifferential and integrator
Estimate error and bandwidthNoise gain, offset, and bias currentHow non-ideal quantities affect the output
Determine if it can drive a real loadCommon-mode, swing, current, SR, and stabilityFrom formulas to practical connections

Conditions for the Two Approximations

Voltage-feedback op-amps can describe behavior under certain linear conditions using the high-gain differential relationship . The ideal model assumes zero input current and infinite open-loop gain, but real devices have bias currents, offset, finite bandwidth, and output limitations.

"Virtual open" implies that ideal input terminals do not draw current; it does not mean there is no current at the inverting node: current still flows through the input resistor, feedback resistor, and parasitic capacitance. "Virtual short" implies that when stable negative feedback is present and the op-amp is not operating outside its range, the voltage difference between the two inputs is very small; it does not mean the two terminals are physically shorted.

If the output is saturated near the supply rails, or if the input common-mode voltage exceeds the specified range, connecting feedback to the inverting terminal does not guarantee a virtual short. If the loop is unstable, the existence of a static algebraic solution does not guarantee that the circuit will settle at that point. The positive feedback in comparators and open-loop comparison applications cannot be solved using the virtual short concept; ordinary op-amps may also not be suitable for use as comparators.

Inverting, Non-Inverting, and Follower

Inverting: Use Node Currents Instead of Memorizing the Negative Sign

The input is connected to the inverting terminal via , and feeds back from the output to this node, while the non-inverting terminal is connected to . Assuming and zero input current, the node equation is:

,

so . It simplifies to only when .

−+Rin = 10 kΩVinVoutRf = 100 kΩVref = 2.5 VInverting Amplifier: Input current flows through the feedback resistor to the output, not into the ideal input terminalSupply pins omitted; assuming feedback is stable and all ports are within the linear range, Vout = Vref − 10(Vin − Vref).

In the diagram, , , and . When , the output is ; the input is above the reference, and the output is below the reference. The input branch current of is balanced by the feedback network, not by flowing into the chip through the ideal op-amp input terminal.

Assuming the actual load output range is , the usable input range derived from this equation is approximately , and other device input common-mode and other conditions must be verified. In a single-supply circuit, you cannot ground the non-inverting terminal and still expect a positive input to produce a negative output without providing a negative supply.

Looking into this inverting stage from the signal source, the input impedance in the frequency band where the approximation is valid is primarily , not the extremely high input impedance of the op-amp chip. Source series impedance also participates in the actual gain, and the loading effect of the preceding stage cannot be ignored.

Non-Inverting: Output Voltage Divider Follows Input

The non-inverting terminal is connected to the input, and the inverting terminal is connected to a voltage divider formed by from the output and to . Writing the equation for the inverting node and applying the virtual short yields .

+−VinVoutRfRgVrefNon-Inverting Amplifier: Output voltage divider feeds back to the inverting terminal, input connected to non-inverting terminal

When , the signal gain is ; the input terminal mainly handles bias and dynamic capacitive currents, but the actual input range is still constrained by the device. is not a resistor in series with the input signal; the circuit connection should not be drawn as the input being grounded simultaneously.

The follower connects the output directly to the inverting terminal, with the non-inverting terminal connected to the input, targeting a gain of 1. The device must support unity-gain stability, and the input common-mode, output swing, and load current must all allow for this voltage. A follower can buffer high-impedance sources, but it is not a power source for arbitrary currents; directly driving a large capacitive load may also affect stability.

Does the virtual short survive clipping?

At the default linear operating point, more open-loop gain drives the differential voltage toward zero. At Vin=3 V the lower output limit prevents tracking even at larger gain. Input-branch current still balances feedback current without entering the ideal input.

Preparing the visual
Does the virtual short survive clipping?

Feedback reduces differential voltage in the linear region. After clipping, KCL still holds but the node no longer tracks the reference.

Differential and Integrator: Formulas Require Ratios and DC Paths

Four-Resistor Differential Stage

Define from to the inverting terminal, and from the output feeding back to the inverting terminal; from to the non-inverting terminal, and from the non-inverting terminal to . If , the ideal equation is .

What is required is matching of the two ratios, not forcing all corresponding resistors to be absolutely equal. Ratio errors will convert common-mode voltage into output error, and source impedance mismatch will also change the effective ratio; the op-amp's own high CMRR cannot eliminate mismatch in the external resistor network. When differential signals are small and common-mode voltages are large, instrumentation amplifiers or matched networks may be more suitable, but the entire common-mode and output operating range must still be checked.

Integrators Must Handle DC Errors

Replace the feedback resistor of the inverting stage with , keep the input passing through , and connect the non-inverting terminal to a constant . Using as the signal reference, the ideal integration equation includes an initial value:

.

Without a DC feedback path, small DC inputs, offset, or bias currents will continuously charge the capacitor, eventually pushing the output to saturation. Practical integrators can place a large resistor in parallel with the feedback capacitor to provide finite DC gain, or design reset and controlled initial values; thereafter, it approximates integration only within the applicable frequency band and can no longer claim to satisfy the ideal equation from DC to infinite frequency.

For example, with and , a constant differential input of corresponds to an output slope of . This small input error, if sustained for several seconds, can consume a significant amount of output headroom. Capacitor leakage, dielectric absorption, and bias currents also need to be considered for precision integration applications.

How Non-Ideal Quantities Enter the Output

Signal Gain and Noise Gain Are Different

Zeroing the input signal source, the gain from the op-amp's own equivalent input voltage error to the output is called the noise gain. For a simple inverting resistor stage, the signal gain is , but the noise gain is . For a non-inverting stage, the signal gain and noise gain are the same in this simple structure. Analog Devices: Noise Gain

The inverting gain of in the diagram corresponds to . If the input offset voltage is , this single term causes an approximate output error of , not . Actual errors will also stack with feedback resistor ratios, , and other sources; for uncorrelated random noise and deterministic worst-case errors, appropriate synthesis methods should be used.

Input bias currents flowing through source/feedback impedances also create offsets. For certain input structures, making the DC resistance seen by both terminals similar helps reduce the effect of matched bias currents, but it does not eliminate input offset current, and may also increase resistor thermal noise. Adding "" to the non-inverting terminal should not be treated as a mandatory step applicable to all input stages.

Bandwidth Approximation is Calculated Based on Noise Gain

For voltage-feedback op-amps with an approximate single dominant pole, the closed-loop small-signal bandwidth can often be estimated as . If and the inverting signal gain is , the result is approximately , not directly calculated as based on the magnitude of the signal gain. Frequency-dependent feedback networks require looking at the crossover and phase of the noise gain curve and the open-loop response. Analog Devices: Gain-Bandwidth Relationship

is not a strictly constant product for all op-amps at all frequencies. Current-feedback structures, de-compensated op-amps, and multi-pole behaviors have different limitations; some op-amps require a minimum stable noise gain and cannot be directly configured as followers.

From Formulas to Practical Connections

Check Input Range, Output Range, and Supply Range Separately

Supply voltage, input common-mode range, and loaded output swing are different specifications. "Rail-to-rail input" and "rail-to-rail output" describe different ports separately; RRIO does not guarantee that the output reaches both supply rails precisely under all loads. The absolute maximum voltage allowed by input protection is not equal to the common-mode range for normal linear operation. TI: Rail-to-Rail Port Boundaries

is a real node with impedance and noise. Dividing the supply voltage in half using two resistors does not automatically create a "virtual ground" capable of handling arbitrary signals or load currents; buffering must be decided based on the connected current, bandwidth, and error. The circuit also does not always need ; the bias position should be determined jointly by the available input and output ranges.

Distinguish Peak and Peak-to-Peak for Slew Rate

The maximum slope of a sine wave output is . If a hypothetical device has , the peak limit derived from the slope at is approximately , corresponding to a peak-to-peak value of approximately ; do not mistakenly label as .

This is only a slope boundary; a single supply often hits output headroom limits first, and satisfying the slope condition does not mean a certain THD specification has been met. Small-signal response, output amplitude, load, and distortion specifications should be viewed together.

Stability, Unused Channels, and Power-On State

Capacitive loads and output impedance can introduce additional poles; isolation resistors or compensation networks can sometimes improve stability, but they also change output error and frequency response. Do not unconditionally parallel a feedback capacitor just because ringing is observed; first confirm the loop and device recommended conditions.

Unused channels need a defined and legal input state. For devices that support unity-gain stability, a common practice is to configure them as followers and bias the non-inverting terminal within the allowed input/output range; do not leave both inputs floating, nor unconditionally connect the follower input to ground in a single-supply configuration. De-compensated devices must meet their stability gain requirements. TI: Connecting Unused Op-Amps

Power supply decoupling, current loops, and feedback node layout also affect behavior. Component values and placement are determined by the device application notes and system bandwidth; you cannot prove the design is complete just by saying "place a capacitor on each power pin." Power-on sequence, inputs appearing before supply, and outputs being driven externally also require checking allowed conditions.

How to Filter by Task

TaskMore Useful Filtering Conditions
Low-frequency precision measurementOffset, drift, bias current, low-frequency noise, and source impedance
High-impedance sensorsBias/leakage, input capacitance, and PCB surface leakage
Audio or AC signalsNoise, THD+N, swing, and SR at specified gain/load
ADC front-endSettling time, sampling load, drive current, and common-mode range
Battery-poweredTotal quiescent power, low-supply performance, input/output range

CMOS, JFET, bipolar inputs, and chopper-stabilized technologies each have trade-offs; model suffixes, generations, and temperature grades may also change parameters. When comparing, use guaranteed values and curves under the same conditions, and do not use a "typical parameters table" without load, supply, and test conditions as the final basis.

from math import pi, isclose
rin, rf, ref, vin = 10000, 100000, 2.5, 2.6
out = ref-rf/rin*(vin-ref)
assert isclose(out, 1.5)
assert isclose((vin-ref)/rin+(out-ref)/rf, 0, abs_tol=1e-15)
noise_gain = 1+rf/rin
assert noise_gain == 11
bandwidth = 1e6/noise_gain
error = 100e-6*noise_gain
peak = .5e6/(2*pi*20000)
assert isclose(error, .0011)
assert 3.97 < peak < 3.99
assert isclose(.001/(100000*100e-9), .1)
print(f"Output {out:.2f} V, Noise Gain {noise_gain:.0f}, Single-Pole Bandwidth approx {bandwidth/1000:.2f} kHz")
print(f"Offset Contribution {error*1000:.2f} mV; SR Boundary {peak:.3f} Vpeak / {2*peak:.3f} Vpp")

The next article Power Supply Circuits will apply feedback and device capabilities to voltage regulation and energy conversion, and continue to distinguish between ideal relationships and dynamic operating conditions.

From feedback circuits to dynamic analysis

Static closed-loop gain alone does not determine oscillation. Use dynamic modeling to separate inputs, states, and outputs, then frequency response and margins for loop gain, phase, and delay. Apply the actual op-amp, load, and operating-point parameters when returning to the circuit; the thermal example supplies a method, not electronic component values.