ECParts Toolkit LogoECParts Toolkit

Op-Amp Guide

Op-Amp Feedback, Gain, and Signal Conditioning Basics

Learn how feedback networks set op-amp gain, how inverting and non-inverting stages differ, and where ideal closed-loop equations need real device checks before a circuit is released.

Reading Time
17 min
Difficulty
Intermediate
Last Updated
September 12, 2026

Introduction

Operational amplifiers are often introduced as ideal blocks with infinite gain and simple resistor formulas. Those formulas are useful, but in real circuits they only become reliable after the feedback network, signal range, supply rails, bandwidth, slew rate, source impedance, load, and error terms are checked together.

In practical hardware design, an op-amp stage is usually part of a signal-conditioning chain. It may amplify a small sensor voltage, buffer a high-impedance node, subtract two signals, scale a signal into an ADC range, or isolate one circuit from another. Feedback is the mechanism that turns a high-gain analog IC into a predictable engineering building block.

This guide focuses on the shared foundation behind ECParts op-amp gain, buffer, differential, instrumentation, slew-rate, and gain-bandwidth tools. Comparator behavior and active-filter design are mentioned only where they define boundaries; they deserve their own focused design treatment.

Op-amp negative feedback conceptA simplified op-amp diagram showing an input signal, output signal, and negative feedback path through a feedback network.+-input signaloutputnegative feedback networklarge open-loop gain
Negative feedback makes a linear op-amp stage behave according to the external network, as long as the real device can supply the required output swing, bandwidth, current, and stability margin.

What Negative Feedback Does

An open-loop op-amp has very high voltage gain. Without feedback, a tiny input difference can drive the output toward a supply rail. Negative feedback returns a controlled portion of the output to the inverting input. In a linear circuit, the op-amp output moves until the voltage difference between the inputs is very small.

The useful result is that closed-loop gain is mostly determined by external components. Resistor ratios become the design variables, and the op-amp supplies enough output voltage to satisfy the relationship. This is the ideal assumption behind the Non-Inverting Op-Amp Gain Calculator and Inverting Op-Amp Gain Calculator.

Feedback does not remove all real-world behavior. If the output cannot swing far enough, if the input common-mode voltage is invalid, if the signal is too fast, or if the load destabilizes the amplifier, the actual circuit will depart from the ideal equation.

Open-Loop Gain vs Closed-Loop Gain

Open-loop gain is the gain of the op-amp IC without external feedback. It is usually very high at low frequency, but it is not directly useful as a precision circuit gain. Closed-loop gain is the gain of the complete feedback circuit. Engineers normally design with closed-loop gain because it is set by external networks and can be verified from the schematic.

For an ideal voltage-feedback op-amp with sufficient loop gain, valid signal range, and stable feedback, the input error becomes small enough that the two inputs can be treated as nearly equal. That approximation leads to the common resistor-ratio formulas. As frequency rises, available open-loop gain falls, so the closed loop becomes less ideal.

Closed-loop formulas are design equations, not a promise that any op-amp can deliver the requested gain at any frequency, load, output voltage, or supply voltage.

Common Feedback Topologies

The same op-amp can behave very differently depending on where the input signal enters and how the feedback path is connected. The table below summarizes the common ideal relationships used by the related calculators.

Common op-amp feedback topologies
CircuitIdeal RelationshipOutput PolarityTypical Use
Non-inverting amplifierAv = 1 + Rf / RgPositiveHigh input impedance voltage gain
Inverting amplifierAv = -Rf / RinInvertedWeighted gain, level shifting around virtual ground, summing
Voltage followerAv = 1PositiveBuffering a source without intentional voltage gain
Differential amplifierVout = (R2 / R1) x (V2 - V1)Depends on input polaritySubtracting two signals when resistor ratios are matched
Instrumentation amplifierGain often set by an external resistorPositive differential outputLow-level bridge and sensor measurement with high input impedance

Non-Inverting Amplifier Gain

A non-inverting amplifier applies the signal to the non-inverting input. The feedback divider connects the output, the inverting input, and the reference node. In the ideal model, the inverting input is driven to match the non-inverting input, so the output must be larger than the input by the divider ratio.

Formula reference

Non-Inverting Amplifier Gain

Av = 1 + Rf / RgVout = Av x VinGain(dB) = 20 log10(Av)

Variable definitions

Av
closed-loop voltage gain in V/V
Rf
feedback resistor from output to inverting input
Rg
resistor from inverting input to reference
Vin
input voltage
Vout
output voltage

Here, Rf is the feedback resistor from output to inverting input, and Rg is the resistor from inverting input to the reference node. If Rf is zero, the ideal gain becomes 1 and the circuit behaves like a voltage follower.

Inverting Amplifier Gain

An inverting amplifier applies the signal through an input resistor to the inverting input. The non-inverting input is usually tied to a reference node. Negative feedback holds the inverting input near that reference, creating a virtual ground for small-signal analysis.

Formula reference

Inverting Amplifier Gain

Av = -Rf / RinVout = Av x VinGain magnitude = |Av|Gain(dB) = 20 log10(|Av|)

