Op-Amp Gain Calculator

Gain of an inverting or non-inverting op-amp amplifier from Rf and Rin, output voltage and clipping – or the best standard resistor pair for a gain.

Runs locally in your browser
−+outRfRgin
Ω
Ω
V
V
Gain
11 · 20.8 dB
Input resistancevery high (op-amp input)

Ideal op-amp: real outputs often stop 1–2 V short of the supply (rail-to-rail types less), and the gain falls at high frequencies (gain-bandwidth product).

About this tool

The two basic op-amp circuits: the inverting amplifier has the gain G = −Rf / Rin and flips the signal, the non-inverting one G = 1 + Rf / Rg with Rg from the inverting input to ground. The calculator also shows the gain in dB, the output voltage for an input voltage and whether the output would exceed the supply.

In the second mode you set the gain you want and get the best pairs from an E series, with Rin or Rg near a preferred value – usually 1 kΩ to 100 kΩ. Clicking a row takes the pair over to check it.

How it works

  1. Choose the circuit: non-inverting or inverting.
  2. Enter Rf and Rin or Rg (e.g. 47k and 4k7), optionally the input voltage and the supply to check the output and clipping.
  3. Or switch to “Gain → resistors”, enter the target gain and the E series and pick a pair from the list.

Frequently asked questions

Inverting or non-inverting – which one do I use?

The non-inverting amplifier barely loads the source (very high input resistance) and can only do G ≥ 1. The inverting one can also attenuate (|G| < 1) and sum several signals through one Rin each, but its input resistance is Rin and it reverses the polarity.

Which resistor values make sense?

Usually 1 kΩ to 100 kΩ. Values that are too small load the source and the op-amp output, values that are too large add noise and error from input currents. The pairs come from the E series; look up single values with the E Series Finder.

Why does the output not reach the calculated voltage?

Many op-amps such as the LM358 only get within about 1.5 V of the positive supply; rail-to-rail types reach almost the full voltage. The gain also falls with frequency: the gain-bandwidth product divided by G gives the usable bandwidth.

How do I convert the gain to dB?

Voltage gain in dB = 20 · log10(|G|). G = 10 is 20 dB, G = 100 is 40 dB. The sign of the inverting amplifier is a 180° phase shift and does not change the dB value.

What about a voltage divider at the input?

To attenuate a signal before the amplifier, work out the divider with the Voltage Divider Calculator calculator and multiply its ratio by the gain.