← All calculators

Op-amp gain calculator

Non-inverting and inverting gain from two resistors — and reverse: pick standard resistors for a target gain.

Non-inverting gain1 + R1/R2×11.00
Inverting gain (same two resistors)−R1/R2×-10.00
In decibels (non-inv.)20.8 dB
Reverse: pick resistors for a target gain (non-inverting, R2 = 10 kΩ)
R1 (nearest E24)180 kΩ
Actual gain-5.0% off target×19.00

How it works

An op-amp drives its output until its inputs match. R1 and R2 divide the output by (1 + R1/R2) before showing it to in−, so the output must be that many times the input for the inputs to agree: G = 1 + R1/R2. Precision comes from the resistor ratio — which is why two 1% resistors make a 1% amplifier out of an op-amp whose own open-loop gain varies wildly between parts.

Common questions

Why does the same resistor pair give two different gains?

Topology. Feed the signal into in+ with the divider sensing the output (non-inverting): gain = 1 + R1/R2. Feed it through R2 into in− (inverting): gain = −R1/R2. Same parts, different wiring — the non-inverting version also has near-infinite input impedance, the inverting one's input impedance is just R2.

Does the op-amp model matter for gain?

Almost never for the gain itself — that's the resistor ratio, which is the whole point. The op-amp matters for everything else: bandwidth (gain × bandwidth is roughly constant), input offset (multiplied by the gain!), and how close the output can swing to the rails.

My amplifier's output is stuck near the supply — why?

Usually the gain is fine and the input isn't: gain 20 on a 5 V single supply clips for any input above ~0.25 V, and a signal that swings below ground can't be reproduced at all without mid-rail biasing. Size the gain for your LARGEST input, not the typical one.

Design it in the editor — freeLive electrical checks, automatic BOM, KiCad export.