If you need to amplify a small DC or low-frequency AC signal without inverting its polarity, the non-inverting operational amplifier configuration is your go-to topology. The direct answer for the voltage gain of this circuit is Av = 1 + (Rf / Rin), and the output voltage is calculated as Vout = Vin × Av. Unlike the inverting amplifier, which can attenuate a signal (gain < 1), the non-inverting configuration always provides a gain of 1 or greater, making it ideal for sensor buffering and signal scaling.

Below, we break down the exact formula for non inverting op amp circuits, define every variable, walk through algebraic rearrangements, and solve bench-ready problems with strict unit tracking. Finally, we will look at a real-world scenario where blindly trusting this formula leads to a failed prototype.

The Core Formula for Non Inverting Op Amp Gain

The behavior of the non-inverting amplifier relies on negative feedback. The input signal is applied to the non-inverting (+) terminal, while a voltage divider formed by two resistors feeds a portion of the output back to the inverting (-) terminal. The op-amp adjusts its output to keep the voltage difference between the two inputs at virtually zero.

Primary Equations

Vout = Vin × (1 + (Rf / Rin))

Av = 1 + (Rf / Rin)

Symbol Definition Standard Unit
Vout Output voltage relative to circuit ground Volts (V)
Vin Input voltage applied to the non-inverting (+) terminal Volts (V)
Av Closed-loop voltage gain (dimensionless ratio) V/V (Unitless)
Rf Feedback resistor connecting the output to the inverting (-) terminal Ohms (Ω)
Rin Input resistor connecting the inverting (-) terminal to ground Ohms (Ω)

Core Assumptions: This formula assumes an ideal op-amp. Specifically, it assumes infinite open-loop gain, infinite input impedance (drawing zero current from the source), and zero output impedance. In reality, components like the classic LM358 or TL072 approximate these ideals closely at DC and low frequencies, but deviate as frequency increases or as output current limits are reached.

Rearranged Forms: Solving for Every Variable

On the bench, you rarely know exactly what Vout will be; usually, you have a target output and need to pick resistors. Here are the algebraic rearrangements of the formula for non inverting op amp gain, solving for each specific variable.

  1. Solving for Input Voltage (Vin):
    Vin = Vout / (1 + (Rf / Rin))
    Use case: Verifying if a measured output voltage corresponds to an expected sensor input.
  2. Solving for Feedback Resistor (Rf):
    Rf = Rin × ((Vout / Vin) - 1)
    Use case: You have a standard 1 kΩ resistor for Rin and need to calculate the exact Rf value to hit a specific gain target.
  3. Solving for Input Resistor (Rin):
    Rin = Rf / ((Vout / Vin) - 1)
    Use case: You are constrained by a specific feedback resistor value in your parts bin and need to find the matching ground-referenced resistor.

Solved Problems with Strict Unit Tracking

Abstract math is useless if your units cancel incorrectly. Here are two bench-typical problems with explicit unit tracking.

Problem 1: Calculating Output Voltage from Known Resistors

Given: Vin = 250 mV, Rf = 47 kΩ, Rin = 10 kΩ.
Find: Vout.

  1. Convert all units to base SI units (Volts, Ohms) to prevent magnitude errors:
    Vin = 0.250 V
    Rf = 47,000 Ω
    Rin = 10,000 Ω
  2. Calculate the resistor ratio (units cancel out):
    Rf / Rin = 47,000 Ω / 10,000 Ω = 4.7 (dimensionless)
  3. Calculate the closed-loop gain (Av):
    Av = 1 + 4.7 = 5.7 V/V
  4. Calculate Vout:
    Vout = 0.250 V × 5.7 = 1.425 V

Problem 2: Sizing Rf for a Target Gain

Given: Target Av = 12, Vin = 100 mV (0.1 V), Rin = 2.2 kΩ (2,200 Ω).
Find: Required Rf.

  1. Identify the rearranged formula:
    Rf = Rin × (Av - 1)
  2. Substitute the known values:
    Rf = 2,200 Ω × (12 - 1)
  3. Solve the arithmetic:
    Rf = 2,200 Ω × 11 = 24,200 Ω (or 24.2 kΩ)
  4. Bench Reality Check: 24.2 kΩ is not a standard E24 resistor value. You would use a 24 kΩ resistor in series with a 200 Ω resistor, or select the closest standard value (24 kΩ) which yields a real-world gain of 11.9.

