Op-Amp Gain Calculator
Choose the configuration, enter the resistors and signal to get gain, swing, bandwidth and slew limits.
Step-by-step
- 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.
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.
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.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.
- 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
| Rf | Gain | dB | BW at 1 MHz GBW | BW at 10 MHz GBW |
|---|---|---|---|---|
| 1 kΩ | 2 | 6.0 dB | 500 kHz | 5 MHz |
| 4.7 kΩ | 5.7 | 15.1 dB | 175 kHz | 1.75 MHz |
| 10 kΩ | 11 | 20.8 dB | 90.9 kHz | 909 kHz |
| 47 kΩ | 48 | 33.6 dB | 20.8 kHz | 208 kHz |
| 100 kΩ | 101 | 40.1 dB | 9.9 kHz | 99 kHz |
Slew Rate Limits the Output Swing
A sine that becomes triangular is slew-limited.
| Slew rate | 1 V peak | 5 V peak | 10 V peak |
|---|---|---|---|
| 0.5 V/µs | 79.6 kHz | 15.9 kHz | 7.96 kHz |
| 1 V/µs | 159 kHz | 31.8 kHz | 15.9 kHz |
| 13 V/µs | 2.07 MHz | 414 kHz | 207 kHz |
| 20 V/µs | 3.18 MHz | 637 kHz | 318 kHz |
Typical Op-Amp Figures
| Class | GBW | Slew rate |
|---|---|---|
| 741 general purpose | 1 MHz | 0.5 V/µs |
| TL07x JFET | 3–4 MHz | 13 V/µs |
| NE5532 audio | 10 MHz | 9 V/µs |
| LM358 single supply | 1 MHz | 0.3 V/µs |
| Fast CMOS | 10–100 MHz | 10–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.