The inverting amplifier is one of the most fundamental operational amplifier (op-amp) configurations in analog electronics. The direct answer for its closed-loop voltage gain is defined by the inverting amp gain formula: Av = -(Rf / Rin). This equation tells you exactly how much the input signal will be amplified and inverted at the output, assuming the op-amp is operating within its linear region and power supply rails.
While the math is simple enough to memorize, applying it on the bench requires understanding its underlying assumptions, tracking your units rigorously, and knowing when real-world component limitations break the ideal math. Below, we break down the formula, provide rearranged forms for component selection, and walk through step-by-step worked examples.
The Core Inverting Amp Gain Formula & Symbol Definitions
The standard formula for the closed-loop voltage gain of an ideal inverting amplifier is:
Av = -(Rf / Rin)
The negative sign is not a mathematical artifact; it represents a 180-degree phase shift. When a positive DC voltage is applied to the input, the output swings negative, and vice versa. For AC signals, this means the output waveform is flipped upside down relative to the input.
| Symbol | Parameter | Standard Unit | Practical Notes |
|---|---|---|---|
| Av | Voltage Gain | Unitless (V/V) | Often expressed in decibels (dB) in audio/RF: 20 * log10(|Av|). |
| Rf | Feedback Resistor | Ohms (Ω) | Connects the output pin to the inverting input (-). Sets the upper limit for noise and bias current errors. |
| Rin | Input Resistor | Ohms (Ω) | Connects the signal source to the inverting input (-). Defines the circuit's input impedance. |
| Vout | Output Voltage | Volts (V) | Calculated as Vin * Av. Cannot exceed the op-amp's supply rails. |
| Vin | Input Voltage | Volts (V) | The signal applied to the input resistor. Can be DC or AC. |
Rearranged Forms: Solving for Any Variable
On the bench, you rarely solve for gain blindly. Usually, you have a target gain and a known input signal, and you need to select physical resistors from your kit. Here are the algebraic rearrangements of the inverting amp gain formula to solve for any missing variable:
- To find the Feedback Resistor: Rf = -Av × Rin
- To find the Input Resistor: Rin = -Rf / Av
- To find the Output Voltage: Vout = Av × Vin (or Vout = -(Rf / Rin) × Vin)
- To find the Input Voltage: Vin = Vout / Av
Bench Tip: When calculating resistor values, always round your theoretical result to the nearest standard E24 series value (e.g., 1.0, 1.1, 1.2... 2.2, 2.4, 2.7 kΩ) unless you are using precision 0.1% resistors.
Worked Examples with Unit Tracking
Let’s apply the formula to two common scenarios, paying strict attention to unit tracking and intermediate steps.
Problem 1: Calculating Output Voltage from Known Resistors
Scenario: You are testing a sensor conditioning circuit on a breadboard. The feedback resistor (Rf) is 100 kΩ, the input resistor (Rin) is 10 kΩ, and the sensor outputs a steady DC voltage (Vin) of +0.5V. What is Vout?
- Step 1: Calculate the Gain (Av)
Av = -(Rf / Rin)
Av = -(100 kΩ / 10 kΩ)
Unit tracking: The "kilo" prefix cancels out, leaving a unitless ratio.
Av = -10 V/V - Step 2: Calculate Output Voltage (Vout)
Vout = Av × Vin
Vout = -10 × 0.5V
Vout = -5.0V
Result: The output voltage is -5.0V. (Note: This assumes the op-amp is powered by at least ±9V rails; if powered by a single +5V supply, the output will clip at the lower rail limit, likely around 0V or slightly above, depending on the op-amp's output stage).
Problem 2: Sizing Resistors for a Target Gain
Scenario: You need to amplify an AC audio signal by a factor of 50 and invert it (Target Av = -50). You want to keep the input impedance relatively high to avoid loading the previous stage, so you select Rin = 2.2 kΩ. What value should Rf be?
- Step 1: Rearrange the formula to solve for Rf
Rf = -Av × Rin - Step 2: Substitute the known values
Rf = -(-50) × 2.2 kΩ
Unit tracking: The negative signs cancel out. The result will inherit the "kilo" prefix from Rin.
Rf = 50 × 2.2 kΩ
Rf = 110 kΩ - Step 3: Select a standard E24 resistor
110 kΩ is a standard E24 value. You can use a single 110 kΩ 1% metal film resistor.
Result: Use a 110 kΩ feedback resistor. If 110 kΩ is unavailable, you could series two 56 kΩ resistors (56 + 56 = 112 kΩ, yielding a gain of -50.9, which is usually acceptable for audio).
Real-World Assumptions and Where the Math Breaks Down
The inverting amp gain formula relies on the "ideal op-amp" model. According to the All About Circuits semiconductor textbook, an ideal op-amp assumes infinite open-loop gain, infinite input impedance, and zero output impedance. In reality, silicon limitations dictate when the formula applies and where it fails.
When the Formula Applies
The formula is highly accurate when the op-amp is operating in its linear region (output is not clipping against the supply rails), the signal frequencies are well below the op-amp's bandwidth limit, and the source impedance is significantly lower than Rin.
Unit Mistakes That Break the Calculation
- Mixing Prefixes: If Rf is 1 MΩ and Rin is 10 kΩ, you cannot calculate 1 / 10. You must convert both to base Ohms (1,000,000 / 10,000 = 100) or matching prefixes (1000 kΩ / 10 kΩ = 100). Forgetting the "Mega" prefix is a classic bench error that results in a gain 1000x lower than expected.
- Ignoring the Negative Sign in Cascades: If you cascade two inverting amplifiers, the negatives multiply to a positive. Forgetting this phase relationship in feedback loops or audio circuits can lead to destructive interference or unintended positive feedback (oscillation).
Realistic Answer Magnitudes and the GBW Trap
What does a realistic gain magnitude look like? For a single stage using standard op-amps like the TL072 or NE5532, a realistic closed-loop gain is between -1 and -100.
Attempting a single-stage gain of -1000 using the formula (e.g., Rf = 1 MΩ, Rin = 1 kΩ) introduces severe real-world problems:
- Gain-Bandwidth Product (GBW): As detailed in the Analog Devices MT-031 Tutorial, an op-amp's bandwidth shrinks as closed-loop gain increases. A TL072 has a GBW of roughly 3 MHz. At a gain of -1000, your usable bandwidth drops to just 3 kHz, severely attenuating high-frequency audio or fast sensor transients.
- Johnson-Nyquist Noise: A 1 MΩ feedback resistor generates significant thermal noise. This noise is amplified by the circuit, resulting in a poor signal-to-noise ratio.
- Input Bias Current (Ib): Real op-amps draw a tiny bias current into their input pins. In a BJT-input op-amp like the LM741, an Ib of 80 nA flowing through a 1 MΩ feedback resistor creates an 80 mV DC offset error at the output, completely ruining precision DC measurements.
The Fix: If you need a gain of -1000, cascade two stages (e.g., two stages with a gain of -31.6 each) or select a specialized instrumentation amplifier or a FET-input op-amp like the OPA2134 to minimize bias current errors.
Frequently Asked Questions (FAQ)
Why is the inverting amp gain formula negative?
The negative sign represents the physical topology of the circuit. The input signal is applied to the inverting (-) terminal of the op-amp. To maintain the "virtual ground" at the inverting input via negative feedback, the op-amp's output must swing in the exact opposite direction of the input signal. Mathematically, this results in a 180-degree phase inversion for AC signals, and a polarity flip for DC signals.
Can the inverting amp gain formula be used for AC signals and impedance?
Yes, but you must replace the resistance values (R) with complex impedance values (Z). The generalized formula becomes Av = -(Zf / Zin). For example, if you place a capacitor in series with Rin, the circuit becomes a high-pass filter. If you place a capacitor in parallel with Rf, it becomes a low-pass filter. The magnitude and phase of the gain will then vary with frequency, requiring phasor math to solve accurately.
What happens if I use the inverting amp gain formula with a single-supply op-amp?
The formula still holds true for the signal swing, but the DC operating point changes. A single-supply op-amp (like the LM358 powered by 0V and +5V) cannot output a negative voltage. If you apply a positive Vin to an inverting configuration without a DC bias offset, the output will attempt to swing negative and immediately clip at the lower rail (approx. 0.05V for an LM358). To use this formula with a single supply, you must bias the non-inverting (+) input to a mid-rail virtual ground (e.g., +2.5V) and AC-couple the input and output with capacitors.
How does input offset voltage affect the inverting amp gain formula?
The ideal formula assumes that when Vin is 0V, Vout is exactly 0V. In reality, manufacturing mismatches inside the silicon create an Input Offset Voltage (Vos). This Vos is amplified by the circuit's "noise gain," which for an inverting amplifier is 1 + (Rf / Rin). If your formula dictates a massive Rf/Rin ratio, you are also multiplying the op-amp's internal Vos by that same ratio, resulting in a significant, unexpected DC voltage at the output even when the input is grounded. Always check the datasheet for Vos when designing high-gain DC stages.






