The Core Non Inverting Op Amp Gain Equation

The closed-loop voltage gain of a non inverting operational amplifier configuration is determined entirely by the ratio of two external feedback resistors. The direct answer for the voltage gain ($A_v$) is expressed by the following formula:

Av = 1 + (Rf / Ri)

Unlike the inverting configuration, which introduces a 180-degree phase shift and can yield fractional gains, the non inverting topology preserves the input signal phase and enforces a minimum gain of 1 (unity). Below is the complete definition of every symbol used in this equation.

Symbol Definition Table
Symbol Parameter Standard Unit Practical Design Notes
Av Closed-Loop Voltage Gain Unitless (V/V) Ratio of output voltage to input voltage. Often expressed in decibels (dB) as 20 × log10(Av).
Rf Feedback Resistor Ohms (Ω) Connected between the output pin and the inverting input (-). Typically 1kΩ to 100kΩ.
Ri Input (Ground) Resistor Ohms (Ω) Connected between the inverting input (-) and circuit ground. Also labeled as R1 or Rg in some datasheets.
Vin Input Voltage Volts (V) Applied to the non inverting input (+). Must remain within the op-amp's common-mode input range.
Vout Output Voltage Volts (V) Calculated as Vin × Av. Cannot exceed the op-amp's supply rails (saturation limits).

Derivation and Core Assumptions

To understand when the non inverting op amp gain equation applies, we must derive it using Kirchhoff’s laws and the ideal op-amp model. According to All About Circuits, the derivation relies on two critical assumptions: infinite open-loop gain and infinite input impedance.

Step 1: The Virtual Short
Because the open-loop gain is assumed infinite, the op-amp drives its output to force the voltage difference between the non inverting (+) and inverting (-) inputs to zero. Therefore, V- = V+. Since V+ is tied directly to Vin, we know that V- = Vin.

Step 2: The Voltage Divider
No current flows into the ideal inverting input pin (infinite input impedance). Therefore, Rf and Ri act as a simple series voltage divider between Vout and ground. The voltage at the inverting pin (V-) is:

V- = Vout × [ Ri / (Ri + Rf) ]

Step 3: Equating and Solving
Substitute Vin for V- and rearrange to solve for the gain (Vout / Vin):

Vin = Vout × [ Ri / (Ri + Rf) ]
Vout / Vin = (Ri + Rf) / Ri
Av = (Ri / Ri) + (Rf / Ri)
Av = 1 + (Rf / Ri)

When this formula breaks down: This equation assumes the op-amp is operating in its linear region. If Vout attempts to exceed the DC supply rails (e.g., trying to output 14V on a ±12V supply), the op-amp saturates, and the equation no longer predicts the actual output. Furthermore, at high frequencies, the finite Gain-Bandwidth Product (GBWP) of real silicon causes the actual gain to roll off below this calculated DC value.

Rearranged Forms for Circuit Design

On the bench, you rarely calculate gain from scratch; you usually have a target gain and need to find a missing resistor value. Here are the algebraically rearranged forms of the non inverting op amp gain equation for practical design:

  • Solve for Feedback Resistor (Rf):
    Rf = Ri × (Av - 1)
  • Solve for Input Resistor (Ri):
    Ri = Rf / (Av - 1)
  • Solve for Required Input Voltage (Vin):
    Vin = Vout / [ 1 + (Rf / Ri) ]
  • Solve for Expected Output Voltage (Vout):
    Vout = Vin × [ 1 + (Rf / Ri) ]

Worked Examples with Unit Tracking

Let’s apply these formulas to real bench scenarios. A common trap for hobbyists is mixing base units (Ohms) with prefix units (kilo-Ohms) without conversion, leading to catastrophic design errors. Always track your units through the calculation.

Problem 1: Calculating Output Voltage

Scenario: You are building a sensor preamplifier using an LM358. The non inverting input receives a 250 mV (0.25 V) DC signal from a thermocouple. Your feedback network uses Rf = 47 kΩ and Ri = 10 kΩ. The op-amp is powered by a single +12V supply and ground.

Goal: Find Vout.

Solution Steps:

  1. Convert all resistances to base Ohms to ensure unit cancellation: Rf = 47,000 Ω, Ri = 10,000 Ω.
  2. Calculate Gain: Av = 1 + (47,000 Ω / 10,000 Ω) = 1 + 4.7 = 5.7 V/V.
  3. Calculate Output: Vout = Vin × Av = 0.25 V × 5.7 = 1.425 V.
  4. Verify against rails: 1.425 V is well within the 0V to ~10.5V linear output swing of the LM358 on a 12V supply. The answer is valid.

