Op-Amp Gain Calculator
Compute the voltage gain (V/V and dB) of inverting and non-inverting op-amp amplifiers from the resistor values.
Inverting gain is negative (180° phase shift); non-inverting is always ≥ 1. Only the resistor ratio sets the gain.
Disclaimer: This calculator is provided for general informational and educational purposes only, on an “as is” basis and without any warranty of accuracy or fitness for a particular purpose. Results may contain errors — always verify independently before relying on them in real designs. PartAndStock accepts no liability for any loss or damage arising from use of this tool, including when embedded on third-party sites.
How to use
- 1Pick the topology: inverting or non-inverting.
- 2Enter the input/ground resistor (Rin or Rg) and the feedback resistor (Rf) in kΩ.
- 3The voltage gain (V/V) and its dB value are computed instantly.
How it works
Enter the input and feedback resistors to find the voltage gain of an inverting or non-inverting op-amp circuit, as both a ratio and in dB.
How the resistor ratio sets the gain
An ideal op-amp with feedback holds its two inputs equal (virtual short) and draws no input current. Those two rules tie the gain to just two resistors. In the non-inverting layout the signal enters the (+) input and the gain is Av = 1 + Rf/Rin (always ≥ 1). In the inverting layout the signal enters the (−) input through Rin, the output is inverted, and Av = −Rf/Rin.
dB, bandwidth and limits
Gain is often expressed in decibels: dB = 20·log₁₀|Av|. A real op-amp's gain isn't infinite and its gain-bandwidth product (GBW) is constant: raising the gain lowers the amplifier's bandwidth. The output also can't exceed the supply rails — high gain plus a large input clips the output.
Worked examples
- Non-inverting: Rin=1 kΩ, Rf=10 kΩ → Av = 1 + 10/1 = 11 V/V (~20.8 dB)
- Inverting: Rin=1 kΩ, Rf=10 kΩ → Av = −10 V/V (~20 dB)
- Non-inverting: Rin=1 kΩ, Rf=0 → Av = 1 (buffer/follower)
Gain ↔ dB
| Gain (V/V) | dB |
|---|---|
| 1 | 0 dB |
| 2 | 6 dB |
| 10 | 20 dB |
| 100 | 40 dB |
| 1000 | 60 dB |