The Core Equation and Symbol Definitions

The closed-loop voltage gain of an ideal non-inverting operational amplifier is defined by the ratio of the feedback network resistors. The direct mathematical expression is:

Av = 1 + (Rf / Rg)

Unlike the inverting configuration, which yields a negative gain and a virtual ground at the input, the non-inverting topology maintains the input signal's phase and presents a near-infinite input impedance to the source. Below is the strict definition of every symbol in the equation.

Symbol Parameter Name Standard Unit Practical Notes
Av Closed-Loop Voltage Gain Dimensionless (V/V) Often converted to decibels (dB) via 20·log10(Av) for AC analysis.
Rf Feedback Resistor Ohms (Ω) Connected between the output pin and the inverting (-) input.
Rg Ground / Input Resistor Ohms (Ω) Connected between the inverting (-) input and circuit ground.

Assumptions and Application Boundaries

The non-inverting amp gain formula is not a universal law of physics; it is an approximation derived from the ideal op-amp model. It applies strictly under the following assumptions:

  • Infinite Open-Loop Gain (AOL): The formula assumes the op-amp's internal gain is infinite, forcing the differential voltage between the (+) and (-) inputs to exactly zero (the virtual short principle).
  • Linear Operating Region: The output must not be saturated against the supply rails. If Vout attempts to exceed VCC or drop below VEE, the formula fails, and the op-amp clips.
  • Negative Feedback Dominance: The feedback network must be purely resistive and stable. Capacitive feedback introduces phase shift, potentially turning negative feedback into positive feedback (oscillation).
  • Zero Input Bias Current: Real op-amps (like the classic LM358) draw small bias currents. If Rf and Rg are excessively large (e.g., >1 MΩ), the voltage drop across these resistors from bias currents introduces significant DC gain errors.

Rearranged Forms for Bench Design

On the workbench, you rarely solve for Av directly. Usually, you have a target gain or a required output voltage and need to size the physical resistors. Here are the algebraically rearranged forms of the non-inverting amp gain formula:

  • Solve for Feedback Resistor: Rf = Rg · (Av - 1)
  • Solve for Ground Resistor: Rg = Rf / (Av - 1)
  • Solve for Output Voltage: Vout = Vin · [1 + (Rf / Rg)]
  • Solve for Required Input: Vin = Vout / [1 + (Rf / Rg)]

Worked Examples with Strict Unit Tracking

Abstract math leads to blown components. Below are two real-world scenarios with explicit unit tracking to prevent scaling errors.

Example 1: Calculating Output Voltage from Fixed Resistors

Scenario: You are buffering a sensor with a DC output of 125 mV. Your feedback network uses Rf = 47 kΩ and Rg = 10 kΩ. The op-amp is powered by a ±12V dual supply.

  1. Convert to base units (or ensure matching prefixes):
    Rf = 47,000 Ω
    Rg = 10,000 Ω
    Vin = 0.125 V
  2. Calculate Gain (Av):
    Av = 1 + (47,000 Ω / 10,000 Ω)
    Av = 1 + 4.7 (The Ω units cancel out, leaving a dimensionless ratio)
    Av = 5.7 V/V
  3. Calculate Vout:
    Vout = Vin · Av
    Vout = 0.125 V · 5.7 V/V
    Vout = 0.7125 V
  4. Verify Linear Region: 0.7125 V is well within the ±12V supply rails (accounting for typical 1.5V headroom on a standard LM358). The formula holds.

Example 2: Sizing Resistors for an ESP32 ADC Interface

