The foundational op amp equations for closed-loop gain are Vout = -Vin × (Rf / Rin) for the inverting topology, and Vout = Vin × (1 + Rf / Rin) for the non-inverting topology. These formulas assume an ideal operational amplifier with infinite open-loop gain and infinite input impedance operating in the linear region with negative feedback. In practice, your output magnitude is strictly bounded by your supply rails minus the IC's output voltage swing headroom.
The Core Op Amp Equations and Symbol Definitions
To design reliable analog front-ends, you must move beyond memorizing the gain formulas and understand the variables that dictate circuit behavior. The two most common closed-loop configurations rely on a feedback network to tame the op-amp's massive internal open-loop gain (often >100,000 V/V) into a precise, predictable closed-loop gain.
Inverting Amplifier: Vout = -Vin × (Rf / Rin)
Non-Inverting Amplifier: Vout = Vin × (1 + Rf / Rin)
| Symbol | Parameter | Standard Unit | Definition & Bench Context |
|---|---|---|---|
| Vout | Output Voltage | Volts (V) | The voltage at the output pin relative to circuit ground. Bounded by supply rails. |
| Vin | Input Voltage | Volts (V) | The signal voltage applied to the input resistor (inverting) or non-inverting pin. |
| Rf | Feedback Resistor | Ohms (Ω) | Resistor connecting the output pin back to the inverting input. Sets gain alongside Rin. |
| Rin | Input/Ground Resistor | Ohms (Ω) | Inverting: resistor from signal to inverting pin. Non-inverting: resistor from inverting pin to ground. |
| AOL | Open-Loop Gain | V/V (unitless) | The internal gain of the op-amp without feedback. Ideally ∞; realistically 104 to 106. |
These derivations rely on the 'Golden Rules' of ideal op-amps: no current flows into the input pins (infinite input impedance), and the voltage difference between the inverting and non-inverting pins is zero when negative feedback is active (virtual short). For a deeper look at the internal transistor stages that create these rules, refer to the All About Circuits semiconductor textbook.
Real-World Assumptions: When the Ideal Math Breaks Down
The ideal op amp equations apply only when the circuit operates in its linear region with negative feedback, and when the signal frequencies are well below the IC's bandwidth limits. If you push the math without checking the datasheet, your physical circuit will fail. Here are the core assumptions and how reality violates them:
- Infinite Output Swing: Ideal math says a ±15V supply yields a ±15V output. Reality: Standard op-amps lose 1.5V to 3V of headroom at the rails. A 'realistic answer magnitude' for Vout on a ±15V supply is typically bounded between ±12V and ±13.5V.
- Zero Input Offset Voltage (VOS): Ideal math assumes Vout = 0V when Vin = 0V. Reality: Mismatched internal transistors create a millivolt-level offset that gets multiplied by your closed-loop gain, causing massive DC errors in high-gain stages.
- Infinite Slew Rate: Ideal math assumes the output changes instantaneously. Reality: Internal compensation capacitors limit how fast Vout can change (measured in V/μs), causing triangular distortion on high-frequency, high-amplitude signals.
To ground these assumptions in hard data, compare the specifications of four common op-amps below. This table dictates which IC you can actually use for your calculated gain.
| Part Number | Topology / Type | Supply Range | Typ. VOS | Slew Rate | GBWP |
|---|---|---|---|---|---|
| LM741 | General Purpose (Bipolar) | ±5V to ±18V | 1.0 mV | 0.5 V/μs | 1.5 MHz |
| TL072 | Low Noise Audio (JFET) | ±5V to ±18V | 3.0 mV | 13 V/μs | 3 MHz |
| OPA2134 | Precision Audio (FET) | ±2.5V to ±18V | 0.5 mV | 20 V/μs | 8 MHz |
| MCP6001 | Rail-to-Rail (CMOS) | 1.8V to 6.0V (Single) | 4.5 mV | 0.6 V/μs | 1 MHz |
Note: The MCP6001 is designed for single-supply, low-voltage microcontroller interfaces, while the OPA2134 is a premium dual-supply part. Using the LM741 on a single 5V supply will result in total failure, as it violates the minimum supply voltage assumption. For detailed guidance on selecting the right part, review the Texas Instruments Precision Labs Op-Amp training series.
Rearranged Forms and Unit Traps
On the bench, you rarely solve for Vout directly. Usually, you have a target gain and a known input signal, and you need to calculate the required resistor values. Here are the rearranged forms for the inverting topology:
- Solving for Feedback Resistor: Rf = -(Vout / Vin) × Rin
- Solving for Input Resistor: Rin = -(Vout / Vin) × (Rf / Av) [where Av is target gain]
- Solving for Required Input Voltage: Vin = -Vout × (Rin / Rf)
- Mixing kΩ and Ω: If Rf is 100 kΩ and Rin is 10 Ω, the ratio is 10,000, not 10. Always convert both resistors to base Ohms (Ω) before dividing, or ensure both are in kΩ.
- Ignoring mV in Offset Calculations: If your VOS is 3 mV and your non-inverting gain is 100, the output error is 300 mV (0.3 V), not 300 V. Track milli-prefixes meticulously.
- Assuming V/V is Volts: Gain (Av) is a dimensionless ratio (Volts per Volt). Do not multiply a gain of '10' by a resistor value as if '10' carries a voltage unit.
Worked Problem 1: Inverting Amplifier Design
Scenario: You need to invert and amplify a 0.5 Vp AC sensor signal. The target closed-loop gain is -20 V/V. To prevent loading the high-impedance sensor, the circuit's input impedance must be exactly 10 kΩ. Calculate Rin and Rf, and determine the peak output voltage.
Step 1: Identify the input impedance constraint.
In an inverting amplifier, the input impedance is simply the value of Rin because the inverting pin is a virtual ground.
Rin = 10 kΩ = 10,000 Ω
Step 2: Use the rearranged gain formula to find Rf.
Target Gain (Av) = -Rf / Rin
-20 V/V = -Rf / 10,000 Ω
Rf = 20 × 10,000 Ω
Rf = 200,000 Ω = 200 kΩ
Step 3: Calculate the peak output voltage with unit tracking.
Vout(peak) = Vin(peak) × Av
Vout(peak) = 0.5 V × (-20 V/V)
Vout(peak) = -10.0 V
Bench Reality Check: A 200 kΩ resistor is a standard E24 value, but it introduces thermal noise (Johnson-Nyquist noise). If this is a high-gain audio preamp, you might prefer to lower both resistors by a factor of 10 (Rin = 1 kΩ, Rf = 20 kΩ) to reduce noise, provided your sensor can drive a 1 kΩ load without signal degradation.
Worked Problem 2: Non-Inverting Amplifier and Rail Limits
Scenario: You are buffering and amplifying a 1.2 V DC reference using an MCP6001 op-amp powered by a single 5.0 V supply (VCC = 5V, GND = 0V). Your feedback network consists of Rf = 33 kΩ and Rin = 10 kΩ. Calculate the ideal Vout and the actual measured Vout.
Step 1: Calculate the ideal closed-loop gain.
Av = 1 + (Rf / Rin)
Av = 1 + (33,000 Ω / 10,000 Ω)
Av = 1 + 3.3 = 4.3 V/V
Step 2: Calculate the ideal output voltage.
Vout(ideal) = Vin × Av
Vout(ideal) = 1.2 V × 4.3 V/V
Vout(ideal) = 5.16 V
Step 3: Apply real-world rail limits (The 'Gotcha').
The ideal math demands 5.16 V. However, the MCP6001 is powered by a 5.0 V single supply. Furthermore, while the MCP6001 is marketed as 'Rail-to-Rail Output', its datasheet specifies that under a 10 kΩ load, the output high voltage (VOH) drops to approximately VCC - 0.05 V.
Actual Maximum Vout = 5.0 V - 0.05 V = 4.95 V
Conclusion: The op-amp will saturate (clip). Your multimeter will read 4.95 V, not 5.16 V. To fix this, you must either increase the supply voltage to at least 5.5 V (if the IC allows), reduce the gain by increasing Rin to 12 kΩ (yielding Av = 3.75 and Vout = 4.5 V), or attenuate the input signal. Never trust ideal op amp equations without verifying the result against the supply rails and the datasheet's output swing specifications.






