The fundamental formula for gain in electronics defines the ratio of an output signal to its input signal. For voltage, the baseline equation is Av = Vout / Vin. While this abstract definition is simple, applying it on the bench requires navigating decibel conversions, op-amp feedback networks, and strict unit tracking. Whether you are biasing a discrete transistor or configuring an NE5532 audio op-amp, understanding how to derive, rearrange, and calculate gain prevents clipped signals and unstable loops.
The Core Formula for Gain and Symbol Definitions
In linear circuit theory, voltage gain (Av) is a dimensionless multiplier. However, in practical amplifier design, we rarely use raw open-loop gain. Instead, we use negative feedback to set a precise closed-loop gain using resistors. The two most common configurations for operational amplifiers are the inverting and non-inverting topologies.
Inverting Amplifier: Av = -(Rf / Rin)
Non-Inverting Amplifier: Av = 1 + (Rf / Rin)
Every symbol in these equations represents a specific physical parameter. Misidentifying these on a schematic is a common root cause of bench debugging failures.
| Symbol | Parameter | Standard Unit | Practical Bench Context |
|---|---|---|---|
| Av | Voltage Gain (Linear) | V/V (Dimensionless) | The raw multiplier. An Av of 10 means 1V in yields 10V out. |
| Vout | Output Voltage | Volts (V) | Measured at the op-amp output pin relative to circuit ground. |
| Vin | Input Voltage | Volts (V) | The signal applied to the non-inverting (+) or inverting (-) terminal. |
| Rf | Feedback Resistor | Ohms (Ω) | Connects the output pin back to the inverting (-) input to close the loop. |
| Rin | Input/Ground Resistor | Ohms (Ω) | Sets the input impedance (inverting) or ties the inverting pin to ground (non-inverting). |
Real-World Magnitudes and Standard Resistor Ratios
What does a realistic answer magnitude look like? It depends entirely on the application domain. A microphone preamp might require a voltage gain of 100 V/V to 1000 V/V (40 dB to 60 dB) to bring a millivolt-level electret signal up to line level. Conversely, a unity-gain buffer used for impedance matching has an Av of exactly 1 (0 dB). An open-loop op-amp like the LM358 has an intrinsic gain of roughly 100,000 V/V (100 dB), which is why we must use feedback resistors to tame it into a usable, stable amplifier.
When building non-inverting amplifiers, you cannot simply pick arbitrary resistor values; you must account for the "+1" in the formula and select from standard E24 or E96 resistor series to hit your target. Below is a data-dense reference for common audio and sensor gain targets.
| Target Linear Gain (V/V) | Target Gain (dB) | Rf Value (E24) | Rin Value (E24) | Actual Achieved Gain |
|---|---|---|---|---|
| 2.0 | 6.02 dB | 10 kΩ | 10 kΩ | 2.000 |
| 5.0 | 13.98 dB | 12 kΩ | 3.0 kΩ | 5.000 |
| 11.0 | 20.83 dB | 100 kΩ | 10 kΩ | 11.000 |
| 21.0 | 26.44 dB | 20 kΩ | 1.0 kΩ | 21.000 |
| 101.0 | 40.09 dB | 100 kΩ | 1.0 kΩ | 101.000 |
The Decibel Conversion and Rearranged Forms
On the bench, linear gain becomes unwieldy when cascading multiple stages. If Stage 1 has a gain of 20 and Stage 2 has a gain of 50, the total linear gain is 1,000. In audio and RF engineering, we convert this to decibels (dB) so we can simply add the stages together. According to Shure's audio gain structure guidelines, mastering this conversion is mandatory for preventing clipping in multi-stage signal chains.
Decibel Formula: GaindB = 20 × log10(Av)
Because algebraic manipulation is a daily requirement when designing feedback networks, here are the rearranged forms solving for each critical variable:
- Solve for Output Voltage: Vout = Av × Vin
- Solve for Input Voltage: Vin = Vout / Av
- Solve for Linear Gain from dB: Av = 10(GaindB / 20)
- Solve for Feedback Resistor (Non-Inverting): Rf = Rin × (Av - 1)
- Solve for Input Resistor (Inverting): Rin = -Rf / Av
Worked Examples with Unit Tracking
Abstract formulas fail when you forget to track units. The following two solved problems demonstrate strict unit tracking and intermediate calculation steps.
Problem 1: Non-Inverting Sensor Amplifier
Scenario: You are amplifying a thermocouple signal using an OPA1612 precision op-amp in a non-inverting configuration. The input signal (Vin) is 150 mV. Your feedback resistor (Rf) is 47 kΩ and your ground resistor (Rin) is 4.7 kΩ. Find the output voltage (Vout).
- Calculate Linear Gain (Av):
Av = 1 + (Rf / Rin)
Av = 1 + (47,000 Ω / 4,700 Ω) = 1 + 10 = 11 V/V - Convert Input Voltage to Base Units (Volts):
Vin = 150 mV = 0.150 V - Calculate Output Voltage:
Vout = Av × Vin
Vout = 11 V/V × 0.150 V = 1.65 V
Problem 2: Multi-Stage Audio Preamp (Decibel Domain)
Scenario: A microphone preamp has two cascaded stages. Stage 1 provides 20 dB of gain. Stage 2 provides 15 dB of gain. The microphone outputs a 10 mVRMS signal. Find the final Vout in Volts.
- Calculate Total Gain in Decibels:
Gaintotal(dB) = 20 dB + 15 dB = 35 dB - Convert Total dB Gain to Linear Av:
Av = 10(35 / 20) = 101.75 ≈ 56.23 V/V - Convert Input Voltage to Base Units:
Vin = 10 mV = 0.010 VRMS - Calculate Final Output Voltage:
Vout = 56.23 V/V × 0.010 V = 0.5623 VRMS
Assumptions, Limits, and Fatal Unit Mistakes
The standard formula for gain assumes an ideal operational amplifier. As noted in All About Circuits' semiconductor textbook, ideal models assume infinite input impedance, zero output impedance, and infinite open-loop gain. Real-world silicon breaks these assumptions in three specific ways:
The formula Av = 1 + (Rf/Rin) implies you can achieve any gain at any frequency. This is false. Every op-amp has a GBWP. If an LM358 has a GBWP of 1 MHz, and you set a closed-loop gain of 100 V/V (40 dB), your maximum usable bandwidth drops to 10 kHz (1,000,000 / 100). If you try to amplify a 20 kHz audio signal with this circuit, the actual gain will be significantly lower than your formula predicts, resulting in high-frequency roll-off. For high-gain, high-frequency applications, you must select a high-GBWP part like the OPA1612 (40 MHz GBWP) or cascade multiple lower-gain stages.
Fatal Unit Mistakes That Break the Math
When your oscilloscope trace doesn't match your spreadsheet, you likely committed one of these three errors:
- Mixing Millivolts and Volts: If Vin is 150 mV and Av is 11, multiplying them directly yields 1,650. If you blindly append "Volts" to that number, you'll think the op-amp is outputting 1.65 kV. Always convert inputs to base Volts before multiplying.
- Using 10×log instead of 20×log: The formula for power gain in decibels is 10 × log10(Pout/Pin). Because power is proportional to voltage squared (P = V2/R), the logarithm exponent brings down a 2, making the voltage gain formula 20 × log10(Vout/Vin). Using the power formula for voltage signals will result in a calculated gain exactly half of what it should be in dB.
- Ignoring the Inverting Negative Sign: In an inverting topology, Av is negative. While the magnitude tells you the amplification factor, the negative sign indicates a 180° phase shift. If you are designing a single-supply circuit biased at Vcc/2, forgetting this phase inversion can cause your output to slam into the ground rail during the positive half-cycle of the input waveform.
Ultimately, the formula for gain is your blueprint, but the datasheet is your building code. Always verify your calculated Vout against the op-amp's specified output voltage swing limits; an Av of 100 with a 0.5V input demands 50V out, which will instantly hard-clip on a standard ±15V supply.






