ElectroHub

Op-Amp Gain Calculator

With negative feedback an op-amp's gain depends only on two resistors, not on the chip. That is the whole point of feedback — it trades away enormous open-loop gain for a value you can predict and reproduce.

Op-Amp Gain

Inverting amplifier: Av = −Rf/Rin. Input goes to the − pin through Rin; output is phase-flipped.

Voltage gain Av
Gain in dB
Output voltage
  1. 1.Given: Rf = 100 kΩ, Rin = 10 kΩ
  2. 2.FormulaAv = −Rf ÷ RinSubstituteAv = −100000 ÷ 10000ResultAv = -10
  3. 3.FormulaVout = Av × VinSubstituteVout = -10 × 0.5ResultVout = -5 V
Common trap: The output can never exceed the supply rails — a gain of 100 with ±12 V supplies clips any input beyond ±0.12 V. Real op-amps stop 1–2 V short of the rails unless they're rail-to-rail types.

The formula

Inverting: A_v = −R_f / R_in | Non-inverting: A_v = 1 + R_f / R_in

A_v
closed-loop voltage gain
R_f
feedback resistor, output to inverting input (ohms)
R_in
input resistor (inverting) or lower feedback leg (non-inverting)
V_out
output voltage = A_v × V_in

Worked example

R_f = 90 kΩ, R_in = 10 kΩ, input 0.5 V.

  1. Non-inverting: A_v = 1 + 90/10 = 10, so V_out = 0.5 × 10 = 5 V
  2. Inverting with the same parts: A_v = −90/10 = −9
  3. V_out = 0.5 × −9 = −4.5 V

Gain of 10 (non-inverting) or −9 (inverting) — the same resistors, differing by exactly one.

Where you'll use it

Amplifying sensor outputs, building filters and buffers. A non-inverting stage cannot have a gain below 1, and its input impedance is enormous; the inverting stage's input impedance is just R_in, which is often the deciding factor.

The laws behind it

Parts this applies to

Related calculators