Variable definitions

Av
signed closed-loop voltage gain
Rf
feedback resistor from output to inverting input
Rin
input resistor from signal source to inverting input
|Av|
gain magnitude used for dB conversion
Vin
input voltage relative to the reference node

The negative sign describes inversion. It should not be discarded in circuit analysis, even though dB gain uses the magnitude. The input resistance seen by the source is approximately Rin, so inverting stages can load a source more than non-inverting stages.

Voltage Followers and Buffers

A voltage follower connects the output directly back to the inverting input. The ideal gain is one, but the circuit still has high value: it can present high input impedance to a source and lower output impedance to the next stage.

Use a buffer when a sensor, divider, filter node, or reference source should not be heavily loaded. Check the Voltage Follower Calculator when reviewing input-output equality and load-current assumptions. A real buffer is still limited by output current, output swing, capacitive-load stability, and input common-mode range.

Differential and Instrumentation Stages

Differential circuits subtract one signal from another. A classic four-resistor differential amplifier needs matched resistor ratios to reject common-mode voltage. If the ratios are not matched, part of the common-mode signal appears at the output as an error.

Instrumentation amplifiers are often used for bridge sensors and low-level differential signals because they provide high input impedance and strong common-mode rejection. Many devices set gain with one external resistor, but exact formulas depend on the topology or IC family. Use the Differential Amplifier Calculator and Instrumentation Amplifier Calculator for ideal first-pass sizing, then check the real datasheet.

Gain in V/V and dB

Voltage gain in V/V is a linear ratio. A gain of 10 means the output voltage amplitude is ten times the input voltage amplitude, as long as the output remains in range. Decibels express that same voltage ratio on a logarithmic scale.

Formula reference

Voltage Gain in Decibels

Voltage gain ratio = |Vout / Vin|Gain(dB) = 20 log10(|Av|)20 dB corresponds to a voltage gain of 1040 dB corresponds to a voltage gain of 100

Variable definitions

Vout
output voltage amplitude
Vin
input voltage amplitude
|Av|
absolute voltage gain magnitude
dB
logarithmic voltage-gain expression

Use the absolute value for dB magnitude. A gain of -10 V/V and a gain of +10 V/V both have a 20 dB voltage-gain magnitude, but only the negative gain indicates inversion.

Signal Conditioning Workflow

Signal conditioning is the process of making a real-world analog signal usable by the next circuit stage. A useful op-amp design starts with the source, target range, reference level, noise limits, speed, and load instead of starting with a random gain value.

Signal conditioning tasks and op-amp design checks
TaskPurposeEngineering Check
ScaleBring a sensor or analog signal into an ADC or following circuit range.Gain, attenuation, or offset may be needed.
BufferPrevent source loading and drive a lower impedance node.Voltage followers are common but still limited by output current and stability.
SubtractMeasure the difference between two nodes.Resistor matching and common-mode range are critical.
SumCombine or weight multiple input signals.Inverting summing stages make polarity and resistor ratios important.
Limit bandwidthReduce noise or meet sampling requirements.Filter behavior must respect op-amp bandwidth and stability limits.

Bandwidth and Slew-Rate Limits

Many voltage-feedback op-amps have an approximate gain-bandwidth product. For simple small-signal voltage gain stages, usable bandwidth often decreases as closed-loop gain increases. The common estimate is bandwidth approximately equal to GBW divided by closed-loop gain, but the datasheet and topology define whether that estimate is valid.

Formula reference

Bandwidth and Slew-Rate Estimates

Small-signal estimate: bandwidth approximately GBW / |Av|Large-signal sine estimate: SR_required approximately 2 pi f Vpk

Variable definitions

GBW
gain-bandwidth product for the op-amp under applicable conditions
|Av|
closed-loop voltage-gain magnitude
SR_required
approximate slew-rate requirement
f
sine-wave frequency
Vpk
peak output voltage

The Op-Amp Gain Bandwidth Product Calculator is useful for small-signal estimates. The Op-Amp Slew Rate Calculator is used when output voltage must move quickly. Both checks matter: a circuit can pass a small-signal bandwidth estimate and still slew limit on a large output waveform.

When Ideal Equations Stop Being Enough

Ideal equations are the right starting point, but they are not the final design review. The following practical limits often decide whether an op-amp circuit works on the bench.

Practical op-amp limits
LimitWhy It Matters
Output swingThe output cannot exceed the available supply rails and usually cannot reach them exactly.
Input common-mode rangeThe input pins must remain inside the valid input voltage range for the device and supply.
Gain bandwidthClosed-loop gain reduces usable small-signal bandwidth in many voltage-feedback op-amps.
Slew rateLarge, fast output swings may be limited even when small-signal bandwidth looks adequate.
Input offset voltageSmall DC errors at the input are multiplied by the closed-loop gain.
Input bias currentInput currents create voltage errors through source and feedback resistances.
LoadingThe load can affect output swing, distortion, heat, and stability.
StabilityCapacitive loads and feedback networks can make a real amplifier oscillate.

Worked Examples

Example 1: Non-Inverting Gain

