The fundamental voltage gain amplifier formula is Av = Vout / Vin. For standard operational amplifier (op-amp) circuits relying on negative feedback, this translates to Av = -Rf / Rin for inverting configurations and Av = 1 + (Rf / Rin) for non-inverting configurations. These equations assume an ideal op-amp operating in its linear region, but real-world bench work requires accounting for resistor tolerances, rail headroom, and the gain-bandwidth product.
The Core Gain Amplifier Formula and Symbol Definitions
Before wiring up an LM741 or a modern OPA1612, you need a strict mapping of the variables. The base voltage gain (Av) is a dimensionless ratio, often expressed in Volts per Volt (V/V) or decibels (dB). Below is the definitive symbol table for the standard closed-loop gain equations.
| Symbol | Parameter | Standard Unit | Definition & Bench Context |
|---|---|---|---|
| Av | Voltage Gain (Linear) | V/V (Dimensionless) | The ratio of output voltage amplitude to input voltage amplitude. |
| Av(dB) | Voltage Gain (Decibels) | dB | Logarithmic gain. Calculated as 20 × log10(|Av|). |
| Vout | Output Voltage | Volts (V) | The voltage at the op-amp output pin. Must not exceed supply rails. |
| Vin | Input Voltage | Volts (V) | The signal voltage applied to the input network. Can be AC or DC. |
| Rf | Feedback Resistor | Ohms (Ω) | Resistor connecting the output pin back to the inverting input. |
| Rin | Input Resistor | Ohms (Ω) | Resistor connecting the input signal to the op-amp input pin. |
Real-World Resistor Selection and Gain Error
Textbooks assume you can buy a 190 kΩ resistor. On the bench, you are limited to the E24 resistor series (5% tolerance) or E96 (1%). If you blindly use standard values, your actual gain will deviate from the ideal formula. The table below maps target gains to the nearest standard E24 resistor pairs for a non-inverting configuration, revealing the real-world percentage error you must accept or compensate for in software.
| Target Gain (V/V) | Target Gain (dB) | Ideal Ratio (Rf/Rin) | Nearest E24 Pair (Rf / Rin) | Actual Gain | Deviation |
|---|---|---|---|---|---|
| 10 | 20.0 dB | 9.00 | 91 kΩ / 10 kΩ | 10.1 | +1.1% |
| 20 | 26.0 dB | 19.00 | 180 kΩ / 9.1 kΩ | 20.78 | +3.9% |
| 100 | 40.0 dB | 99.00 | 1.0 MΩ / 10 kΩ | 101.0 | +1.0% |
| 470 | 53.4 dB | 469.00 | 4.7 MΩ / 10 kΩ | 471.0 | +0.4% |
Rearranged Forms and Configuration Variants
When designing a circuit, you rarely solve for Av directly; you usually know your sensor's output voltage and your ADC's input range, meaning you need to solve for the resistors. Below are the rearranged forms for the most common topologies.
Non-Inverting Amplifier
The input signal is applied to the non-inverting (+) pin. The output is in phase with the input, and the minimum possible gain is 1 (unity).
- Core: Av = 1 + (Rf / Rin)
- Solve for Vout: Vout = Vin × [1 + (Rf / Rin)]
- Solve for Vin: Vin = Vout / [1 + (Rf / Rin)]
- Solve for Rf: Rf = (Av - 1) × Rin
- Solve for Rin: Rin = Rf / (Av - 1)
Inverting Amplifier
The input signal is applied through Rin to the inverting (-) pin. The output is 180° out of phase (represented by the negative sign).
- Core: Av = -(Rf / Rin)
- Solve for Vout: Vout = -Vin × (Rf / Rin)
- Solve for Rf: Rf = -Av × Rin
- Solve for Rin: Rin = -Rf / Av
Worked Examples with Unit Tracking
Abstract formulas cause wiring mistakes. Here are two bench-realistic problems with explicit unit tracking to prevent magnitude errors.
Problem 1: Non-Inverting Audio Preamplifier Design
Scenario: You are amplifying a dynamic microphone signal using an NE5532 audio op-amp. The microphone outputs Vin = 150 mVRMS. You need to drive a line-level input that requires Vout = 3.0 VRMS. You have a 10 kΩ resistor for Rin. What value do you need for Rf?
- Harmonize Units: Convert Vin from millivolts to volts.
Vin = 150 mV = 0.150 V. - Calculate Required Linear Gain (Av):
Av = Vout / Vin = 3.0 V / 0.150 V = 20 V/V. - Apply Rearranged Non-Inverting Formula:
Rf = (Av - 1) × Rin
Rf = (20 - 1) × 10,000 Ω
Rf = 19 × 10,000 Ω = 190,000 Ω (190 kΩ). - Bench Reality Check: 190 kΩ is not a standard E24 value. You must use a 180 kΩ and a 10 kΩ resistor in series (190 kΩ exact), or accept a 200 kΩ resistor which yields a gain of 21 V/V (3.15 V output).
Problem 2: Inverting DC Sensor Amplifier
Scenario: A thermocouple amplifier outputs a negative DC voltage. Vin = -12.5 mVDC. Your inverting circuit uses Rf = 470 kΩ and Rin = 4.7 kΩ. Find Vout and the gain in dB.
- Harmonize Units: Convert Vin to volts.
Vin = -12.5 mV = -0.0125 V. - Calculate Linear Gain (Av):
Av = -(Rf / Rin) = -(470,000 Ω / 4,700 Ω) = -100 V/V. - Calculate Output Voltage (Vout):
Vout = Av × Vin = -100 × (-0.0125 V) = +1.25 VDC.
(Note: The two negative signs cancel, resulting in a positive output voltage). - Convert to Decibels:
Av(dB) = 20 × log10(|Av|)
Av(dB) = 20 × log10(|-100|) = 20 × 2 = 40 dB.
Assumptions, Bandwidth Limits, and Fatal Unit Mistakes
The gain amplifier formula is mathematically elegant but physically constrained. If your circuit is clipping, oscillating, or reading incorrectly, you have likely violated one of the foundational assumptions or fallen prey to a unit trap.
When the Formula Applies (and When it Breaks)
The closed-loop formulas assume an ideal op-amp with infinite open-loop gain (AOL). In reality, a classic TL072 has an AOL of roughly 200 V/mV (200,000 V/V). If you attempt to design a closed-loop circuit with a gain of 10,000 V/V, the formula breaks down because the closed-loop gain approaches the physical open-loop limit of the silicon. For precision DC work, always ensure your target closed-loop gain is at least 100 times smaller than the op-amp's AOL spec to avoid significant gain error.
Realistic Answer Magnitudes
What does a "normal" answer look like? For standard audio and sensor interfaces, voltage gain typically ranges from 1 to 1,000 V/V (0 to 60 dB). If your calculation yields a required gain of 50,000 V/V, you are likely trying to interface a raw microvolt-level thermocouple directly to a 5V Arduino ADC. No single op-amp stage handles this cleanly due to noise and offset voltage multiplication. You need an instrumentation amplifier (like the INA128) or a multi-stage approach.
Fatal Unit Mistakes That Break the Math
- Mixing RMS and Peak-to-Peak: Oscilloscopes often default to Vpp, while multimeters and audio specs use VRMS. The formula Av = Vout / Vin only works if both values are of the same type. (Remember: VRMS = Vpp / 2.828 for sine waves).
- The Negative Logarithm Error: When calculating dB for an inverting amplifier, students frequently type
20 * log(-100)into their calculator and get a math error. You must use the absolute value of the linear gain:20 * log(|-100|). - Ignoring Rail Headroom: The formula will happily tell you that a 5V input with a gain of 10 yields a 50V output. If your op-amp is powered by a single 12V supply, the output will hard-clip at roughly 10.5V (for a non-rail-to-rail op-amp) or 11.8V (for a true RRIO op-amp like the MCP6002). Always verify Vout against your physical supply rails.
For deeper reading on op-amp limitations that affect real-world gain, consult the Texas Instruments Op-Amp Overview and the foundational tutorials on negative feedback at All About Circuits.






