Decibel and logarithm formulas
A decibel value is a logarithm of a ratio: 10 × log₁₀ of a power ratio, 20 × log₁₀ of a voltage ratio. So gains in a chain simply add, 0 dBm is 1 mW, +3 dB doubles a power and +10 dB multiplies it by 10. The log rules underneath: log₁₀ 1,000 = 3, the log of a product is the sum of the logs, and log₁₀ 2 ≈ 0.301.
The formulas
| Formula | What it gives | Symbols |
|---|---|---|
x = 10ⁿ, log₁₀(x) = n | The log of a power of ten | log₁₀ x is the power you raise 10 to, to get x: log₁₀ 1,000 = 3, log₁₀ 0.01 = −2 |
log₁₀(x) = log₁₀(m) + k | The log of a number split into m × 10ᵏ | m from the table: log₁₀ 2 ≈ 0.301, log₁₀ 4 = 2 × 0.301, log₁₀ 8 = 3 × 0.301, log₁₀ 5 = 1 − 0.301 |
log₁₀(A ÷ B) = log₁₀ A − log₁₀ B | The log of a quotient | the difference of the logs; the log of a product is their sum |
G = 10 × log₁₀(P_out ÷ P_in) | A power ratio in decibels | both powers in the same unit; a loss (P_out smaller) gives a negative G |
G = 20 × log₁₀(V_out ÷ V_in) | A voltage (or current) ratio in decibels | both voltages in the same unit, across the same resistance; × 2 in voltage is about 6 dB |
P_out ÷ P_in = 10^(G ÷ 10) | A power gain in dB back to a ratio | 10 dB is × 10, 20 dB × 100, 30 dB × 1,000; +3 dB is about × 2 |
V_out ÷ V_in = 10^(G ÷ 20) | A voltage gain in dB back to a ratio | 20 dB is × 10, 40 dB × 100; +6 dB is about × 2 |
G = G₁ + G₂ + … | Stages in cascade | every gain and loss in dB, a loss (cable, attenuator) counted with a minus |
P_out = P_in + G | The output power of a chain | P_in and P_out in dBm, G = the total gain of the stages in dB |
P_dBm = 10 × log₁₀(P ÷ 1 mW) | A power in dBm | P in mW: 1 mW = 0 dBm, 1 W = 30 dBm, 1 µW = −30 dBm |
G = 10 × log₁₀(S ÷ N) | Signal-to-noise ratio from two powers | S and N in the same unit |
G = 20 × log₁₀(V_S ÷ V_N) | Signal-to-noise ratio from two voltages | RMS voltages across the same input, in the same unit |
G = S − N | Signal-to-noise ratio from two levels in dBm | S and N in dBm; the answer is in dB |
ΔL = 10 × log₁₀(n) | The rise in level from n equal sound sources | n sources give n times the intensity: two add about 3 dB, ten add 10 dB |
L = L₁ + ΔL | The level of several equal sources | L₁ = the level of one source alone, ΔL from the row above |
I_B ÷ I_A = 10^(ΔL ÷ 10) | Two sound levels as a ratio of intensities | ΔL = L_B − L_A in dB; every 10 dB is ten times the intensity |
f_M = √(f_A × f_B) | The point halfway between two values on a log scale | the same factor from A to the middle as from the middle to B (the geometric mean) |
G_c = G₀ − 3 dB | The gain at the cut-off frequency | G₀ = the pass-band gain; 3 dB down is half the power, 0.707 of the voltage |
log₁₀(f₂ ÷ f₁) = n | The number of decades between two frequencies | a decade is a factor of 10 in frequency: 20 Hz to 20 kHz is 3 decades |
G = G₀ − R × n | The gain far past the cut-off | R = 20 dB per decade for each order of the filter, n = decades from the cut-off |
P = P₀ × 10^(ΔG ÷ 10) | The power at a frequency read off a gain plot | P₀ = the pass-band power, ΔG = how far the gain has dropped there, in dB (negative) |
Worked example
This example is made by the same code as the practice questions. Open the working to see every step.
The diagram shows the voltage going into and coming out of a cable. What is its voltage gain in decibels (a loss is negative), in dB? Use log₁₀ 2 ≈ 0.301.
Answer: −21.94 dB. A voltage ratio in decibels is 20 times its base-10 log: G = 20 × log₁₀(0.08) = −21.94 dB.
Show the working
- Write down what is given: V_in = 1 mV, V_out = 80 µV.
- Change the units first: 1 mV = 1,000 µV.
- The voltage ratio: V_out ÷ V_in = 80 µV ÷ 1,000 µV = 0.08.
- With the table value: log₁₀(0.08) ≈ 3 × 0.301 − 2 = −1.097.
- Work it out: G = 20 × log₁₀(V_out ÷ V_in) = 20 × log₁₀(0.08) = 20 × (−1.097) = −21.94 dB.
- Check: less comes out than goes in, so the gain is negative, a loss. Answer: −21.94 dB.
Why not the others?
- 21.94 dB Puts the ratio upside down, so the sign is wrong: use output ÷ input (signal ÷ noise).
Remember: A voltage ratio in decibels: G = 20 × log₁₀(V_out ÷ V_in). Formula sheet
Common mistakes
These are the wrong answers the practice questions offer, and the slip that leads to each.
- Using 20 × log₁₀ for a power ratio, or 10 × log₁₀ for a voltage ratio.
- Treating decibels as a multiplier: 30 dB is × 1,000 in power, not × 30.
- Adding the losses of cables and attenuators as gains, or forgetting the input power in dBm.
- Taking dBm against 1 W instead of 1 mW, or reading the cut-off where the gain is 20 dB down instead of 3 dB.
Questions
What is the formula for the log of a power of ten?
x = 10ⁿ, log₁₀(x) = n. Symbols: log₁₀ x is the power you raise 10 to, to get x: log₁₀ 1,000 = 3, log₁₀ 0.01 = −2.
What is the formula for the log of a number split into m × 10ᵏ?
log₁₀(x) = log₁₀(m) + k. Symbols: m from the table: log₁₀ 2 ≈ 0.301, log₁₀ 4 = 2 × 0.301, log₁₀ 8 = 3 × 0.301, log₁₀ 5 = 1 − 0.301.
What is the formula for the log of a quotient?
log₁₀(A ÷ B) = log₁₀ A − log₁₀ B. Symbols: the difference of the logs; the log of a product is their sum.