← Back to ElectroLab
Electronics & RFDatasheet GBW

Op-Amp Gain Calculator

Choose the configuration, enter the resistors and signal to get gain, swing, bandwidth and slew limits.

Ainv = −Rf/Rin  •  Anon = 1 + Rf/Rg  •  BW = GBW / noise gain  •  fFPBW = SR / (2πVpk)
Calculated Result
—

Step-by-step

  1. Enter valid values to begin.

Model: ideal op-amp with a single-pole response, so closed-loop bandwidth = GBW / noise gain; for the differential amplifier the signal gain is Rf/R1 and noise gain 1 + Rf/R1. Single-supply mode assumes the signal is biased at half the supply, so the output swings ±(V/2 − headroom). GBW and slew-rate presets are typical datasheet values and vary part to part and with supply and load; verify for the exact part (a 741-class device is about 1 MHz and 0.5 V/µs). The differential CMRR estimate is the usual worst-case (1 + Rf/R1) / (4 × tolerance) for matched-ratio resistors and does not include the op-amp’s own CMRR. Bias-current error shown is Ib × Rf without compensation resistor.

Manufacturer Datasheet GBW • IEC 60063

Op-Amp Gain: Resistor Ratios, Noise Gain and What Limits Bandwidth

Core Engineering Principles

With negative feedback an op-amp makes its two inputs equal, and the resistor network sets how much of the output is fed back. That gives us three simple results: the inverting stage has gain −Rf/Rin and presents Rin to the source; the non-inverting stage has gain 1 + Rf/Rg and a very high input impedance; and the differential stage amplifies the difference with gain Rf/R1, provided the R3/R2 ratio matches Rf/R1. Resistor matching matters: with 1% resistors, the common-mode rejection of a gain-of-10 stage is only about 49 dB however good the op-amp is.

Gain isn’t free, though. The open-loop gain falls at 20 dB per decade, so the closed-loop bandwidth is the gain-bandwidth product divided by the noise gain, which is 1 + Rf/Rg in every configuration, even the inverting one. A second limit is slew rate: a large output swing at high frequency is limited to SR/(2π Vpk), whatever the small-signal bandwidth says. The output also stops 1.5 to 2 V short of the rails unless the part is rail-to-rail. We check clipping, bandwidth and slew limit together.

Inverting Av = −Rf/Rin  •  Non-inverting Av = 1 + Rf/Rg  •  Differential Ad = Rf/R1
BW = GBW / (1 + Rf/Rg)  •  fFPBW = SR / (2π Vpk)  •  dB = 20 log10|Av|

NEC & Standard References

Manufacturer datasheets define gain-bandwidth product, slew rate, bias current and output swing, and the typical values in the presets here (LM358 near 1 MHz, TL072 near 3 MHz, OPA2134 near 8 MHz, NE5532 near 10 MHz) come from them and vary with the part and the supplier. IEC 60063 supplies the E-series values for the resistors, and tolerance classes come from the resistor’s own specification.
Worked Example: Gain-of-11 Sensor Amplifier
Given: non-inverting stage, Rg = 1 kΩ, Rf = 10 kΩ, 500 mV peak at 5 kHz, ±12 V supply, 1.5 V headroom, GBW 1 MHz, SR 0.5 V/µs (741 class), Ib = 80 nA.
1. Av = 1 + 10 / 1 = 11 V/V, which is 20.83 dB.
2. Vout = 11 × 0.5 = 5.5 V peak against a 10.5 V limit, so no clipping.
3. BW = 1 MHz / 11 = 90.9 kHz; the gain error at 5 kHz is 0.15%.
4. fFPBW = 0.5 V/µs / (2π × 5.5 V) = 14.5 kHz, above the 5 kHz signal.
5. Bias error ≈ 80 nA × 10 kΩ = 0.8 mV at the output.
Safety & Installation Rules
  • Slew limiting looks like distortion. A sine wave that turns triangular is slew-limited; reduce amplitude or choose a faster op-amp.
  • Single-supply needs a bias. Without a mid-supply reference, an AC signal clips on its negative half-cycle.
  • Check input range. Many op-amps misbehave if the inputs approach the rails; the non-inverting input range is not the same as the output swing.
  • Resistor tolerance sets CMRR. A differential stage is only as good as its resistor matching; use thin-film networks for precision.

Gain and Bandwidth for Common Resistor Values

Non-inverting gain Av = 1 + Rf / Rg with Rg = 1 kΩ, and bandwidth BW = GBW / A.
RfGaindBBW at 1 MHz GBWBW at 10 MHz GBW
1 kΩ26.0 dB500 kHz5 MHz
4.7 kΩ5.715.1 dB175 kHz1.75 MHz
10 kΩ1120.8 dB90.9 kHz909 kHz
47 kΩ4833.6 dB20.8 kHz208 kHz
100 kΩ10140.1 dB9.9 kHz99 kHz

Slew Rate Limits the Output Swing

A sine that becomes triangular is slew-limited.

Full-power bandwidth f = SR / (2π Vpk).
Slew rate1 V peak5 V peak10 V peak
0.5 V/µs79.6 kHz15.9 kHz7.96 kHz
1 V/µs159 kHz31.8 kHz15.9 kHz
13 V/µs2.07 MHz414 kHz207 kHz
20 V/µs3.18 MHz637 kHz318 kHz

Typical Op-Amp Figures

Common op-amp types, typical values only.
ClassGBWSlew rate
741 general purpose1 MHz0.5 V/µs
TL07x JFET3–4 MHz13 V/µs
NE5532 audio10 MHz9 V/µs
LM358 single supply1 MHz0.3 V/µs
Fast CMOS10–100 MHz10–100 V/µs

Worked Example: Inverting Gain of 10

Rin = 10 kΩ and Rf = 100 kΩ give Av = −10 and an input impedance of 10 kΩ. A 0.3 V peak input gives 3 V peak out, within a ±9 V supply. The noise gain is 11, so a 1 MHz GBW op-amp has a bandwidth of 90.9 kHz.

Op-Amp Questions

What is the gain of an inverting amplifier?

Av = −Rf / Rin.

What is the gain of a non-inverting amplifier?

Av = 1 + Rf / Rg.

How do I find bandwidth?

BW = GBW / noise gain. A 1 MHz op-amp at gain 10 gives about 100 kHz.

What is slew rate?

The maximum rate of change of the output. It limits large, fast signals.

Why does the output clip?

The output cannot reach the supply rails. Check headroom against the output swing.

Why do I need a bias for single-supply?

An AC signal needs a mid-supply reference or it clips on negative half-cycles.