Problem 2: Sizing the Feedback Resistor

Scenario: You need a precise gain of 15 V/V to amplify an audio signal using a TL072. You have a 2.2 kΩ resistor in your parts bin and want to use it as Ri.

Goal: Find the required Rf value.

Solution Steps:

  1. Use the rearranged formula: Rf = Ri × (Av - 1).
  2. Substitute values: Rf = 2,200 Ω × (15 - 1).
  3. Calculate: Rf = 2,200 Ω × 14 = 30,800 Ω (or 30.8 kΩ).
  4. Real-world adjustment: 30.8 kΩ is not a standard E24 resistor value. You must select the closest 1% E96 value (30.9 kΩ) or series two standard resistors (e.g., 27 kΩ + 3.9 kΩ) to achieve the exact gain.
⚠ Unit Mistakes That Break the Math: If in Problem 2 you accidentally plugged in '2.2' for Ri thinking in kilo-Ohms, but treated the result as base Ohms, you would calculate an Rf of 30.8 Ω. This low resistance would draw over 100 mA from the op-amp output, instantly triggering the internal short-circuit protection or thermally destroying a smaller IC. Always write out the zeroes or explicitly track the 'k' prefix.

Realistic Answer Magnitudes: In practical DC and audio designs, closed-loop gains typically range from 1 to 100. If your calculation yields a gain of 10,000, you are likely designing a comparator, not a linear amplifier. Attempting to force a real op-amp into a gain of 10,000 will result in severe bandwidth restriction (due to GBWP limits) and massive amplification of input offset voltage.

Real-World Component Selection and Edge Cases

The non inverting op amp gain equation assumes ideal components. According to Texas Instruments, real silicon introduces errors that scale with your resistor choices. Here is how to bridge the gap between theory and the breadboard:

  • Resistor Impedance Limits: Keep Rf and Ri between 1 kΩ and 100 kΩ. Values below 1 kΩ force the op-amp to source excessive current, increasing THD (Total Harmonic Distortion). Values above 100 kΩ make the circuit highly susceptible to electromagnetic interference (EMI) and exacerbate errors from the op-amp’s input bias current.
  • Input Bias Current (Ib): In bipolar op-amps like the NE5532, input bias currents flow through Rf and Ri, creating an unintended DC offset voltage at the output. To minimize this, place a compensation resistor (Rcomp = Rf || Ri) in series with the non inverting input. For FET-input op-amps like the OPA2134, Ib is in the picoamp range, making Rcomp unnecessary.
  • Tolerance Stacking: A gain of 10 using two 5% resistors can vary between 9.05 and 11.05. For precision instrumentation, always specify 1% or 0.1% metal film resistors (e.g., Yageo MFR series) to ensure the physical circuit matches the equation.

Frequently Asked Questions

Why is the non inverting op amp gain equation always greater than or equal to 1?

The mathematical floor of the equation is Av = 1, which occurs when Rf = 0 Ω (a direct short from output to inverting input) or when Ri approaches infinity (an open circuit to ground). This specific configuration is called a voltage follower or unity-gain buffer. Because the input signal is applied directly to the non inverting (+) terminal, the output must at least match the input voltage to satisfy the virtual short condition. It cannot attenuate the signal below the input magnitude; for attenuation, you must use a passive voltage divider before the buffer or switch to an inverting topology.

How does the non inverting op amp gain equation apply to AC signals and impedance?

For AC signals, the scalar resistors Rf and Ri are replaced by complex impedances Zf and Zi. The equation becomes Av = 1 + (Zf / Zi). If you place a capacitor in series with Ri, the impedance of that branch increases at low frequencies, effectively rolling off the DC gain to 1 (acting as an AC-coupled amplifier). Conversely, placing a capacitor in parallel with Rf decreases the feedback impedance at high frequencies, creating an active low-pass filter. In all AC applications, the magnitude and phase of the gain will vary with frequency, bounded ultimately by the op-amp's Gain-Bandwidth Product.

What happens to the non inverting op amp gain equation if the feedback resistor is zero?

If Rf = 0 Ω, the equation evaluates to Av = 1 + (0 / Ri), which simplifies to Av = 1. The circuit becomes a unity-gain buffer. In this state, the output pin is wired directly to the inverting input pin, providing 100% negative feedback. The op-amp will source or sink whatever current is necessary to make Vout exactly equal to Vin. This is highly useful for isolating high-impedance sensors (like piezo pickups or pH probes) from low-impedance loads (like ADC inputs or long cable runs) without altering the signal amplitude.