The non inverting op amp equation defines the closed-loop voltage gain of an amplifier where the input signal is applied to the high-impedance non-inverting terminal. The direct answer for the output voltage is Vout = Vin × (1 + Rf/Ri). This configuration is the backbone of precision DC amplification, audio preamps, and sensor signal conditioning because it presents an exceptionally high input impedance to the source, preventing loading effects. Whether you are designing a buffer with a TL072 or a high-gain sensor stage with an OPA2134, understanding the mathematical boundaries and real-world limitations of this formula is critical to avoiding clipped signals and thermal noise issues.

The Core Formula and Symbol Definitions

Before manipulating the math, every variable in the non inverting op amp equation must be strictly defined. The formula calculates the steady-state DC or low-frequency AC output based on the resistor feedback network.

Vout = Vin × (1 + Rf / Ri)

Table 1: Symbol Definitions and Units
Symbol Parameter Standard Unit Practical Notes
Vout Output Voltage Volts (V) Bounded by the op-amp's supply rails minus headroom.
Vin Input Voltage Volts (V) Applied to the non-inverting (+) terminal.
Rf Feedback Resistor Ohms (Ω) Connects output to the inverting (-) terminal.
Ri Input/Ground Resistor Ohms (Ω) Connects the inverting (-) terminal to ground.
Av Closed-Loop Gain Unitless (V/V) Always ≥ 1. Defined as (1 + Rf/Ri).

In practice, you rarely have the exact theoretical resistor values on your bench. You must select from standard E24 series resistors. The table below maps common target gains to real-world E24 resistor pairs, showing the inevitable gain error you must account for in precision circuits.

Table 2: Standard E24 Resistor Pairs for Common Gain Targets
Target Gain (Av) Ri (E24 Value) Rf (E24 Value) Actual Gain Gain Error
2.0 10 kΩ 10 kΩ 2.000 0.00%
5.0 10 kΩ 39 kΩ 4.900 -2.00%
10.0 10 kΩ 91 kΩ 10.100 +1.00%
15.0 10 kΩ 140 kΩ 15.000 0.00%
100.0 1 kΩ 100 kΩ 101.000 +1.00%

Derivation and Underlying Assumptions

To understand when the formula applies, we must derive it using Kirchhoff’s Current Law (KCL) and the ideal op-amp assumptions. According to All About Circuits, the derivation hinges on the concept of a "virtual short" between the input terminals.

The Ideal Derivation

  1. Virtual Short: An ideal op-amp with negative feedback forces the voltage at the inverting terminal (V-) to equal the voltage at the non-inverting terminal (V+). Since V+ = Vin, then V- = Vin.
  2. Zero Input Current: Ideal op-amps have infinite input impedance, meaning no current flows into the V- pin. Therefore, the current flowing through Ri must exactly equal the current flowing through Rf.
  3. KCL at the Inverting Node: The current from ground up through Ri is (V- - 0) / Ri. The current from the output down through Rf is (Vout - V-) / Rf.
  4. Equating Currents: V- / Ri = (Vout - V-) / Rf.
  5. Substitution: Substitute Vin for V-: Vin / Ri = (Vout - Vin) / Rf.
  6. Algebraic Rearrangement: Multiply both sides by Rf, yielding Vin × (Rf / Ri) = Vout - Vin. Add Vin to both sides and factor it out to get the final non inverting op amp equation: Vout = Vin × (1 + Rf/Ri).

When the Formula Breaks Down (Real-World Assumptions)

This equation assumes an ideal op-amp. In reality, Texas Instruments datasheets specify non-ideal parameters that break the math if ignored:

  • Finite Open-Loop Gain (AOL): The formula assumes AOL is infinite. Real op-amps like the LM358 have an AOL of ~100 dB (100,000 V/V) at DC, which rolls off at 20 dB/decade. If your closed-loop gain approaches the op-amp's open-loop gain at your operating frequency, the actual output will be lower than the equation predicts.
  • Input Bias Current (IB): BJT-input op-amps (like the LM358) draw microamps of bias current. This current flowing through Rf and Ri creates an unintended voltage offset, adding a DC error to Vout. For high-gain stages, use JFET or CMOS op-amps (like the TL072 or MCP6002) where IB is in the picoamp range.
  • Output Voltage Swing Limits: The equation will happily calculate a 15V output for a 12V supply if the gain dictates it. The physical silicon will simply clip the signal at the supply rail minus the internal transistor saturation voltage.

Rearranged Forms for Component Selection

On the bench, you usually know your required gain and input signal, and you need to find the resistors. Here are the algebraically rearranged forms of the non inverting op amp equation for design work:

  • Solving for Feedback Resistor (Rf):
    Rf = Ri × ((Vout / Vin) - 1)
  • Solving for Ground Resistor (Ri):
    Ri = Rf / ((Vout / Vin) - 1)
  • Solving for Required Input Voltage (Vin):
    Vin = Vout / (1 + (Rf / Ri))
  • Solving for Closed-Loop Gain (Av):
    Av = Vout / Vin = 1 + (Rf / Ri)