Inputs: Rf = 9 kOhm, Rg = 1 kOhm, Vin = 0.2 V.

Av = 1 + 9 kOhm / 1 kOhm = 10 V/V.

Vout = 10 x 0.2 V = 2.0 V.

Gain(dB) = 20 log10(10) = 20 dB.

Example 2: Inverting Gain

Inputs: Rf = 100 kOhm, Rin = 10 kOhm, Vin = 0.1 V.

Av = -100 kOhm / 10 kOhm = -10 V/V.

Vout = -10 x 0.1 V = -1.0 V.

The magnitude is 10 V/V, or 20 dB, with 180 degree inversion.

Example 3: Bandwidth Check

Inputs: GBW = 1 MHz, closed-loop gain = 100 V/V.

Estimated small-signal bandwidth = 1 MHz / 100 = 10 kHz.

If the signal needs 50 kHz bandwidth, this op-amp or gain plan is not sufficient.

These examples use ideal formulas. Before selecting parts, also check output swing, input range, load current, offset, bias current, noise, bandwidth, slew rate, and stability.

Design Tips

  • Choose topology from the signal problem: buffer, scale, invert, sum, subtract, or filter.
  • Keep resistor ratios clear and convert all resistance units before calculating gain.
  • Check whether the required output voltage can fit between the supply rails.
  • Verify input common-mode range for every input voltage and operating condition.
  • Use dB for gain comparison, but keep polarity and phase in the schematic analysis.
  • Check small-signal bandwidth and large-signal slew rate separately.
  • Use resistor values that balance noise, loading, bias-current error, and power consumption.
  • For precision circuits, include offset voltage, bias current, resistor tolerance, and drift.
  • For differential circuits, check resistor matching and common-mode rejection.
  • Prototype capacitive loads and high-gain layouts because stability is layout dependent.

Common Mistakes

  • Using the ideal closed-loop gain formula without checking supply rails, output swing, and input common-mode range.
  • Forgetting the negative sign in an inverting amplifier and then debugging the wrong signal polarity.
  • Confusing gain in V/V with gain in dB, especially when comparing amplifier stages.
  • Mixing ohms, kilohms, and megohms in feedback resistor ratios.
  • Assuming the small-signal bandwidth approximation applies to every op-amp and every configuration.
  • Checking bandwidth but ignoring large-signal slew-rate demand.
  • Using an op-amp as a comparator without considering recovery behavior, input limits, output stage behavior, and hysteresis.
  • Loading a high-value feedback network with measurement equipment or the next circuit stage.
  • Ignoring input bias current when feedback or source resistances are very large.
  • Treating a voltage follower as ideal while driving a heavy capacitive load.

Related Calculators

Related Engineering Guides

Support reference

FAQ

What does negative feedback do in an op-amp circuit?

Negative feedback routes part of the output back to the inverting input so the op-amp drives its output until the input error becomes very small. This makes the closed-loop behavior depend mainly on the external feedback network instead of the raw open-loop gain.

What is closed-loop gain?

Closed-loop gain is the gain of the op-amp circuit after feedback is applied. For ideal resistor-feedback amplifiers, it is set by resistor ratios such as Av = 1 + Rf / Rg for a non-inverting stage or Av = -Rf / Rin for an inverting stage.

Why is non-inverting gain always at least one?

In the standard non-inverting amplifier, the signal is applied to the non-inverting input and the feedback divider sets Av = 1 + Rf / Rg. With non-negative resistor values, that expression cannot be less than one.

Why is inverting amplifier gain negative?

The negative sign indicates phase inversion. A positive input voltage produces a negative output voltage relative to the reference node because the signal enters the inverting input through the input resistor.

How do I calculate op-amp gain in dB?

Use Gain(dB) = 20 log10(|Av|) for voltage gain. The absolute value is used because dB expresses magnitude; inversion is a phase relationship, not a negative power level.

Is bandwidth always equal to GBW divided by gain?

GBW / gain is a common first-order estimate for many voltage-feedback op-amps in simple closed-loop configurations. It is not a universal law for every device, every topology, every gain, or every large-signal condition.

How is slew rate different from bandwidth?

Bandwidth describes small-signal frequency response, while slew rate limits how fast the output voltage can change during large-signal operation. A sine wave may need SR approximately equal to 2 pi f Vpk even if the small-signal bandwidth appears sufficient.

Can I use an op-amp as a comparator?

Sometimes, but it is not the same operating mode as linear negative-feedback amplification. Comparator circuits often need hysteresis, defined input behavior, proper output interface, and recovery from saturation; a dedicated comparator is usually safer.

Summary

Op-amp feedback circuits are powerful because external networks set predictable closed-loop behavior. Non-inverting gain, inverting gain, buffering, differential measurement, instrumentation gain, dB conversion, bandwidth, and slew rate are connected parts of the same signal-conditioning workflow.

Start with the ideal formula, then check the real operating limits. A good op-amp design verifies signal range, supply rails, input common-mode range, output swing, load current, bandwidth, slew rate, offset, bias current, and stability before relying on the calculated gain.