The closed-loop voltage gain of a noninverting operational amplifier is determined by a simple ratio of two feedback resistors. The direct answer for the ideal noninverting op amp formula is:
Av = 1 + (Rf / Ri)
This configuration is the backbone of sensor amplification, audio pre-stages, and buffer circuits because it offers extremely high input impedance, meaning it won't load down the signal source. Below, we break down every variable, examine where the ideal math collides with real-world silicon, and walk through two bench-ready design problems.
The Core Formula and Symbol Definitions
To use the formula correctly, you must understand exactly what each symbol represents on the schematic and the physical breadboard. The derivation relies on the "virtual short" concept: because the op-amp's open-loop gain is massive, the feedback network forces the inverting input to match the noninverting input.
| Symbol | Parameter | Standard Unit | Practical Description |
|---|---|---|---|
| Av | Closed-Loop Voltage Gain | V/V (Dimensionless) | The ratio of output voltage to input voltage. Always ≥ 1. |
| Vout | Output Voltage | Volts (V) | The voltage at the op-amp output pin. Limited by supply rails. |
| Vin | Input Voltage | Volts (V) | The signal voltage applied to the noninverting (+) input pin. |
| Rf | Feedback Resistor | Ohms (Ω) | Resistor connecting the output pin to the inverting (-) input. |
| Ri | Input/Ground Resistor | Ohms (Ω) | Resistor connecting the inverting (-) input to ground (or V-). |
Real-World IC Limits: Why the Ideal Formula Fails
The formula Av = 1 + (Rf / Ri) assumes an ideal op-amp with infinite open-loop gain. In reality, every physical IC has limits. If you ask an LM358 for a gain of 10,000, it will fail. The table below shows real specifications for common op-amps you will encounter in 2026, highlighting the parameters that break the ideal formula.
| Part Number | Type / Use Case | Open-Loop Gain (AOL) | Gain Bandwidth (GBW) | Typical Price (1k qty) |
|---|---|---|---|---|
| LM358 | General Purpose / Low Cost | 100 dB (100,000 V/V) | 1 MHz | $0.12 |
| TLV9002 | CMOS / Rail-to-Rail I/O | 120 dB (1,000,000 V/V) | 1 MHz | $0.65 |
| OPA211 | Precision / Low Noise | 140 dB (10,000,000 V/V) | 45 MHz | $4.80 |
| NE5532 | Audio Preamplifier | 100 dB (100,000 V/V) | 10 MHz | $0.35 |
Bench Note: Your closed-loop gain (Av) must be significantly lower than the IC's open-loop gain (AOL) at your operating frequency. If you design for Av = 1,000 using an LM358, the actual output will fall short of the formula's prediction because the 100 dB (100,000 V/V) AOL leaves almost no error-correction margin.
Assumptions, Unit Traps, and Realistic Magnitudes
Before you start calculating resistor values, you need to understand the boundaries of this topology. For a deeper theoretical dive into the virtual short principle, the All About Circuits semiconductor textbook provides an excellent foundational breakdown.
When the Formula Applies (and When It Doesn't)
- Applies: Linear DC and low-frequency AC amplification where the signal stays within the op-amp's common-mode input range and output swing limits.
- Fails: When the op-amp saturates (hits the supply rails). If you have a 5V single supply and calculate Vout = 6V, the physical output will clip at ~3.5V (for an LM358) or ~4.9V (for a true rail-to-rail TLV9002).
- Fails: At high frequencies. As frequency increases, the op-amp's internal compensation capacitor rolls off the gain.
Unit Mistakes That Break the Math
The most common mistake on the bench is mixing up linear gain (V/V) with decibel gain (dB). The resistor formula strictly requires linear gain. If a specification sheet or a client asks for "40 dB of gain," and you plug "40" into the formula as Av, your circuit will be wrong.
The Fix: Convert dB to linear first using Av = 10^(dB / 20). Therefore, 40 dB = 10^(40/20) = 100 V/V. You must use 100 in the resistor formula. Additionally, ensure Rf and Ri are in the same units (both kΩ or both Ω) before dividing, as the units cancel out to leave a dimensionless ratio.
What a Realistic Answer Magnitude Looks Like
Because of the "+ 1" in the formula, the minimum possible gain of a noninverting amplifier is exactly 1 (when Rf = 0Ω and Ri = ∞). You cannot achieve a fractional gain (e.g., 0.5x attenuation) with this topology. If you need to attenuate a signal, you must use a passive voltage divider before the noninverting input, or switch to an inverting op-amp configuration.
Rearranged Forms for Circuit Design
On the bench, you rarely solve for Av. Usually, you know your input signal, your target output, and you need to buy resistors. Here are the algebraically rearranged forms for practical design:
| To Solve For: | Rearranged Formula | Design Use Case |
|---|---|---|
| Feedback Resistor (Rf) | Rf = Ri × (Av - 1) | Selecting Rf after picking a standard Ri value. |
| Ground Resistor (Ri) | Ri = Rf / (Av - 1) | Selecting Ri when Rf is fixed (e.g., using a digital potentiometer). |
| Output Voltage (Vout) | Vout = Vin × (1 + Rf / Ri) | Verifying expected output during circuit simulation or debugging. |
| Input Voltage (Vin) | Vin = Vout / (1 + Rf / Ri) | Reverse-calculating the sensor voltage from a microcontroller ADC reading. |
Worked Example 1: Sensor Signal Amplification
Scenario: You are reading a pressure transducer that outputs 0 mV to 15 mV. You need to scale this to 0 V to 3.0 V to maximize the resolution of an ESP32's 12-bit ADC. You have a TLV9002 (rail-to-rail) powered by a 3.3V single supply.
- Calculate Required Linear Gain (Av):
Av = Vout(max) / Vin(max)
Av = 3.0 V / 0.015 V = 200 V/V - Select a Standard Ground Resistor (Ri):
Choose Ri = 1 kΩ. (Going too low wastes current; going above 100 kΩ invites thermal noise and bias current errors). - Solve for Feedback Resistor (Rf):
Rf = Ri × (Av - 1)
Rf = 1,000 Ω × (200 - 1)
Rf = 1,000 Ω × 199 = 199,000 Ω (199 kΩ) - Select Real-World Components:
199 kΩ is a standard E96 series 1% resistor value. If you only have E24 5% resistors, you would use a 200 kΩ resistor, resulting in an actual gain of 201 (which introduces a negligible 0.5% error). - Verify Output:
Vout = 0.015 V × (1 + 199,000 Ω / 1,000 Ω)
Vout = 0.015 V × 200 = 3.0 V
Bench Reality Check: A 15 mV signal is highly susceptible to common-mode noise. While the math here is flawless, a single-ended noninverting amp will amplify 60 Hz mains hum picked up by the sensor wires. For real-world transducer work, use an instrumentation amplifier like the INA128, which utilizes three op-amps to reject common-mode noise.
Worked Example 2: Pushing the Gain Bandwidth Limit
Scenario: You are designing an audio preamplifier for an electret microphone. You need a voltage gain of 50 (roughly 34 dB) and the audio bandwidth must extend to 40 kHz to capture high-frequency harmonics without phase shift. Will a cheap LM358 work, or do you need to spend more on an NE5532?
- Identify the Target Parameters:
Closed-Loop Gain (Av) = 50 V/V
Required Bandwidth (f) = 40,000 Hz - Calculate the Required Gain Bandwidth Product (GBW):
The MIT OpenCourseWare circuits curriculum emphasizes that an op-amp's GBW is constant.
Required GBW = Av × f
Required GBW = 50 V/V × 40,000 Hz = 2,000,000 Hz (2 MHz) - Evaluate the LM358:
LM358 GBW = 1 MHz.
Since 1 MHz < 2 MHz, the LM358 will run out of open-loop gain before reaching 40 kHz. At 40 kHz, its maximum possible gain drops to 25 (1,000,000 / 40,000). The LM358 fails. - Evaluate the NE5532:
NE5532 GBW = 10 MHz.
Since 10 MHz > 2 MHz, the NE5532 has plenty of headroom. At a gain of 50, its actual -3dB bandwidth will be roughly 200 kHz (10,000,000 / 50), keeping your 40 kHz audio signal well within the flat-gain region. - Calculate Resistors for NE5532:
Let Ri = 2 kΩ.
Rf = 2,000 Ω × (50 - 1) = 2,000 Ω × 49 = 98,000 Ω (98 kΩ).
Use a standard 97.6 kΩ (E96 1%) or 100 kΩ (E24 5%) resistor depending on your tolerance requirements.
By tracking the units from V/V to Hertz, you avoid the classic hobbyist trap of building a circuit that works perfectly at DC on a multimeter, but sounds muffled and distorted when fed a real audio signal. Always check the GBW product before finalizing your resistor values.






