The formula for voltage gain in decibels is AdB = 20 log10(Vout / Vin). When using a scientific calculator with base 10 logarithm functions, you can instantly convert linear voltage ratios into the logarithmic dB scale used across audio, RF, and data acquisition systems. This guide breaks down the derivation, provides rearranged forms for reverse-engineering circuits, and includes a concrete decision tree for selecting the right amplifier or attenuator IC.
The Decibel Voltage Formula and Symbol Definitions
The decibel (dB) is fundamentally a ratio. While the original "Bel" was developed to measure power loss in telephone lines, modern electronics frequently cascade voltage amplifiers (like op-amps) where input and output impedances are intentionally mismatched to maximize voltage transfer rather than power transfer. Because power is proportional to voltage squared (P = V²/R), the logarithm exponent of 2 is pulled to the front, turning the multiplier from 10 into 20.
| Symbol | Parameter | Unit | Description & Constraints |
|---|---|---|---|
| AdB | Voltage Gain | dB | Logarithmic ratio of output to input voltage. Negative values indicate attenuation. |
| Vout | Output Voltage | Volts (V) | RMS, Peak, or Peak-to-Peak. Must match the measurement type of Vin. |
| Vin | Input Voltage | Volts (V) | RMS, Peak, or Peak-to-Peak. Must match the measurement type of Vout. |
| log10 | Base-10 Logarithm | Dimensionless | The mathematical operation isolating the exponent to which 10 must be raised. |
When It Applies and Realistic Magnitudes
This formula applies strictly to voltage ratios across cascaded stages. Realistic magnitudes depend on the domain:
- Audio Preamplifiers: +20 dB to +40 dB (Linear ratio of 10 to 100).
- RF Low Noise Amplifiers (LNAs): +15 dB to +25 dB.
- Passive RF Attenuators (Pads): -3 dB to -40 dB.
- Instrumentation Amplifiers: +60 dB to +100 dB (requires multi-stage designs).
Rearranged Forms for Reverse Engineering
On the bench, you rarely just calculate gain. You usually know the required dB and need to find the expected voltage, or you have a fixed output limit and need to calculate the maximum input. Here are the algebraic rearrangements solving for each variable:
- Solve for Output Voltage (Vout):
Vout = Vin × 10(AdB / 20) - Solve for Input Voltage (Vin):
Vin = Vout / 10(AdB / 20) - Solve for Linear Voltage Ratio (Av):
Av = 10(AdB / 20)
Worked Examples with Strict Unit Tracking
Problem 1: Finding the Gain of an Audio Preamplifier
Scenario: You inject a 15 mVRMS test tone into a microphone preamp and measure 1.2 VRMS at the output. What is the gain in dB?
- Unify Units: Convert millivolts to volts. 15 mV = 0.015 V.
- Calculate Linear Ratio: Vout / Vin = 1.2 V / 0.015 V = 80.
- Apply Base-10 Log: Using your calculator, log10(80) ≈ 1.90309.
- Multiply by 20: 20 × 1.90309 = 38.06 dB.
Problem 2: Sizing an Input Signal for a -40 dB RF Attenuator
Scenario: You are using a fixed -40 dB Pi-pad attenuator to protect a spectrum analyzer. The analyzer's maximum safe input is 50 mVpeak. What is the maximum signal you can feed into the attenuator?
- Select Rearranged Formula: Vin = Vout / 10(AdB / 20).
- Divide dB by 20: -40 / 20 = -2.
- Calculate Base-10 Exponent: 10-2 = 0.01 (This is the linear attenuation factor).
- Solve for Vin: 50 mV / 0.01 = 5000 mV.
- Convert to Standard Units: 5000 mV = 5 Vpeak.
Critical Assumptions and Unit Mistakes That Break the Math
The formula AdB = 20 log10(Vout/Vin) calculates voltage dB. It only equals power dB if the input and output impedances are identical. In RF systems (where 50Ω matching is standard), voltage dB and power dB are interchangeable. In audio and DC op-amp circuits (where Zin is megaohms and Zout is ohms), they are not. Never use the voltage formula to calculate actual power transfer efficiency across mismatched stages.
Three Mistakes That Yield Wrong Answers
- Mixing RMS, Peak, and Peak-to-Peak: The ratio Vout/Vin is only valid if both are the same type. Dividing 2 Vpp by 0.707 VRMS will yield a mathematically correct but physically meaningless dB value. Always convert to RMS first when dealing with AC power calculations.
- Using 20 log10 for Power: If you are given Pout and Pin in watts or milliwatts, the multiplier is 10, not 20. (Formula: 10 log10(Pout/Pin)).
- Ignoring Absolute Reference Scales: "dB" is a ratio. "dBm" is an absolute power referenced to 1 milliwatt. "dBV" is an absolute voltage referenced to 1 Volt RMS. If your calculator outputs 40 dB, that is a gain multiplier of 100. It does not tell you the absolute signal level unless you know the starting reference.
Memorize this shortcut for quick bench estimations: Every time you double the voltage ratio, you add roughly +6 dB (exactly 20 × log10(2) = 6.02 dB). If 10x voltage is +20 dB, then 20x is +26 dB, 40x is +32 dB, and 80x is +38 dB. This matches our worked example perfectly without needing a calculator.
Decision Tree: Selecting Your Gain or Attenuation Stage
Once your calculator with base 10 functions gives you the required dB, you must select the physical component to achieve it. Use this decision matrix to terminate your design phase with a specific, purchasable part number.
| Calculated Requirement | Frequency Domain | Topology / Action | Concrete Part Pick (2026) |
|---|---|---|---|
| +20 dB to +40 dB Gain | DC to 100 kHz (Audio/Sensors) | Low-Noise Bipolar/JFET Op-Amp in non-inverting configuration. | TI OPA2134 (Audio) or AD797 (Ultra-low noise) |
| +60 dB to +100 dB Gain | DC to 10 kHz (Instrumentation) | Instrumentation Amplifier (requires single-resistor gain setting). | TI INA128 or AD8421 |
| +10 dB to +25 dB Gain | 100 MHz to 3 GHz (RF/IF) | MMIC Darlington Amplifier (requires 50Ω matching and RF chokes). | Mini-Circuits MAR-6+ or Qorvo QPA9120 |
| -3 dB to -30 dB Fixed | DC to 6 GHz (RF Test/Protection) | Passive Pi or T-pad Attenuator (SMA or chip scale). | Mini-Circuits VAT-40+ (Coaxial) or Susumu 0805 Chip Pads |
| -10 dB to -70 dB Variable | 10 MHz to 4 GHz (AGC / SDR) | Digital Step Attenuator (DSA) controlled via SPI/UART. | Analog Devices HMC1019 or Qorvo QPC6324 |
For further reading on the mathematical foundations of logarithmic scaling in analog circuits, refer to the Analog Devices "Ask The Application Engineer" guide on Decibels. For practical RF attenuation implementation and S-parameter considerations, review the Mini-Circuits Attenuator Design Notes.






