The direct answer for the closed-loop voltage gain of a non-inverting operational amplifier configuration is Av = 1 + (R2 / R1). If you know your input voltage, the output is simply Vout = Vin × (1 + R2 / R1). While this equation is straightforward on a whiteboard, applying it at the workbench requires understanding the assumptions baked into the math, tracking your units rigorously, and knowing when real-world silicon refuses to behave like an ideal textbook component.
The Core Equation and Symbol Definitions
In a standard non-inverting configuration, the input signal is applied directly to the non-inverting (+) terminal, while a voltage divider formed by two resistors feeds a portion of the output back to the inverting (-) terminal. This negative feedback forces the op-amp to adjust its output until the voltage at both inputs is equal.
The governing equation for the closed-loop gain is:
Av = 1 + (R2 / R1)
| Symbol | Parameter Name | Unit | Practical Bench Note |
|---|---|---|---|
| Av | Closed-Loop Voltage Gain | Unitless (V/V) | Often expressed in decibels (dB) in audio/RF, where Gain(dB) = 20 × log10(Av). |
| Vout | Output Voltage | Volts (V) | Constrained by the op-amp's supply rails and output swing limitations. |
| Vin | Input Voltage | Volts (V) | Must stay within the op-amp's Input Common-Mode Voltage Range. |
| R2 | Feedback Resistor (Rf) | Ohms (Ω) | Connects from the output pin to the inverting (-) input. Keep between 1kΩ and 100kΩ to minimize thermal noise and bias current errors. |
| R1 | Ground Resistor (Ri / Rg) | Ohms (Ω) | Connects from the inverting (-) input to signal ground. |
When the Formula Applies and Its Assumptions
This formula assumes an ideal op-amp. Specifically, it assumes infinite open-loop gain (AOL), infinite input impedance, and zero output impedance. In reality, a classic part like the LM741 has an AOL of about 200,000 V/V. If you attempt to design a circuit with a target closed-loop gain of 10,000, the finite open-loop gain will cause your actual closed-loop gain to fall noticeably short of the math. Furthermore, the formula assumes the op-amp is operating in its linear region—not clipped against the supply rails.
Rearranged Forms for Component Selection
On the bench, you rarely start with both resistor values. Usually, you have a target gain and one standard resistor value, or you need to find the maximum input before clipping. Here are the rearranged forms you will actually use:
- Solving for the Feedback Resistor: R2 = R1 × (Av - 1)
- Solving for the Ground Resistor: R1 = R2 / (Av - 1)
- Solving for Maximum Input: Vin(max) = Vout(max) / (1 + R2/R1)
- Solving for Output: Vout = Vin × Av
Inline Data Highlight: If you need a gain of exactly 1 (a voltage follower or buffer), R2 becomes 0Ω and R1 becomes ∞ (open circuit). The formula gracefully collapses to Av = 1 + 0 = 1.
Solved Problems: Tracking Units from Millivolts to Volts
The most common point of failure in student and hobbyist calculations is dropping a milli- prefix or mixing kilohms with base ohms. Let's walk through two problems with explicit unit tracking.
Problem 1: Thermocouple Signal Amplification
Given: A K-type thermocouple outputs Vin = 12.5 mV at a specific temperature. Your feedback network uses R1 = 1.0 kΩ and R2 = 49.0 kΩ. Find Vout.
- Convert to base units (optional but safe): Vin = 0.0125 V; R1 = 1000 Ω; R2 = 49000 Ω. (Alternatively, keep both resistors in kΩ since the ratio is unitless).
- Calculate Gain: Av = 1 + (49.0 kΩ / 1.0 kΩ) = 1 + 49 = 50 V/V.
- Calculate Output: Vout = 0.0125 V × 50 = 0.625 V.
Answer: The output voltage is 625 mV (or 0.625 V).
Problem 2: Strain Gauge ADC Scaling
Given: You need to amplify a 50 mV strain gauge signal to exactly 3.3 V to max out a 3.3V microcontroller ADC. You have a precision 2.0 kΩ resistor for R1. What value do you need for R2?
- Determine Required Gain: Av = Vout / Vin = 3.3 V / 0.050 V = 66 V/V.
- Apply Rearranged Formula: R2 = R1 × (Av - 1).
- Substitute Values: R2 = 2000 Ω × (66 - 1) = 2000 Ω × 65.
- Calculate: R2 = 130,000 Ω.
Answer: You need a 130 kΩ feedback resistor. (In practice, you would use a 127 kΩ 1% resistor in series with a 3 kΩ resistor, or a 130 kΩ 0.1% precision resistor).
Bench Scenario: When the Math Meets Reality
Formulas assume ideal components. Silicon does not. Here is a real-world walkthrough of a design that worked on paper but failed on the bench, illustrating why you must look beyond the gain equation.
The Setup
We needed to amplify a 0–1V analog pressure sensor to a 0–4.5V range to feed a 5V Arduino ADC. We chose a classic, cheap LM358 dual op-amp, powered by a single 5V supply (VCC = 5V, GND = 0V). We wired it in a non-inverting configuration.
The Numbers
- Target Vout(max) = 4.5 V
- Vin(max) = 1.0 V
- Required Gain = 4.5 V / 1.0 V = 4.5 V/V
- Resistor selection: R1 = 10.0 kΩ, R2 = 34.8 kΩ (yielding a gain of 1 + 3.48 = 4.48).
The Outcome
When the sensor output hit 1.0V, the math dictated the op-amp output should be 4.48V. Instead, our multimeter read 3.6V. The Arduino ADC registered a value of ~737 instead of the expected ~917. The system was reading 20% low at the top of the scale.
What Went Wrong
The non inverting gain formula was applied correctly, but the component selection violated the physical limits of the LM358. The LM358 is not a rail-to-rail output op-amp. According to its datasheet, the high-level output voltage (VOH) drops to VCC - 1.5V when sourcing even a few milliamps of current. With a 5V supply, the absolute maximum output swing was roughly 3.5V to 3.6V. The op-amp was clipping internally long before the math said it should. The fix: We swapped the LM358 for an MCP6001, a true Rail-to-Rail Input/Output (RRIO) op-amp, which successfully swung to 4.48V within 10mV of the positive rail.
Unit Mistakes and Magnitude Sanity Checks
Which Unit Mistakes Break the Formula?
The gain term (R2 / R1) is a dimensionless ratio. The most fatal mistake occurs when builders mix scales without converting. If R2 = 10 kΩ and R1 = 100 Ω, the gain is 1 + (10,000 / 100) = 101. If you blindly type 1 + (10 / 100) into your calculator, you get a gain of 1.1. Rule of thumb: Always convert both resistors to base Ohms before dividing, or explicitly verify both are in kΩ.
Another common error is forgetting the '+ 1'. The inverting amplifier gain formula is simply -R2/R1. If you want a non-inverting gain of 10, and you set your resistor ratio to 10, your actual gain will be 11. You must set the ratio to 9.
What Does a Realistic Answer Magnitude Look Like?
When you calculate your gain, perform a quick sanity check against these practical boundaries:
- Magnitudes < 1: Impossible in a standard non-inverting configuration. The minimum gain is 1 (when R2 = 0). If your math yields 0.5, you have wired an inverting amp or made a calculation error.
- Magnitudes 2 to 50: The sweet spot for most sensor conditioning and audio pre-amplification. Bandwidth remains wide, and noise is manageable.
- Magnitudes > 100: Highly suspect for a single stage. Every op-amp has a Gain-Bandwidth Product (GBW). An LM358 has a GBW of ~1 MHz. If you set a gain of 100, your usable bandwidth drops to 10 kHz. Furthermore, high gains amplify the op-amp's internal input offset voltage and thermal noise. If you need a gain of 1000, cascade two stages of ~31.6 each.
For deeper analysis on how finite open-loop gain and resistor tolerances introduce errors into this formula, refer to the precision design guides provided by Texas Instruments application notes on op-amp error sources. Understanding the gap between the ideal non inverting gain formula and the physical reality of your silicon is what separates a schematic drawer from a circuit designer.






