Op-amp gain calculator

Enter the feedback and input resistors of an op-amp amplifier to get its gain, the gain in decibels and the output voltage for a given input. Or enter the gain you want and get the feedback resistor with the nearest standard E24 value.

Circuit
Find
kΩ
kΩ
V
Voltage gain-10
Gain in decibels
20 dB
Output voltage (ideal)
-5 V

Runs in your browser: nothing you enter is sent anywhere.

How to use

  1. Choose Inverting or Non-inverting.
  2. To analyse a circuit, keep Gain from resistors and enter Rf and Rin (or Rg). To design one, choose Resistor for a gain, enter the gain you need and the other resistor.
  3. Enter an input voltage to see the ideal output voltage.

Formulas

For an ideal op-amp (very high open-loop gain, no input current):

  • inverting: G = −Rf / Rin
  • non-inverting: G = 1 + Rf / Rg
  • gain in dB = 20 × log10 |G|
  • output voltage = G × input voltage

For a target gain the calculator solves for Rf: Rf = G × Rin (inverting) or Rf = (G − 1) × Rg (non-inverting).

Worked examples

Inverting, Rf = 100 kΩ, Rin = 10 kΩ, input 0.5 V: G = −100 / 10 = −10, which is 20 dB, and the output is −5 V.

Non-inverting, Rf = 47 kΩ, Rg = 10 kΩ: G = 1 + 47 / 10 = 5.7, or 15.12 dB; 0.5 V in gives 2.85 V out.

Design: an inverting gain of 22 with Rin = 4.7 kΩ needs Rf = 22 × 4.7 = 103.4 kΩ. The nearest E24 value is 100 kΩ, which gives a gain of −21.2766.

Tips

  • Keep resistors roughly between 1 kΩ and 1 MΩ: very small ones load the source and the op-amp output, very large ones add noise and offset from input bias current.
  • The input impedance of an inverting stage is Rin; a non-inverting stage has a very high input impedance.
  • If the gain must be exact, use E96 (1 %) resistors or put a trimmer in series with Rf.

Frequently asked questions

What are the gain formulas?

Inverting amplifier: G = −Rf / Rin, so the output is upside down. Non-inverting amplifier: G = 1 + Rf / Rg, always at least 1. In decibels the gain is 20 × log10 |G|.

Why is the inverting gain negative?

The minus sign means the output is inverted, 180° out of phase with the input. A gain of −10 turns +0.5 V into −5 V. The size of the gain, 10, is what the decibel figure describes.

Will my amplifier really reach the calculated output voltage?

Only if it fits inside the supply. The calculator assumes an ideal op-amp; a real one clips near its supply rails, and its gain falls at high frequencies according to its gain–bandwidth product.

What is the E24 series?

The standard set of resistor values with 24 steps per decade (1.0, 1.1, 1.2, 1.3, 1.5 … 9.1). The calculator rounds the exact feedback resistor to the nearest one and shows the gain it really gives.

More in Unit converters

All tools in this category: Unit converters ·Updated November 4, 2026

Privacy choices

Google Analytics shows us which tools are used and whether they work. It may set cookies. Your choice is kept in this browser.