The Ideal Op-Amp Model
An operational amplifier (op-amp) is a high-gain differential voltage amplifier with two inputs, an inverting input (marked "-") and a non-inverting input (marked "+"), and a single output. Almost every op-amp circuit analysis starts from a simplified ideal op-amp model built on four assumptions: infinite open-loop voltage gain (the raw gain between the two inputs and the output, before any feedback is applied), infinite input impedance (no current flows into either input pin), zero output impedance (the output behaves like a perfect voltage source regardless of load), and infinite bandwidth (gain does not roll off with frequency). No real op-amp fully satisfies any of these, but for a huge share of practical design work the ideal model predicts circuit behavior accurately enough, and the departures from it are well-understood, well-characterized non-idealities that only need to be checked when a design pushes into their territory.
The Virtual Short and Why It Works
The single most useful consequence of the ideal model is the virtual short (sometimes called a virtual ground when one input is tied to ground). Because open-loop gain is assumed infinite, any nonzero voltage difference between the two inputs would drive the output instantly to one of its supply rails. In a circuit with negative feedback — where a portion of the output is routed back to the inverting input — the only stable operating condition is for the op-amp to drive its output to whatever value makes the voltage difference between its two inputs collapse to zero. The two input pins therefore behave as though they were shorted together, even though no current actually flows between them (that is the "virtual" part). This single idea, that V+ effectively equals V- whenever negative feedback holds the op-amp in its linear operating region, is what makes closed-form analysis of op-amp circuits possible without ever needing to know the op-amp's actual open-loop gain.
Negative Feedback: Trading Raw Gain for Precision
Negative feedback is the practice of feeding a fraction, β, of the output signal back to the inverting input. The resulting closed-loop gain works out to A_CL = A_OL / (1 + A_OL·β). When the open-loop gain A_OL is very large, as it is in virtually every real op-amp (commonly 100,000 or more), this expression collapses to A_CL ≈ 1/β — the closed-loop gain becomes almost entirely determined by the feedback network, which in practice means a pair of passive resistors, rather than by the op-amp's own gain. This matters enormously in practice because open-loop gain varies significantly between individual units of the same part number, drifts with temperature and supply voltage, and is generally not tightly specified by manufacturers. A resistor ratio, by contrast, can be held to a fraction of a percent tolerance and barely drifts at all. Negative feedback is therefore not just a stability mechanism — it is the reason op-amp circuits can deliver precise, repeatable gain using an active device whose own raw gain is loosely controlled.
Core Op-Amp Topologies
Inverting Amplifier
The input signal drives one end of a resistor Rin, whose other end connects to the inverting input, which is also the feedback node. A feedback resistor Rf runs from the output back to that same node, and the non-inverting input is tied to ground. Because the inverting input is a virtual ground, the current through Rin (Vin/Rin) has nowhere to go but through Rf to the output, giving Vout = -Rf/Rin × Vin. The negative sign reflects the 180-degree phase inversion between input and output. The circuit's input impedance, as seen by the source, is simply Rin.
Non-Inverting Amplifier
The input signal drives the non-inverting input directly, while a voltage divider made of Rf and Rin (Rin's free end tied to ground) sets the feedback fraction at the inverting input. Since V- must track V+, the gain works out to Vout = (1 + Rf/Rin) × Vin. Notice the gain can never be less than 1, and the phase is preserved (no inversion). Because the source drives the op-amp's own high-impedance input directly, this topology draws negligible current from the signal source, which is its main advantage over the inverting configuration. Setting Rf = 0 and removing Rin (or setting it to infinity) produces the special case of a voltage follower (buffer), with unity gain and very high input impedance — used purely to isolate a sensitive source from a loading downstream circuit.
Summing Amplifier
Multiple input signals, each through its own resistor, meet at a common virtual-ground node, with a single feedback resistor Rf to the output. Each input current is independent (they all sum at the virtual ground without interacting), giving Vout = -Rf × (V1/R1 + V2/R2 + ... + Vn/Rn). Making all input resistors equal turns this into a simple inverting adder; using different resistor values lets each input be weighted differently, which is exactly how a resistor-ladder audio mixer or a simple resistor-based digital-to-analog converter works.
Difference (Differential) Amplifier
The classic four-resistor difference amplifier applies V1 through R1 to the inverting input (with Rf as its feedback resistor) and V2 through R3 to the non-inverting input (with R4 from that input to ground). When the resistor ratios are matched, Rf/R1 = R4/R3, the circuit rejects any voltage common to both inputs and amplifies only their difference: Vout = (Rf/R1) × (V2 - V1). This matched-ratio requirement is exactly why precision instrumentation amplifiers (a refined, higher-input-impedance descendant of this circuit) are built around laser-trimmed resistor networks — even small ratio mismatches degrade the circuit's ability to reject common-mode noise, which is the entire point of using a differential measurement in the first place.
Integrator
Replacing the feedback resistor with a capacitor C turns the inverting amplifier into an integrator: the constant current forced through Rin by Vin charges the feedback capacitor over time rather than developing an instantaneous voltage, so the output becomes the running time-integral of the input, scaled by -1/(RC): Vout(t) = -1/(RC) ∫ Vin dt, plus whatever initial voltage the capacitor started with. Integrators are the building blocks of analog computers, ramp and triangle-wave generators, and active filters, though real integrators need a large parallel resistor or periodic reset across the capacitor in practice, since any small DC offset at the input otherwise integrates without bound and eventually saturates the output.
Comparator
A comparator uses an op-amp with no negative feedback at all — the two inputs are compared directly, and because open-loop gain is enormous, the output saturates hard to one supply rail or the other depending on which input is higher. There is no virtual short here, since the absence of feedback means the two inputs are never forced toward equality; the circuit deliberately exploits the op-amp's raw open-loop gain rather than taming it. Many op-amps are not well suited to comparator duty (their output stages and internal compensation are optimized for linear feedback operation and can respond sluggishly near the rails), which is why dedicated comparator ICs exist as a distinct product category.
| Topology | Gain Equation | Input Impedance | Typical Use |
|---|---|---|---|
| Inverting amplifier | Vout = -Rf/Rin × Vin | Rin | General-purpose gain with phase inversion, summing junctions |
| Non-inverting amplifier | Vout = (1 + Rf/Rin) × Vin | Very high (op-amp's own) | Amplifying a weak or high-impedance source without loading it |
| Voltage follower | Vout = Vin | Very high | Buffering / isolating a source from a downstream load |
| Summing amplifier | Vout = -Rf(V1/R1 + V2/R2 + ...) | Ri per channel | Audio mixing, weighted resistor DACs |
| Difference amplifier | Vout = (Rf/R1)(V2 - V1) | Moderate, sets by resistor network | Rejecting common-mode noise, sensor bridges |
| Integrator | Vout(t) = -1/(RC) ∫ Vin dt | Rin | Ramp generation, active filters, analog computing |
| Comparator | Output saturates to +Vsat or -Vsat | Very high | Threshold detection, zero-crossing detection |
Real Op-Amp Non-Idealities
Real op-amps depart from the ideal model in several well-characterized ways that matter once a design pushes into precision, high-frequency, or large-signal territory.
Input offset voltage (Vos) is a small DC error, typically microvolts to a few millivolts, caused by unavoidable mismatch between the transistors in the input differential pair. It appears at the output multiplied by the circuit's noise gain (1 + Rf/Rin), so high-gain precision stages need op-amps with low, well-specified Vos, or need external trimming/auto-zero techniques.
Gain-bandwidth product (GBW) describes how open-loop gain rolls off with frequency: for a standard voltage-feedback op-amp, the product of closed-loop gain and closed-loop -3 dB bandwidth is approximately constant and equal to GBW. A higher closed-loop gain therefore buys less usable bandwidth for a given part — doubling the gain roughly halves the bandwidth. Designers pick an op-amp whose GBW, divided by the intended closed-loop gain, leaves comfortable headroom above the highest frequency the circuit actually needs to pass.
Slew rate (SR) is the maximum rate of change the output can physically produce, set by the current available to charge the op-amp's internal compensation capacitance. It is a large-signal limitation, independent of GBW: a signal can sit well within the small-signal bandwidth and still be distorted if its required slope (2π × frequency × peak amplitude, for a sine wave) exceeds the op-amp's slew rate, an effect called slew-rate limiting or slew distortion.
Worked Example: Designing an Inverting Amplifier for a Specified Gain
Suppose a sensor signal up to 20 kHz and ±0.5 V peak needs to be amplified to a gain of -10 (output up to ±5 V, or 10 V peak-to-peak), and the source can tolerate a few kilohms of loading.
Step 1 — Resistor selection. Choose Rin = 2 kΩ (a reasonable compromise: low enough to keep noise contribution modest, high enough to avoid overloading the source or the op-amp's output drive). For a gain magnitude of 10, Rf = 10 × Rin = 20 kΩ.
Step 2 — Bias current compensation. To balance the small input bias currents flowing into both op-amp inputs (a second-order non-ideality not covered above but worth a quick check), a resistor equal to Rin ∥ Rf is often added in series with the grounded non-inverting input: (2 kΩ × 20 kΩ) / (2 kΩ + 20 kΩ) = 40,000/22 ≈ 1.8 kΩ.
Step 3 — Bandwidth check. With a gain of 10 and a 20 kHz signal, applying roughly a 10x safety margin gives a minimum required GBW of about 10 (gain) × 20 kHz × 10 (margin) = 2 MHz. Selecting an op-amp with GBW = 3 MHz gives a closed-loop bandwidth of approximately 3 MHz / 10 = 300 kHz, comfortably above the 20 kHz requirement.
Step 4 — Slew rate check. The output must swing a 5 V peak sine wave at 20 kHz. The required slew rate is SR_required = 2π × f × Vpeak = 2π × 20,000 × 5 ≈ 628,000 V/s, or about 0.63 V/µs. An op-amp such as the TL072, rated at roughly 13 V/µs, gives a full-power bandwidth of SR / (2π × Vpeak) = 13,000,000 / (2π × 5) ≈ 414 kHz — far above the 20 kHz signal, so no slew-rate distortion will occur.
This four-step process — set the resistor ratio for gain, add bias compensation, then separately verify GBW and slew rate against the actual signal's frequency and amplitude — is the standard workflow for turning an ideal-model gain equation into a design that will behave correctly with a real, physical op-amp.
Choosing the Right Op-Amp for the Job
Beyond the topology itself, matching an op-amp's non-ideal specifications to the application is what separates a working design from one that looks correct on paper but fails on the bench. Precision DC measurement work (sensor signal conditioning, instrumentation) should prioritize low offset voltage and low offset drift over raw speed. Audio and general-purpose signal conditioning usually has generous bandwidth and slew rate margin available and can prioritize noise performance and cost. High-frequency or fast-pulse applications must verify both GBW and slew rate against the actual signal, not just the nominal clock or update rate. And any circuit built around a virtual-short assumption should double-check that the feedback path is genuinely negative feedback — connecting feedback to the wrong input turns a stable amplifier into a comparator-like circuit that slams to a supply rail instead of settling to a linear operating point.