Home / Tools / Op-amp gain calculator

Op-amp gain calculator

Work out the gain of an inverting or non-inverting op-amp amplifier from its resistors, and check the output fits within the supply rails and the op-amp's bandwidth.

  • Electronics tool
  • Runs in your browser
  • Tested 19 November 2026
  • Sources
Use k, M, m, µ (or u), n and p, for example 4k7, 10m or 100n.
0 for a single supply.
From the datasheet. Leave blank to skip the bandwidth estimate.

The two basic amplifiers

  • Non-inverting: the signal goes into the + input, and Rf and Rg form a divider from the output back to the − input. Gain = 1 + Rf / Rg. The input draws almost no current, so it won't load your signal.
  • Inverting: the signal goes through Rin into the − input, and Rf connects the output back to it. Gain = −Rf / Rin. The output is upside down, and the circuit's input resistance is just Rin.

Both rely on negative feedback: the op-amp adjusts its output until its two inputs are at almost the same voltage.

Worked example. Rf = 100 kΩ and Rg = 10 kΩ give a non-inverting gain of 11, or 20.8 dB. A 0.2 V input gives 2.2 V out.

The limits the formula doesn't show

  • Supply rails. The output can't go beyond the supplies, and many op-amps can't get within a volt or so of them. An inverting amplifier on a single supply needs its + input biased to mid-supply, or the output has nowhere to go. "Rail-to-rail" op-amps get much closer.
  • Bandwidth. For a typical voltage-feedback op-amp, the bandwidth is roughly the gain-bandwidth product divided by the noise gain, which is 1 + Rf / R1 for both circuits. A 1 MHz op-amp with a gain of 11 gives about 90 kHz.
  • Slew rate. A large, fast output can be limited by how quickly the output can change, in V/µs. A full-swing sine wave needs a slew rate of at least 2π × f × Vpeak.
  • Resistor values. 1 kΩ to 100 kΩ is a good range. Much lower loads the output, and much higher adds noise and errors from the input bias current.

Try it live in the op-amp amplifier simulator, or read op-amps explained.

Sources

Where the formulas and figures on this page come from. We test every tool against worked examples from these before publishing.