If you are designing an analog front-end, buffering a sensor, or scaling a DAC output, the non-inverting op-amp configuration is likely your go-to topology. The direct answer for the closed-loop voltage gain is Av = 1 + (Rf / Ri). Unlike the inverting amplifier, this topology preserves the phase of your input signal and offers exceptionally high input impedance, making it ideal for interfacing with high-impedance sources like piezo sensors or voltage dividers.

But knowing the formula is only 10% of the job. The other 90% is understanding what happens when the math on your spreadsheet collides with the physical limitations of silicon. Below, we break down the derivation, track units through solved problems, and look at a real-world bench scenario where the equation lied to us.

The Core Formula, Symbol Guide, and Ideal Assumptions

The non-inverting amplifier routes the input signal directly to the non-inverting (+) terminal, while a voltage divider formed by the feedback network connects the output back to the inverting (-) terminal. The op-amp adjusts its output to force the voltage at the inverting terminal to match the non-inverting terminal (the virtual short concept).

Non-Inverting Amplifier Symbol Definitions
Symbol Parameter Typical Units Practical Bench Notes
Av Closed-Loop Voltage Gain Dimensionless (V/V) Often converted to decibels: 20 × log10(Av).
Rf Feedback Resistor Ohms (Ω) or kΩ Connects output to inverting input. Keep < 100kΩ to minimize thermal noise and bias current errors.
Ri Input / Ground Resistor Ohms (Ω) or kΩ Connects inverting input to ground. Sometimes labeled R1 or Rg.
Vin Input Voltage Volts (V) or mV Applied to the non-inverting (+) terminal.
Vout Output Voltage Volts (V) Must remain within the op-amp's supply rails (minus headroom losses).

When the Formula Applies (and When It Doesn't)

This equation assumes an ideal op-amp. Specifically, it assumes infinite open-loop gain (AOL), infinite input impedance, and zero output impedance. In reality, a workhorse chip like the TI LM358 has an AOL of roughly 100 dB (100,000 V/V). For closed-loop gains under 100, the ideal equation holds true within a fraction of a percent. However, if you attempt a closed-loop gain of 5,000 on a single stage, the finite open-loop gain introduces significant error, and the formula breaks down.

Rearranged Forms: Solving for Any Variable

On the bench, you rarely just calculate Vout. Usually, you have a target gain and a standard resistor value, and you need to find the missing component. Here are the algebraic rearrangements you will actually use:

  • Find Feedback Resistor: Rf = Ri × (Av - 1)
  • Find Ground Resistor: Ri = Rf / (Av - 1)
  • Find Output Voltage: Vout = Vin × [1 + (Rf / Ri)]
  • Find Input Voltage: Vin = Vout / [1 + (Rf / Ri)]
  • Find Gain from Voltages: Av = Vout / Vin

Bench-Side Solved Problems with Unit Tracking

Let's walk through two common design calculations, paying strict attention to unit tracking. The most common mistake hobbyists make is mixing base units (Ω) with prefixed units (kΩ) inside the ratio.

Problem 1: Calculating Output Voltage

Given: Rf = 47 kΩ, Ri = 10 kΩ, Vin = 120 mV DC.
Find: Vout.

  1. Calculate the resistance ratio: Because both resistors are in kΩ, the prefix cancels out. Ratio = 47 / 10 = 4.7 (dimensionless).
  2. Calculate closed-loop gain (Av): Av = 1 + 4.7 = 5.7 V/V.
  3. Calculate Vout: Vout = 120 mV × 5.7 = 684 mV (or 0.684 V).

Problem 2: Designing for a Target Gain

Given: Target Av = 25. You have a 2.2 kΩ resistor in your bin and want to use it as Ri.
Find: Required Rf and the nearest standard E24 resistor value.

  1. Rearrange for Rf: Rf = Ri × (Av - 1).
  2. Plug in values: Rf = 2.2 kΩ × (25 - 1) = 2.2 kΩ × 24.
  3. Calculate exact value: Rf = 52.8 kΩ.
  4. Select standard E24 value: The closest E24 resistor is 51 kΩ.
  5. Verify actual gain: Av(actual) = 1 + (51 / 2.2) = 1 + 23.18 = 24.18 V/V. (This 3% error is usually acceptable in general-purpose analog circuits, but if you need precision, use an E96 series 52.3 kΩ resistor).

Real-World Scenario: When the Math Meets the Silicon

Equations assume infinite headroom. Silicon does not. Here is a scenario that burns almost every beginner at least once.

The Setup: You are amplifying a 50 mV peak AC signal from a vibration sensor to feed a 3.3V microcontroller ADC. You need a gain of 60. You power an LM358 op-amp from a single 5V supply. You set Ri = 1 kΩ and Rf = 59 kΩ.

The Numbers:
Math says Av = 1 + (59 / 1) = 60.
Expected Vout(peak) = 50 mV × 60 = 3.0V.
Since 3.0V is well below the 5V supply rail, you assume the circuit will work perfectly.

The Outcome:
You hook up your oscilloscope. The waveform amplifies correctly on the negative swing, but the positive peaks are flattened off (clipped) at roughly 3.5V.

What Went Wrong:
The LM358 datasheet reveals the culprit. The LM358 is not a rail-to-rail output (RRIO) op-amp. Its output high voltage (VOH) is specified as VCC - 1.5V. On a 5V supply, the absolute maximum output swing is ~3.5V. Your 3.0V peak signal, combined with common-mode shifts and load variations, pushed the output transistor into saturation.

The Fix: Swap the LM358 for a true Rail-to-Rail I/O op-amp like the Microchip MCP6001, which can swing within millivolts of the 5V rail, or increase your LM358 supply voltage to 9V to give it the headroom it demands.

Unit Mistakes and Realistic Magnitudes That Break Your Circuit

Beyond clipping, there are two major traps that invalidate your gain equation in practice: unit conversion errors and ignoring the Gain-Bandwidth Product (GBWP).

Which Unit Mistakes Break the Math?

  1. Mixed Prefixes in the Ratio: If Rf = 100 kΩ and Ri = 500 Ω, the ratio is 100,000 / 500 = 200. If you blindly type 100 / 500 into your calculator, you get 0.2, resulting in a massive design failure. Rule: Always convert both resistors to base Ohms before dividing.
  2. RMS vs. Peak Voltage: If your input is a 2 VRMS sine wave, the peak voltage is 2 × √2 = 2.82V. If you calculate Vout using the RMS value (2V × Gain) and compare it to your DC supply rails, you will clip the peaks. Always check rail limits against peak voltages.

What Does a Realistic Answer Magnitude Look Like?

In a single-stage non-inverting amplifier, a realistic, stable voltage gain is between 1 and 100 (0 dB to 40 dB).

Why not 1,000? Because of the Gain-Bandwidth Product (GBWP). An op-amp's GBWP is constant. If your op-amp has a 1 MHz GBWP and you set the closed-loop gain to 100, your bandwidth shrinks to 10 kHz. If you set the gain to 1,000, your bandwidth drops to 1 kHz, and high-frequency noise gain will likely cause the circuit to oscillate due to parasitic capacitance on the breadboard. If you genuinely need a gain of 1,000 at audio frequencies, cascade two non-inverting stages (e.g., two stages with a gain of 31.6 each) rather than forcing it into a single chip.

For deeper reading on op-amp topologies and practical limitations, the All About Circuits guide on non-inverting amplifiers provides excellent supplementary schematic examples.