The decibel (dB) formula calculates the logarithmic ratio between two power or amplitude levels. For power, the formula is dB = 10 × log10(P2 / P1). For voltage or current, the formula is dB = 20 × log10(V2 / V1). The decibel is not an absolute unit like watts or volts; it is a dimensionless ratio that compresses massive dynamic ranges into manageable numbers, making it the standard for RF, audio, and signal integrity work on the bench.

The Core dB Formula and Symbol Definitions

There are two distinct forms of the dB formula. Using the wrong multiplier (10 vs. 20) is the most common mistake hobbyists and junior technicians make. The difference stems from the physical relationship between power and amplitude: power is proportional to the square of voltage or current (P = V²/R). When you substitute V² into the base-10 logarithm, the exponent drops down as a multiplier (log(x²) = 2 × log(x)), turning the 10 into a 20.

Table 1: dB Formula Symbol Definitions and Base Equations
Symbol Definition Standard Unit Notes / Constraints
dB Decibel ratio Dimensionless Positive = gain, Negative = loss/attenuation
P1 Reference / Input Power Watts (W) or milliwatts (mW) Must be the same unit as P2
P2 Measured / Output Power Watts (W) or milliwatts (mW) Must be the same unit as P1
V1 Reference / Input Voltage Volts (V) RMS Must be RMS, not peak-to-peak
V2 Measured / Output Voltage Volts (V) RMS Must be RMS, not peak-to-peak
log10 Base-10 logarithm N/A Do not use natural log (ln)

When the Formula Applies (And Unit Mistakes That Break It)

The dB formula applies whenever you need to express a ratio of two like quantities in a logarithmic scale. It is heavily used in amplifier gain calculations, cable attenuation, filter roll-off, and signal-to-noise ratio (SNR) measurements. However, the math relies on strict assumptions that, if violated, will yield physically impossible results.

The Impedance Assumption

The 10× (power) and 20× (voltage) formulas only yield the same dB value if the input and output impedances are identical. According to Swarthmore College's engineering reference on decibels, if an amplifier has a 50-Ω input but drives a 75-Ω output, calculating gain via voltage (20×) and gain via power (10×) will give you two different dB numbers. In RF engineering, we force impedance matching (usually 50 Ω) precisely so that voltage dB and power dB remain mathematically equivalent.

Unit Mistakes That Break the Math

  • Mixing Peak and RMS: The voltage formula requires RMS values. If your oscilloscope reads 2.0V peak-to-peak, and you plug that directly into the formula against an RMS reference, your result will be off by roughly 9 dB.
  • Using 10× for Voltage: If you use the power formula (10×) on a voltage divider, you will calculate exactly half the actual attenuation in dB.
  • Mismatched Prefixes: Plugging P1 in milliwatts and P2 in watts without converting them to the same base unit first. The ratio must be unitless before applying the logarithm.

Realistic Answer Magnitudes

To build bench intuition, memorize these anchor points. A +3 dB change always means power has doubled. A +6 dB change means voltage has doubled. A -10 dB change means the signal is 1/10th of its original power. If you calculate a passive RC filter and get a gain of +15 dB, you have made a math error; passive circuits cannot have positive dB gain.

Rearranged Forms for Reverse Engineering

On the bench, you rarely just calculate dB. Usually, a datasheet gives you a gain in dB, and you need to find the expected output voltage or power. Here are the algebraically rearranged forms solving for each variable.

Power Rearrangements (10× Formula):
  • Solve for P2: P2 = P1 × 10(dB / 10)
  • Solve for P1: P1 = P2 / 10(dB / 10)
Voltage/Current Rearrangements (20× Formula):
  • Solve for V2: V2 = V1 × 10(dB / 20)
  • Solve for V1: V1 = V2 / 10(dB / 20)

Worked Examples with Unit Tracking

Let's walk through two common bench scenarios, tracking the units at every step to ensure the logarithm receives a dimensionless ratio.

Problem 1: RF Power Amplifier Gain

