Analog Circuits

Inverting and Non-Inverting Op Amp Gain: Formulas With Worked Examples

Inverting and non-inverting op amp gain formulas with worked examples: -Rf/Rin, 1 + Rf/R1, the voltage follower, input impedance and real op amp limits.

On this page
  1. Short answer
  2. The two rules behind the formulas
  3. Inverting amplifier
  4. Non-inverting amplifier
  5. Voltage follower
  6. Worked examples
  7. Input impedance
  8. Real op amp limits

Short answer

For an ideal op amp with negative feedback:

  • Inverting amplifier: gain = -Rf / Rin
  • Non-inverting amplifier: gain = 1 + Rf / R1
  • Voltage follower: gain = 1

Rin is the input resistor in the inverting circuit. Rf is the feedback resistor from the output to the inverting input. R1 is the resistor from the inverting input to ground in the non-inverting circuit.

The two rules behind the formulas

Ideal op amps with negative feedback follow two rules:

  1. The two inputs settle to the same voltage, so V+ ≈ V−.
  2. The inputs draw no current.

These two rules are enough to solve both circuits below.

Inverting amplifier

The signal enters through Rin into the inverting input. The non-inverting input is tied to ground, so by rule 1 the inverting input also sits at 0 V. This is called a virtual ground.

The current through Rin is Vin / Rin. By rule 2, the same current flows through Rf, so the output must be:

Vout = -(Rf / Rin) × Vin

The minus sign means the output is inverted, with a 180° phase shift relative to the input.

Non-inverting amplifier

The signal enters the non-inverting input. R1 runs from the inverting input to ground, and Rf runs from the output back to the inverting input. By rule 1, the inverting input follows the input voltage, so the current through R1 is Vin / R1. By rule 2, the same current flows through Rf. The result is:

Vout = Vin × (1 + Rf / R1)

The output has the same polarity as the input.

Voltage follower

Connect the output directly to the inverting input, and leave out Rf and R1. By rule 1, the output equals the input, so the gain is 1. The follower is useful as a buffer. It presents a high input impedance to the source and a low output impedance to the load. The op amps in ADCs article uses this idea to buffer a sensor.

Worked examples

Take Rin = 10 kΩ and Rf = 100 kΩ.

  • Inverting amplifier: gain = -100 kΩ / 10 kΩ = -10. An input of 0.2 V gives an output of -2.0 V. An input of 5 mV gives -50 mV.
  • Non-inverting amplifier with R1 = 10 kΩ: gain = 1 + 100 kΩ / 10 kΩ = 11. An input of 0.2 V gives 2.2 V. An input of 5 mV gives 55 mV.
  • Voltage follower: gain = 1. The output follows the input.

Input impedance

The two circuits differ in input impedance:

  • Inverting: the input impedance is approximately Rin, because the inverting node is a virtual ground and the input current passes through Rin.
  • Non-inverting: the input impedance is very high, ideally infinite, because the input drives the op amp’s non-inverting input.

This is one reason a non-inverting stage or a follower is often placed in front of a high-impedance sensor.

Real op amp limits

Ideal formulas are a starting point. Real op amps add limits:

  • Supply rails. The output cannot exceed the supply. With a ±12 V supply, a gain of 11 and a 2 V input would call for 22 V, so the output clips a volt or two short of the rails.
  • Gain-bandwidth product. The closed-loop bandwidth is roughly the gain-bandwidth product divided by the closed-loop gain. An op amp with a 1 MHz gain-bandwidth product set to a gain of 10 has about 100 kHz of bandwidth.
  • Offset and bias. Small errors matter most at low signal levels.
  • Common-mode range. The input voltages must stay within the op amp’s allowed range.

For how feedback sets these gains in a wider context, see the feedback amplifier types guide.

The complete guide to analog circuits

Amplifier and Signal Circuits: Feedback Amplifier Types Explained
Read the guide

Keep exploring

Guides from other topics

All topics →