Real-World Bench Scenario: Amplifying a 100mV Shunt Signal

Let us move from the whiteboard to the workbench. Formulas assume ideal conditions; physical silicon does not.

The Setup: You are building a battery monitor for a 12V LiFePO4 pack. You have a 1 mΩ shunt resistor that outputs a maximum of 100 mV at peak current. You need to read this with an Arduino Uno, which has a 5V ADC. You need a gain of exactly 50 to map 100 mV to 5.0 V. You choose an LM358 dual op-amp powered from the Arduino’s 5V rail. Using the rearranged formula, you select Rin = 1 kΩ and calculate Rf = 49 kΩ.

The Numbers:
Vin = 0.100 V
Av = 1 + (49,000 / 1,000) = 50
Expected Vout = 0.100 V × 50 = 5.0 V.

The Outcome: You wire the circuit, apply 100 mV to the input, and put your multimeter on the output. The meter reads 3.6 V. The Arduino ADC reads erratic, capped values. The signal is heavily distorted.

What Went Wrong: The formula for non inverting op amp gain told you the math was perfect, but it ignored the output voltage swing limitation of the specific silicon you chose. The LM358 is not a rail-to-rail output op-amp. According to its datasheet, when powered by a single 5V supply, the maximum output swing is typically VCC - 1.5V (which is 3.5V to 3.8V). The op-amp hit its internal ceiling and clipped the signal. Furthermore, the LM358's input common-mode range includes ground, but its crossover distortion near ground can introduce errors in precision shunt measurements.

The Fix: Swap the LM358 for a true rail-to-rail input/output (RRIO) op-amp like the MCP6001 or TLV2371. With an MCP6001 on a 5V supply, the output will comfortably swing to 4.95V, matching your mathematical expectation.

When the Formula Breaks: Assumptions, Magnitudes, and Unit Traps

Knowing when to abandon the ideal formula is what separates a hobbyist from an engineer. Here are the boundaries where the math fails.

Realistic Answer Magnitudes

If you plug numbers into the formula and calculate a closed-loop gain of 5,000, the formula is lying to you. Real op-amps have a finite open-loop gain (typically 100,000 to 1,000,000 V/V at DC). If your closed-loop gain approaches even 1% of the open-loop gain, the actual output will fall significantly short of the formula's prediction. Furthermore, the Gain-Bandwidth Product (GBWP) limits high-frequency gain. An op-amp with a 1 MHz GBWP cannot provide a gain of 100 at 20 kHz; the bandwidth will choke, and the signal will attenuate. Keep closed-loop DC gains between 1 and 100 for stable, predictable results.

Unit Mistakes That Break the Math

The most common fatal error in op-amp calculations is failing to normalize resistor units before dividing. If Rf = 100 kΩ and Rin = 2 Ω, the ratio is 50,000. If you accidentally type 100 / 2 into your calculator, you get a ratio of 50, resulting in a gain of 51 instead of 50,001. Always convert both resistors to base Ohms (Ω) or both to kilo-Ohms (kΩ) before performing the division. The units must match so they cancel out cleanly.

When the Formula Applies

The formula for non inverting op amp gain applies strictly to:

  • DC and low-frequency AC signals well below the op-amp's GBWP limit.
  • Linear operation regions, where Vout does not exceed the op-amp's supply rails (accounting for headroom losses).
  • Resistive feedback networks. If you replace Rf or Rin with capacitors or inductors to build active filters, you must switch to complex impedance (Z) calculations using Laplace transforms or AC phasor math.

Bench Tip: The Unity Gain Buffer

If you remove Rf (shorting the output directly to the inverting pin) and remove Rin (leaving the inverting pin floating from ground), the ratio Rf/Rin becomes 0. The formula yields Av = 1 + 0 = 1. This creates a unity-gain buffer, an essential circuit for isolating high-impedance sensors from low-impedance ADC inputs without altering the voltage magnitude.