EngineerPlay

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

FormulaWhat it givesSymbols
x = 10ⁿ, log₁₀(x) = nThe log of a power of tenlog₁₀ x is the power you raise 10 to, to get x: log₁₀ 1,000 = 3, log₁₀ 0.01 = −2
log₁₀(x) = log₁₀(m) + kThe 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₁₀ BThe log of a quotientthe difference of the logs; the log of a product is their sum
G = 10 × log₁₀(P_out ÷ P_in)A power ratio in decibelsboth 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 decibelsboth 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 ratio10 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 ratio20 dB is × 10, 40 dB × 100; +6 dB is about × 2
G = G₁ + G₂ + …Stages in cascadeevery gain and loss in dB, a loss (cable, attenuator) counted with a minus
P_out = P_in + GThe output power of a chainP_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 dBmP 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 powersS and N in the same unit
G = 20 × log₁₀(V_S ÷ V_N)Signal-to-noise ratio from two voltagesRMS voltages across the same input, in the same unit
G = S − NSignal-to-noise ratio from two levels in dBmS and N in dBm; the answer is in dB
ΔL = 10 × log₁₀(n)The rise in level from n equal sound sourcesn sources give n times the intensity: two add about 3 dB, ten add 10 dB
L = L₁ + ΔLThe level of several equal sourcesL₁ = 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 scalethe same factor from A to the middle as from the middle to B (the geometric mean)
G_c = G₀ − 3 dBThe gain at the cut-off frequencyG₀ = the pass-band gain; 3 dB down is half the power, 0.707 of the voltage
log₁₀(f₂ ÷ f₁) = nThe number of decades between two frequenciesa decade is a factor of 10 in frequency: 20 Hz to 20 kHz is 3 decades
G = G₀ − R × nThe gain far past the cut-offR = 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 plotP₀ = 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.

One stage with the voltage going in and coming outLabels shown, in drawing order: V_in = 1 mV, Cable, G = ?, V_out = 80 µV.V_in = 1 mVCableG = ?V_out = 80 µV
Show the working
  1. Write down what is given: V_in = 1 mV, V_out = 80 µV.
  2. Change the units first: 1 mV = 1,000 µV.
  3. The voltage ratio: V_out ÷ V_in = 80 µV ÷ 1,000 µV = 0.08.
  4. With the table value: log₁₀(0.08) ≈ 3 × 0.301 − 2 = −1.097.
  5. Work it out: G = 20 × log₁₀(V_out ÷ V_in) = 20 × log₁₀(0.08) = 20 × (−1.097) = −21.94 dB.
  6. 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.

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.