Bench Tip: When calculating Rf and Ri, always start by picking a standard value for Ri between 10 kΩ and 100 kΩ. Values below 1 kΩ waste power and can exceed the op-amp's output current limit (typically 20-30 mA). Values above 1 MΩ increase thermal (Johnson-Nyquist) noise and make the circuit highly susceptible to stray capacitance and PCB leakage currents.

Worked Problems with Unit Tracking

Let’s apply the math to two distinct scenarios: a straightforward calculation and a real-world design constraint.

Problem 1: Standard Gain Calculation

Given: A sensor outputs Vin = 120 mV. The feedback network uses Ri = 10 kΩ and Rf = 47 kΩ. The op-amp is powered by ±12V rails.
Find: Vout.

  1. Convert units to base SI: Vin = 0.120 V. Ri = 10,000 Ω, Rf = 47,000 Ω. (Note: Because Rf and Ri are a ratio, you can leave them in kΩ, but Vin must be in Volts if you want Vout in Volts).
  2. Calculate the Gain (Av):
    Av = 1 + (47 kΩ / 10 kΩ) = 1 + 4.7 = 5.7 V/V.
  3. Calculate Vout:
    Vout = 0.120 V × 5.7 = 0.684 V.
  4. Verify against rails: 0.684 V is well within the ±12V supply limits. The final answer is 684 mV.

Problem 2: Designing for Single-Supply ADC Interfacing

Given: You need to amplify a 0 V to 150 mV thermocouple signal to fit a 3.3V microcontroller ADC. You are using an MCP6002 (Rail-to-Rail I/O) on a single 5V supply. Target peak Vout is 3.0V to leave headroom.
Find: Required Rf if Ri is chosen as 10 kΩ, and verify the physical output limits.

  1. Determine Target Gain:
    Av = Vout(max) / Vin(max) = 3.0 V / 0.150 V = 20 V/V.
  2. Calculate Rf using the rearranged formula:
    Rf = Ri × (Av - 1)
    Rf = 10 kΩ × (20 - 1) = 10 kΩ × 19 = 190 kΩ.
  3. Select nearest E24 resistor: 180 kΩ or 200 kΩ. We choose 180 kΩ to ensure we never exceed the 3.3V ADC limit if the sensor spikes slightly.
  4. Recalculate Actual Gain and Vout:
    Av(actual) = 1 + (180 / 10) = 19 V/V.
    Vout(max) = 0.150 V × 19 = 2.85 V.
  5. Verify Real-World Limits: The MCP6002 is a rail-to-rail output op-amp. On a 5V supply, its maximum output swing is typically VDD - 10 mV (4.99 V). Our calculated 2.85 V is safely below this limit, and the input common-mode range includes ground. The design is valid.

Unit Mistakes and Realistic Magnitudes

The most common reason a breadboard circuit fails to match the non inverting op amp equation isn't a broken chip; it's a unit conversion error or a misunderstanding of physical limits.

Which Unit Mistakes Break the Math?

  • Mixing mV and V in the Gain Ratio: Gain (Av) is strictly unitless (Volts per Volt). If your target Vout is 2.0 V and your Vin is 100 mV, the ratio is 2.0 / 0.1 = 20. If you mistakenly calculate 2.0 / 100, you get a gain of 0.02, leading you to design an attenuator instead of an amplifier.
  • Asymmetric Resistor Units: While the ratio Rf/Ri cancels out units, you must ensure both are in the same prefix. 47 kΩ / 10 Ω is a gain of 4701, not 4.7. Always convert both to Ohms or both to kilo-Ohms before dividing.
  • Ignoring Decibel (dB) Conversions: Datasheets often specify open-loop gain in dB. If an op-amp has an AOL of 100 dB, that is 100,000 V/V, not 100 V/V. Using the raw dB number in the linear equation will yield catastrophic design errors.

What a Realistic Answer Magnitude Looks Like

The equation is mathematically unbounded, but physics is not. A realistic Vout magnitude is strictly constrained by the op-amp's power supply rails and its internal output stage topology. Electronics Tutorials emphasizes that output saturation is the primary failure mode in high-gain DC circuits.

Here is what realistic maximum output magnitudes look like for common op-amp architectures on a standard 12V single supply (VCC = 12V, VEE = 0V):

  • Standard BJT (e.g., LM358): Not rail-to-rail. The high-side output transistor requires base-emitter drive voltage. Realistic maximum Vout is ~10.5V (VCC - 1.5V). If your equation predicts 11.5V, the signal will flat-line at 10.5V, introducing severe harmonic distortion in AC applications.
  • Precision FET (e.g., OPA2134): Excellent for audio, but still has output headroom limits. Realistic maximum Vout is ~11.0V (VCC - 1.0V).
  • Rail-to-Rail Output (e.g., MCP6002): Uses a common-source output stage that can pull the output pin almost entirely to the positive rail. Realistic maximum Vout is ~11.95V (VCC - 50mV under light load).

When designing your feedback network, always calculate the theoretical Vout using the non inverting op amp equation, then subtract the specific op-amp's headroom requirement (found in the datasheet's "Output Voltage Swing" table). If your required signal exceeds that realistic magnitude, you must either increase the supply voltage, select a true rail-to-rail op-amp, or reduce the closed-loop gain.