Decibels: dB = 10 log(P2/P1) = 20 log(V2/V1)
A decibel expresses a ratio on a logarithmic scale. Ten times the base-10 logarithm of a power ratio gives the value in dB, so a chain of gains and losses that would multiply in linear units simply adds in decibels.
Referred to a fixed level, the same scale gives absolute units: dBm for power relative to 1 mW, dBW relative to 1 W, dBµV for voltage relative to 1 µV. They are the everyday units of RF datasheets, link budgets and EMC test reports.
The formula
Gain G in decibels from a power ratio, or from a voltage ratio when both voltages are across the same impedance.
| Symbol | Quantity | Unit |
|---|---|---|
| Gain (negative for a loss) | decibel (dB) | |
| Input and output power | watt (W), same unit for both | |
| Input and output RMS voltage, across the same impedance | volt (V), same unit for both |
Why 10 for power and 20 for voltage
The decibel is defined on power. A voltage enters only through the power it delivers: across a resistance R, the power is proportional to the square of the RMS voltage.
Put that expression into the power definition with the same R on both sides. R cancels, and the square comes out of the logarithm as a factor 2, which turns the 10 into a 20:
So 20 log is not a separate definition: it is the power ratio in disguise. If the two voltages sit across different impedances, for example and , the resistances no longer cancel and the voltage ratio alone does not give the power gain.
Rules of thumb: 3 dB, 6 dB, 10 dB
A handful of values cover most mental arithmetic. Doubling a power adds about 3 dB, and doubling a voltage across the same impedance adds about 6 dB, because the power then goes up four times:
The exact values are dB and dB, so the rounded ones are close enough for most budgets. A factor 10 in power is exactly 10 dB and a factor 100 is 20 dB, which is also a factor 10 in voltage. Minus 3 dB is half the power and about times the voltage; 7 dB is 10 dB minus 3 dB, about 5 times the power.
Absolute units: dBm and dBW
A plain dB value is a ratio with no unit. Dividing by a fixed reference instead of a second signal gives a level. In RF work the usual reference is 1 mW, and the result is written in dBm:
So 0 dBm is 1 mW, +10 dBm is 10 mW, +30 dBm is 1 W and dBm is 1 µW. The dBW uses 1 W as reference, so any level in dBW is the level in dBm minus 30. Going back from dBm to milliwatts inverts the logarithm:
From dBm to dBµV in a 50 Ω system
EMC receivers and spectrum analysers often read in dBµV, a voltage level relative to 1 µV, computed with 20 log. Converting needs the impedance. Into , 1 mW develops an RMS voltage of , which is about 223 600 µV, or 107 dBµV. Hence the offset:
The exact constant is , rounded to 107 in practice. It holds only for 50 Ω: in a 75 Ω system the same 1 mW gives a higher voltage and the offset is close to 109 dB. A level in dBµV says nothing about power until the impedance is known.
Adding gains and losses in a link budget
The logarithm of a product is the sum of the logarithms. Through a chain of amplifiers, cables, filters and antennas, the linear gains multiply, so in decibels the output level is the input level plus every gain and minus every loss:
Only one term may carry an absolute unit: the starting level in dBm. Every other term is a ratio in dB. Two levels in dBm cannot be added as numbers: two 1 W signals are +30 dBm each, and together they make 2 W, about +33 dBm, not +60 dBm. To combine powers, convert to milliwatts, add, and convert back.
A transmitter, a cable and an antenna
A transmitter delivers +20 dBm into a 50 Ω cable with 3 dB of loss, which feeds an antenna with 6 dB of gain. What power reaches the antenna, what level leaves it, and what is the RMS voltage at the cable output?
- Transmitter output in milliwatts: .
- After the cable: , which is : the 3 dB loss halved the power.
- With the antenna gain (6 dBi): EIRP. The antenna still radiates at most 50 mW, but in its direction of maximum gain it produces the same field as 200 mW from an isotropic antenna.
- Voltage at the cable output in 50 Ω: , so RMS.
Result: +17 dBm (about 50 mW) at the antenna input, +23 dBm EIRP (200 mW equivalent isotropic) in the direction of maximum gain, and about 1.58 V RMS at the cable output.
Common mistakes
- Adding two levels in dBm. is not 60 dBm; the two powers add in milliwatts and give about 33 dBm.
- Using 20 log for a power ratio. A power ratio of 2 is 3 dB, not 6 dB; 20 log applies only to voltage or current ratios.
- Applying 20 log to voltages across different impedances. The resistances no longer cancel, so the voltage ratio in dB is not the power gain.
- Using the 107 dB offset outside a 50 Ω system. The constant comes from into ; in 75 Ω it is close to 109 dB.
- Writing a loss with the wrong sign. A 3 dB cable loss is a gain of dB: subtract it once, do not subtract a negative number.
Our design house in Montpellier, France designs and validates electronic boards, from schematic to production.
Frequently asked questions
- Why use 20 log for voltage and 10 log for power?
- Because power across a given resistance is proportional to the voltage squared. Taking 10 log of a ratio of squared voltages brings the exponent 2 out of the logarithm, which gives 20 log of the voltage ratio. Both formulas then give the same number of decibels for the same change, as long as the impedance is the same.
- What is the difference between dB and dBm?
- A value in dB is a ratio between two quantities and has no unit: a gain, a loss, an attenuation. A value in dBm is an absolute power level, the ratio to 1 milliwatt, so 0 dBm is 1 mW and 30 dBm is 1 W. Adding dB to dBm gives dBm; adding dBm to dBm as numbers is wrong.
- How do you convert dBm to milliwatts?
- Divide the level by 10 and raise 10 to that power, then multiply by 1 mW. For example 17 dBm gives 10 to the power 1.7, about 50 mW, and minus 20 dBm gives 0.01 mW. In the other direction, take 10 times the base-10 logarithm of the power in milliwatts.
- Where does the 107 dB between dBm and dBµV come from?
- From 1 mW into 50 ohms. That power develops about 0.2236 V RMS, or 223 600 microvolts, and 20 times the base-10 logarithm of 223 600 is close to 107. So in a 50 ohm system a level in dBµV is the level in dBm plus about 107. The figure changes with the impedance.
- Is 3 dB exactly double the power?
- No, doubling the power is 10 times the base-10 logarithm of 2, which is 3.01 dB. The rounded 3 dB is about 0.2 percent short of a factor 2, a difference that does not matter in a link budget. Likewise, doubling a voltage is 6.02 dB, usually written 6 dB.
Sources
- Rohde & Schwarz, Application Note 1MA98, dB or not dB? Everything you ever wanted to know about decibels
- Electronics Tutorials, Decibels
- Academy of EMC, dB and linear units converter (conducted)
Formulas and values checked against these published references.