Scenario: You are testing a 2.4 GHz Wi-Fi power amplifier. The input signal is 5 mW. The output signal measured on your RF power meter is 400 mW. What is the gain in dB?

  1. Identify the formula: We are dealing with power, so we use dB = 10 × log10(P2 / P1).
  2. Assign variables with units: P1 = 5 mW, P2 = 400 mW.
  3. Calculate the ratio: P2 / P1 = 400 mW / 5 mW = 80 (the 'mW' units cancel out, leaving a pure ratio).
  4. Apply the logarithm: log10(80) ≈ 1.903.
  5. Multiply by 10: 10 × 1.903 = 19.03 dB.

Sanity check: 100x power would be 20 dB. 80x is slightly less than 100x, so 19.03 dB makes logical sense.

Problem 2: Audio Line Level Attenuation

Scenario: You are designing a passive volume control for a pro-audio mixer. The input from the DAC is 1.228 V RMS (standard +4 dBu pro audio level). You need the output to be 0.316 V RMS to feed a consumer headphone amp (-10 dBV). What is the required attenuation in dB?

  1. Identify the formula: We are dealing with voltage, so we use dB = 20 × log10(V2 / V1).
  2. Assign variables with units: V1 = 1.228 V, V2 = 0.316 V.
  3. Calculate the ratio: V2 / V1 = 0.316 V / 1.228 V ≈ 0.2573.
  4. Apply the logarithm: log10(0.2573) ≈ -0.589.
  5. Multiply by 20: 20 × -0.589 = -11.78 dB.

Sanity check: A ratio of 0.25 is exactly 1/4th voltage. Since 1/2 voltage is -6 dB, 1/4 voltage is -12 dB. Our calculated -11.78 dB is very close to -12 dB, confirming the math is correct.

Decision Path: Selecting Your Reference and Termination

Knowing the formula is only half the battle. When you sit down at the bench, you must decide which physical termination to use and which reference scale (dBm, dBV, dBu) applies to your device under test (DUT). Making the wrong choice will result in reflections, standing waves, or clipped audio. Use the decision tree below to configure your test setup.

Table 2: Bench Measurement Decision Matrix
Signal Domain Standard Impedance Reference Scale Formula Multiplier Required Bench Hardware
RF / Microwave / SDR 50 Ω dBm (Ref: 1 mW) 10× (Power) 50 Ω Coax, BNC/SMA Terminators
Pro Audio / Studio Gear High-Z (Bridged) or 600 Ω dBu (Ref: 0.775 V) 20× (Voltage) XLR/TRS Cables, High-Z DMM
Consumer Audio / Line Level High-Z (Bridged) dBV (Ref: 1.0 V) 20× (Voltage) RCA Cables, Standard Oscilloscope
Video / Analog TV (Legacy) 75 Ω dBmV (Ref: 1 mV) 20× (Voltage) 75 Ω BNC, F-Type Terminators
Callout Tip: The dBm Trap
Notice that dBm is a power reference (1 milliwatt), while dBu and dBV are voltage references. If your multimeter has a "dBm" setting, it is actually measuring voltage and internally calculating power assuming a specific resistance (usually 600 Ω on older meters, or 50 Ω on RF meters). Always check your meter's manual to see what impedance it assumes for its dBm function, or your readings will be completely wrong when connected to a mismatched load. For a deep dive into how analog reference scales diverge, review the Analog Devices tutorial on decibel conventions.

The Final Bench Pick

If you are doing general RF, antenna, or high-speed digital signal integrity work, the 50-Ω standard is non-negotiable. To ensure your dB power calculations remain accurate and prevent signal reflections from skewing your oscilloscope readings, you must terminate unused ports and scope inputs with a precision load. Buy the Mini-Circuits BT-50 50-Ω BNC terminator (typically around $35). Screw it directly into your oscilloscope's BNC input or your spectrum analyzer's spare port, set your meter to measure true RMS power relative to 1 mW, and use the 10× power formula. This single hardware choice eliminates impedance mismatch variables and guarantees your dB calculations reflect reality.