Scenario: You need to amplify a 50 mV peak signal from a current shunt to exactly 3.3 V to max out the ADC on an ESP32-WROOM-32. You have a rail-to-rail op-amp (MCP6002) on a 3.3V single supply and a standard 1 kΩ resistor for Rg.

  1. Determine Required Gain:
    Av = Vout / Vin = 3.3 V / 0.050 V = 66 V/V
  2. Rearrange formula to solve for Rf:
    Rf = Rg · (Av - 1)
  3. Substitute values:
    Rf = 1,000 Ω · (66 - 1)
    Rf = 1,000 Ω · 65 = 65,000 Ω (65 kΩ)
  4. Select Standard E24 Component: 65 kΩ is not a standard 5% resistor value. The closest E24 values are 62 kΩ and 68 kΩ. Choosing 68 kΩ yields:
    Av(actual) = 1 + (68,000 / 1,000) = 69 V/V.
    Vout(actual) = 0.050 V · 69 = 3.45 V. Warning: This exceeds the 3.3V ESP32 GPIO limit and will cause clipping or damage without a clamping diode. Therefore, select the 62 kΩ resistor:
    Av(actual) = 1 + (62,000 / 1,000) = 63 V/V.
    Vout(actual) = 0.050 V · 63 = 3.15 V (Safe for the ADC).

Unit Mistakes and Realistic Magnitude Limits

The most common way the non-inverting amp gain formula breaks on the bench is through unit mismatches. If Rf is 47 kΩ and Rg is 10 kΩ, calculating 1 + (47 / 10000) yields a gain of 1.0047 instead of 5.7. Always convert both resistors to base Ohms, or both to kilo-Ohms, before dividing.

What does a realistic answer magnitude look like?
While the math allows you to set Rf = 10 MΩ and Rg = 10 Ω for a gain of 1,000,001 V/V, physics forbids it. Realistic closed-loop gains are bounded by three factors:

  1. Gain-Bandwidth Product (GBWP): An op-amp's bandwidth shrinks as gain increases. The TL072 audio op-amp has a GBWP of 3 MHz. At a gain of 10 V/V, your bandwidth is 300 kHz. At a gain of 1,000 V/V, your bandwidth collapses to 3 kHz, destroying high-frequency audio transients.
  2. Input Offset Voltage (Vos): Real op-amps have a slight internal voltage mismatch. A typical LM358 has a Vos of 2 mV. At a gain of 10, this adds a 20 mV DC error to your output. At a gain of 1,000, it adds a massive 2 V DC error, likely saturating the output rail before your AC signal is even amplified.
  3. Johnson-Nyquist Noise: Using mega-ohm resistors to achieve high gain generates significant thermal noise. For high-gain, low-noise applications (like microphone preamps using an OPA1612), designers keep Rf and Rg under 10 kΩ and cascade multiple lower-gain stages.

Frequently Asked Questions

Why is the minimum gain of a non-inverting amplifier 1?

Mathematically, if you remove the feedback resistor (Rf = 0 Ω) and leave Rg as an open circuit (Rg = ∞), the ratio Rf/Rg becomes zero. The formula resolves to Av = 1 + 0 = 1. Physically, this configuration is called a voltage follower or unity-gain buffer. The output is directly shorted to the inverting input, forcing the output to perfectly track the non-inverting input. You cannot achieve a gain of less than 1 (attenuation) with a standard non-inverting topology; for attenuation, you must use a voltage divider before the input or switch to an inverting amplifier topology.

Does the non-inverting amp gain formula work for AC signals and high frequencies?

Yes, but only if you treat the resistors as complex impedance (Z) and stay within the op-amp's bandwidth. For purely resistive networks, the magnitude of the AC gain is identical to the DC gain formula. However, at high frequencies, the op-amp's internal open-loop gain (AOL) rolls off at -20 dB/decade. Once the frequency approaches the GBWP limit, the assumption that AOL is infinite fails. The actual gain will drop below the calculated value, and phase shift will occur. For precise AC gain at high frequencies, you must consult the 'Open-Loop Gain vs. Frequency' graph in the component's datasheet.

What happens to the formula if the feedback resistor is zero ohms?

If Rf = 0 Ω (a direct wire from output to inverting input) and Rg is any finite value to ground, the fraction 0 / Rg equals zero. The gain becomes exactly 1 V/V. This creates a unity-gain buffer. This is highly useful for impedance matching—taking a high-impedance sensor signal and providing a low-impedance copy to drive an ADC or a long cable, without altering the voltage amplitude. If both Rf = 0 and Rg = 0 (shorting the inverting input directly to ground while shorting output to inverting), you create a direct short from the output pin to ground, which will trigger the op-amp's internal short-circuit protection or destroy the silicon die via thermal runaway.