The fundamental amplifier gain calculation for voltage is the ratio of output voltage to input voltage (Av = Vout / Vin). In audio, RF, and sensor design, this linear ratio is almost always converted to decibels using the formula GaindB = 20 × log10(Vout / Vin). Whether you are biasing a microphone preamp with an NE5532 or scaling a thermocouple signal with an LM358, getting the math right prevents clipping, oscillation, and noise floor issues. Below are the exact formulas, symbol definitions, and step-by-step solved problems to size your feedback resistors correctly.
The Core Formulas and Symbol Definitions
Before selecting resistor values from your bench kit, you must define the mathematical relationship between your input signal, output signal, and the feedback network. The two primary equations for voltage gain are the linear ratio and the logarithmic decibel (dB) scale.
Linear Voltage Gain: Av = Vout / Vin
Decibel Voltage Gain: GaindB = 20 × log10(Av)
| Symbol | Parameter | Standard Unit | Description |
|---|---|---|---|
| Av | Linear Voltage Gain | Dimensionless (V/V) | The raw ratio of output amplitude to input amplitude. |
| GaindB | Decibel Gain | Decibels (dB) | Logarithmic representation of gain; standard for audio and RF. |
| Vout | Output Voltage | Volts (V) or mV | The AC or DC voltage present at the op-amp output pin. |
| Vin | Input Voltage | Volts (V) or mV | The source signal voltage applied to the input terminal. |
| Rf | Feedback Resistor | Ohms (Ω) | Resistor connecting the output pin to the inverting input. |
| Rin | Input/Ground Resistor | Ohms (Ω) | Resistor connecting the inverting input to ground or the signal source. |
Real-World Amplifier Configurations and Gain Magnitudes
Amplifier gain calculation changes depending on the circuit topology. A 'realistic' gain magnitude depends entirely on the application. For instance, a moving-magnet phono preamp requires 40 dB to 60 dB of gain to bring a 5 mV cartridge signal up to line level, while a power amplifier driving 8-ohm speakers might only need 26 dB of voltage gain. The table below maps the standard topologies to their specific formulas and realistic operating ranges.
| Topology | Gain Formula (Linear) | Typical Application | Realistic Magnitude | Example Op-Amp |
|---|---|---|---|---|
| Non-Inverting | Av = 1 + (Rf / Rin) | Audio line buffers, sensor scaling | 1.1 to 100 V/V (0.8 to 40 dB) | NE5532, OPA2134 |
| Inverting | Av = -(Rf / Rin) | Summing mixers, active filters | -1 to -100 V/V (0 to 40 dB magnitude) | TL072, LM358 |
| Voltage Follower | Av = 1 | Impedance buffering, DAC output | Exactly 1 V/V (0 dB) | LME49720, LF411 |
| Differential | Av = Rf / Rin (matched) | Current shunt monitoring, ECG | 10 to 1000 V/V (20 to 60 dB) | INA128, AD620 |
According to All About Circuits, the non-inverting topology is generally preferred for high-impedance sensors because its input impedance is effectively infinite, preventing the op-amp from loading down the source signal.
Rearranged Forms for Circuit Design
On the bench, you rarely calculate gain from known resistors; you usually know the target gain and need to find the missing resistor. 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 Rf (Non-Inverting): Rf = Rin × (Av - 1)
- Solve for Rin (Non-Inverting): Rin = Rf / (Av - 1)
- Solve for Rf (Inverting): Rf = |Av| × Rin
Worked Examples with Unit Tracking
Let's apply these formulas to two common bench scenarios. Tracking units at every step prevents the most common engineering errors.
Problem 1: Non-Inverting Audio Preamp Design
Given: You are building a microphone preamp using an NE5532 powered by ±15V rails. The microphone outputs a nominal 20 mVRMS signal. You need a target gain of 26 dB to hit standard line level. You have chosen Rin = 10 kΩ to set the input noise floor.
Find: The required linear gain (Av), the expected Vout, and the required Rf value.
- Convert dB to Linear Gain:
Av = 10(26 / 20) = 101.3 = 19.95 V/V. - Calculate Expected Output Voltage:
Vout = 19.95 V/V × 20 mV = 399 mVRMS.
Sanity Check: 399 mV is well within the ±15V rails (approx ±13V max swing for an NE5532), so no clipping will occur. - Calculate Feedback Resistor (Rf):
Rf = 10,000 Ω × (19.95 - 1) = 10,000 Ω × 18.95 = 189,500 Ω (189.5 kΩ).
Practical application: 189.5 kΩ is not a standard E24 value. Use a 187 kΩ (E96 series) resistor, or series a 180 kΩ and a 10 kΩ resistor.
Problem 2: Inverting Sensor Amplifier and the Single-Supply Trap
Given: You are using an LM358 on a single 5V supply (0V to 5V) to invert and amplify a DC sensor signal. Vin = +0.5V. Rin = 4.7 kΩ, Rf = 47 kΩ.
Find: The linear gain, theoretical Vout, and actual real-world Vout.
- Calculate Linear Gain:
Av = -(47 kΩ / 4.7 kΩ) = -10 V/V. - Calculate Theoretical Output Voltage:
Vout(theoretical) = -10 V/V × 0.5V = -5.0V. - Identify the Real-World Failure:
The math demands -5.0V, but the LM358 is powered by a single 5V supply (meaning the negative rail is 0V). An op-amp cannot output a voltage outside its supply rails. The output will slam into the lower rail and saturate at approximately 0.02V (the LM358's typical low-level output voltage swing). Fix: Add a virtual ground bias at 2.5V, or switch to a dual ±5V supply.
Assumptions, Unit Traps, and Rail Limits
The formulas above assume an 'ideal' operational amplifier. As noted in the Analog Devices Linear Circuit Design Handbook, real-world components introduce limitations that break basic calculations if ignored.
When the Formula Applies (and When It Doesn't)
The standard gain equations assume the op-amp is operating in its linear region. This requires negative feedback and an output voltage that stays at least 1V to 2V away from the supply rails (unless using a true 'rail-to-rail' output op-amp like the MCP6002). Furthermore, these DC/low-frequency formulas ignore the Gain-Bandwidth Product (GBP). If you attempt to set a non-inverting gain of 100 V/V (40 dB) on an LM358 (GBP ≈ 1 MHz), your bandwidth will collapse to 10 kHz. The math holds for DC, but your AC signal will be severely attenuated.
Unit Mistakes That Break the Math
- The Power vs. Voltage dB Trap: Voltage gain uses
20 × log(Av). Power gain uses10 × log(Pout/Pin). Using the power formula for voltage gain will result in a calculated dB value that is exactly half of what it should be, leading you to over-amplify and clip your signal. - Mixed Magnitudes: Dividing 2.0 Vout by 50 mVin directly yields 0.04, which is wrong. You must convert both to the same base unit first: 2.0 V / 0.050 V = 40 V/V.
- Ignoring the Negative Sign in Inverting Amps: While the magnitude of gain dictates your resistor ratios, dropping the negative sign during system-level math will cause phase cancellation if you sum this signal with another channel later in the signal chain.






