The fundamental op amp formulas for closed-loop DC voltage gain are Av = -(Rf / Rin) for the inverting configuration and Av = 1 + (Rf / Rin) for the non-inverting configuration. These equations dictate the ratio of output voltage to input voltage based purely on the external feedback network, assuming an ideal operational amplifier. Below, we break down every symbol, map real-world component values, and walk through bench-tested derivations with strict unit tracking.
The Core Op Amp Formulas and Symbol Definitions
To design a predictable amplifier stage, you must first isolate the variables. The closed-loop gain formulas rely on the external resistor network to tame the op-amp's massive internal open-loop gain (often >100,000 V/V). Here is the strict definition of every symbol used in the standard gain equations.
| Symbol | Parameter Name | Standard Unit | Practical Definition & Constraints |
|---|---|---|---|
| Av | Closed-Loop Voltage Gain | V/V (unitless) | The ratio of Vout to Vin. Must be converted from dB before using in resistor calculations. |
| Rf | Feedback Resistor | Ohms (Ω) | Connects the output pin to the inverting input. Typically 1kΩ to 1MΩ to balance noise and bias current. |
| Rin | Input Resistor | Ohms (Ω) | Connects the signal source to the inverting input. Sets the input impedance for inverting configs. |
| Vin | Input Voltage | Volts (V) | The signal applied to the input terminal. Must remain within the common-mode input range of the IC. |
| Vout | Output Voltage | Volts (V) | The resulting amplified signal. Constrained by the op-amp's supply rails (usually ~1.5V less than VCC/VEE). |
Textbook examples often use round numbers like 10kΩ and 100kΩ. On a real workbench, you use E96 series 1% tolerance resistors to hit exact gain targets while managing thermal noise. The table below maps these formulas to real-world scenarios using standard off-the-shelf component values.
| Application Scenario | Configuration | Rf Value | Rin Value | Calculated Gain (Av) | Recommended IC |
|---|---|---|---|---|---|
| Audio Line Preamp | Non-Inverting | 10.0 kΩ | 1.00 kΩ | 11.0 V/V | OPA2134 (Low noise, JFET) |
| DAC Level Shifter | Inverting | 49.9 kΩ | 10.0 kΩ | -4.99 V/V | TL072 (High slew rate) |
| Sensor Unity Buffer | Non-Inverting | 0 Ω (short) | Open (none) | 1.0 V/V | LM358 (Single supply) |
| Electret Mic Preamp | Inverting | 1.00 MΩ | 1.00 kΩ | -1000 V/V | NE5532 (High drive) |
Assumptions, Limits, and Unit Traps
These op amp formulas are derived from the 'ideal op-amp' model. Before you solder components, you must understand the assumptions baked into the math and the unit mistakes that will ruin your prototype.
When the Formula Applies (Ideal Assumptions)
- Infinite Open-Loop Gain: The formula assumes the internal gain is so high that the voltage difference between the inverting and non-inverting pins is effectively zero (virtual short).
- Infinite Input Impedance: Assumes zero current flows into the input pins. (In reality, bipolar op-amps like the LM741 draw nanoamps of bias current; JFET/CMOS types like the TL072 draw picoamps).
- Zero Output Impedance: Assumes the op-amp can drive any load without the output voltage sagging. (Real ICs typically have 10Ω to 100Ω output impedance and current limits around 20-40mA).
Unit Mistakes That Break the Math
The most common bench mistake is plugging a decibel gain value directly into the resistor formula. Gain in the formula is strictly a linear ratio (V/V). If your spec sheet calls for 20 dB of gain, you must convert it first: Linear Gain = 10^(dB/20). Therefore, 20 dB = 10 V/V. Plugging '20' into the formula instead of '10' will yield resistor values that are off by a factor of two.
Realistic Answer Magnitudes
A realistic closed-loop gain magnitude for a single op-amp stage is between 0.1 V/V and 100 V/V. If your calculation yields a required gain of 5,000 V/V, the formula is mathematically correct but practically useless. At extreme gains, the input offset voltage (Vos) is also amplified by 5,000, pushing the output straight into the supply rail. For gains above 100 V/V, cascade two stages (e.g., two stages of 31.6 V/V to achieve ~1000 V/V).
Rearranged Forms for Component Selection
On the bench, you rarely solve for gain; you know the gain you need and must solve for the missing resistor. Here are the rearranged op amp formulas for component selection.
Inverting Configuration Rearrangements
- Solve for Feedback Resistor: Rf = -Av × Rin
- Solve for Input Resistor: Rin = -Rf / Av
Non-Inverting Configuration Rearrangements
- Solve for Feedback Resistor: Rf = Rin × (Av - 1)
- Solve for Input Resistor: Rin = Rf / (Av - 1)
Pro-Tip: Always select the standard E96 resistor value closest to your calculated result, then recalculate the actual gain to verify it meets your system tolerance.
Worked Examples with Strict Unit Tracking
Let's apply the rearranged forms to two common design problems, tracking every unit to prevent calculation errors.
Problem 1: Inverting Amplifier for a Microcontroller DAC
Scenario: You have a 3.3V DAC output and need to drive a ±5V analog synth control voltage input. You need an inverting amplifier that outputs -5.0V when the DAC outputs 3.3V. You have a 10.0 kΩ (1% E96) resistor for Rin. What value do you need for Rf?
- Calculate Required Gain (Av):
Av = Vout / Vin
Av = -5.0 [V] / 3.3 [V] = -1.515 [V/V] - Apply Rearranged Inverting Formula:
Rf = -Av × Rin
Rf = -(-1.515 [V/V]) × 10,000 [Ω]
Rf = 15,150 [Ω] - Select Standard Component:
The closest E96 1% value is 15.0 kΩ. Using this, the actual gain becomes -1.50 V/V, yielding an output of -4.95V, which is well within the tolerance of most analog control systems.
Problem 2: Non-Inverting Amplifier for a Current Shunt
Scenario: A 50 mV (0.050 V) signal from a battery shunt resistor needs to be amplified to exactly 2.50 V to feed an Arduino ADC. You have a 49.9 kΩ standard feedback resistor (Rf) in your parts bin. What value must Rin be?
- Calculate Required Gain (Av):
Av = Vout / Vin
Av = 2.50 [V] / 0.050 [V] = 50.0 [V/V] - Apply Rearranged Non-Inverting Formula:
Rin = Rf / (Av - 1)
Rin = 49,900 [Ω] / (50.0 [V/V] - 1 [V/V])
Rin = 49,900 [Ω] / 49.0 [V/V]
Rin = 1,018.3 [Ω] - Select Standard Component:
The closest E96 1% value is 1.00 kΩ. Recalculating with 1.00 kΩ yields a gain of 50.9 V/V and an output of 2.545 V. If 2.50 V is a hard ceiling for your ADC, you would step up to the next standard value, 1.02 kΩ, which drops the gain to 49.9 V/V and the output to a safe 2.495 V.
Real-World Deviations: When the Formula Breaks Down
The DC gain formulas hold true until you introduce time, frequency, and physical silicon limitations. According to All About Circuits and manufacturer application notes from Texas Instruments, three primary factors cause real-world circuits to deviate from the ideal math.
1. Gain-Bandwidth Product (GBWP)
The closed-loop gain formula assumes DC or very low frequencies. Every op-amp has a constant GBWP. If you use an LM741 (GBWP = 1 MHz) and configure it for a gain of 100 V/V (40 dB), your bandwidth shrinks to just 10 kHz. If you need 100 V/V gain at 100 kHz, the formula will fail you; you must select an IC like the OPA2134 (GBWP = 8 MHz) or cascade lower-gain stages.
2. Slew Rate Limiting
Slew rate defines how fast the output voltage can change, measured in Volts per microsecond (V/µs). If your formula dictates a 10V output swing at 100 kHz, the required slew rate is roughly 6.28 V/µs. A standard LM358 (slew rate 0.3 V/µs) will distort the sine wave into a triangle wave, regardless of how perfectly your resistor ratio matches the gain formula. Always verify: Required Slew Rate > 2π × f × Vpeak.
3. Output Voltage Swing Limits
The formula assumes the op-amp can output any voltage. In reality, standard op-amps cannot swing all the way to the supply rails. A TL072 powered by ±15V will typically max out at ±13V. If your formula calculates an output of 14.5V, the signal will clip flat at 13V. For applications requiring the output to reach the exact supply voltage, you must explicitly select a 'Rail-to-Rail Output' (RRO) op-amp, and even then, expect a 50mV to 100mV drop under heavy loads.






