Inverting Op-Amp Gain Calculator

Enter the feedback and input resistor values to find the inverting op-amp gain.

How it is calculated

For an ideal inverting amplifier the voltage gain is Av = −Rf ÷ Rin, where Rf is the feedback resistor from output to the inverting input and Rin is the series input resistor. The minus sign means the output is inverted. The tool also gives the magnitude |Av| and the gain in decibels, dB = 20 × log10(|Av|). The two resistors can be in any unit (ohms, kΩ) as long as both use the same one, because only the ratio matters. Rin must be above zero, otherwise there is no result. A feedback resistor of 0 gives a gain of 0 and -∞ dB, and a gain magnitude below 1 gives a negative dB value (attenuation). Results are rounded to two decimals. Real op-amps add limits from finite open-loop gain, bandwidth and supply voltage that this ideal formula ignores.

Worked example

Take Rf = 47000 Ω (47 kΩ) and Rin = 4700 Ω (4.7 kΩ). Gain: −47000 ÷ 4700 = -10.00 V/V, so the output is ten times larger than the input and flipped in sign. The magnitude is 10.00 V/V. In decibels: 20 × log10(10) = 20.00 dB. With a 0.1 V input signal the ideal output is about −1 V.

Try this example →

Common mistakes

  • Dropping the minus sign. The gain of this stage is negative, and the 180° phase inversion matters when cascading stages or summing signals.
  • Swapping Rf and Rin. Rf is the feedback resistor, so swapping them gives the reciprocal gain, for example 0.10 instead of 10.
  • Mixing units, such as Rf in kΩ and Rin in Ω. The ratio is then off by a factor of 1000.
  • Computing dB from the signed gain. A negative value has no logarithm; dB uses the magnitude, so −10 and +10 both give 20 dB.
  • Expecting this formula to hold at any frequency or amplitude. A gain of 100 or more can run into the op-amp's gain-bandwidth limit and the supply rails, which the formula does not check.

About this calculator

An inverting operational amplifier circuit uses two resistors — a feedback resistor Rf and an input resistor Rin — to set a precise, predictable voltage gain given by Av = −Rf / Rin, with the negative sign showing that the output is 180 degrees out of phase with the input. Because the gain depends only on this resistor ratio rather than on the op-amp's own (often inconsistent) open-loop gain, the circuit is a workhorse of analog design.

This calculator computes that gain from the two resistor values, reporting both the raw magnitude and the equivalent gain in decibels (20·log10 of the magnitude). It's a foundational calculation for electrical engineers and electronics hobbyists designing amplifier stages, audio circuits, active filters, and signal-conditioning circuits, where choosing the Rf/Rin ratio is the standard way to dial in a specific, repeatable amount of amplification.

Was this helpful?

You can pick up to 3 reactions.

Comments (0)

  • Be the first to comment.

Popular calculators

All Calculators