Electrical Engineering › Section N · Decibels, filters, and Bode plots › Topic N.1

Logarithms and decibels

Signal levels in electronics range from microvolts to kilovolts, and gains pile up stage after stage. The decibel, built on the base-10 logarithm, turns those huge ratios into small numbers that simply add.

Why engineers count in logarithms

A microphone produces a few millivolts and a power amplifier tens of volts, while a radio receiver handles signals more than a billion times weaker in power than the transmitter sent. As plain numbers such ratios are clumsy, and following a signal through several stages means multiplying them. Logarithms fix both problems: they squeeze huge ranges onto a short scale and turn multiplication into addition. The decibel, built on the logarithm, is the unit for gains, losses and signal levels.

Logarithms in two bases

A logarithm answers the question "which power?". If \(N = b^x\), then \(x = \log_b N\). Two bases matter. The common logarithm uses base 10: \(\log_{10} 1000 = 3\) because \(10^3 = 1000\), and \(\log_{10} 1500 = 3.176\), a little above 3. The natural logarithm, written ln, uses base \(e \approx 2.718\); it appeared in the topic Charging and discharging transients. The two are linked by \(\log_{10} N = \frac{\ln N}{\ln 10}\). Undoing a logarithm is called taking the antilogarithm: if \(\log_{10} N = 1.5\), then \(N = 10^{1.5} = 31.6\). Decibels always use base 10.

Rules that make logarithms useful

The logarithm of 1 is 0, so a ratio of 1 gives zero decibels. Numbers between 0 and 1 have negative logarithms: \(\log_{10} 0.01 = -2\). The logarithm of a product is a sum, \(\log(ab) = \log a + \log b\), and of a quotient a difference, \(\log(a/b) = \log a - \log b\). A power comes out in front: \(\log a^n = n\log a\). Two values are worth memorising, \(\log_{10} 2 = 0.301\) and \(\log_{10} 3 = 0.477\); with them, \(\log_{10} 20 = 1.301\) and \(\log_{10} 0.5 = -0.301\). The logarithm of zero or of a negative number is undefined.

Logarithmic scales

Frequency-response graphs use a logarithmic axis, on which equal distances stand for equal ratios. The span from 10 Hz to 100 Hz is one decade, and it takes the same length as 100 Hz to 1 kHz or 10 kHz to 100 kHz. Within each decade the marks crowd towards the top: 2 sits 30.1% of the way across, because \(\log_{10} 2 = 0.301\), and 5 sits 69.9% of the way across. A doubling of frequency is called an octave. Graph paper with one logarithmic axis and one linear axis is called semilog paper; the linear axis carries the decibels.

The bel and the decibel

The bel, named after Alexander Graham Bell, is the logarithm of a power ratio. Engineers use a tenth of it, the decibel:

\text{dB} = 10\log_{10}\frac{P_2}{P_1}

This is the power form. A positive result is a gain, a negative one a loss. Doubling the power gives \(10\log_{10} 2 = 3.01\) dB, usually rounded to 3 dB. Ten times the power is 10 dB, a hundred times is 20 dB, and half the power is −3 dB. Raising a 20 W amplifier's output by 3 dB therefore needs about 40 W.

Voltage and current ratios

Power in a resistance is \(P = V^2/R\). If two voltages appear across equal resistances, the power ratio is the square of the voltage ratio, and the square comes out of the logarithm as a factor of 2:

\text{dB} = 10\log_{10}\frac{V_2^2}{V_1^2} = 20\log_{10}\frac{V_2}{V_1}

This is the voltage form, and current ratios use it too. Doubling a voltage is +6.02 dB, ten times the voltage is +20 dB, and a voltage ratio of \(1/\sqrt{2} = 0.707\) is −3.01 dB, the same as half power. Strictly, the two forms agree only for equal resistances, yet voltage gains are quoted with 20 log by convention, so state which ratio a figure describes.

Worked example: an amplifier's gain in dB

A preamplifier turns 15 mV rms into 2.4 V rms. Find its voltage gain in dB, then the output of a 30 dB amplifier fed 50 mV rms. 1. Voltage ratio: \(A_v = \frac{2.4\,\text{V}}{15\,\text{mV}} = 160\). 2. Voltage form: \(20\log_{10} 160 = 20(2.204) = 44.1\) dB. 3. For the second amplifier, take the antilogarithm: \(\frac{V_o}{V_i} = 10^{30/20} = 10^{1.5} = 31.6\). 4. Output: \(V_o = 31.6 \times 50\,\text{mV} = 1.58\,\text{V}\) rms. 5. Check: 40 dB is a ratio of 100, so 44.1 dB fits 160, and 30 dB lies between 20 dB (×10) and 40 dB (×100), as 31.6 does.

Absolute levels: dBm and its relatives

A decibel figure is always a ratio, but fixing the reference turns it into an absolute level. With 1 mW as the reference power, the level is written in dBm:

\text{dBm} = 10\log_{10}\frac{P}{1\,\text{mW}}

So 1 mW is 0 dBm, 25 mW is 14.0 dBm and 0.5 W is 27.0 dBm. With 1 W as the reference the unit is dBW, so 2 W is 3.01 dBW. Voltage references exist too: dBV uses 1 V rms, and dBu uses 0.775 V rms, the voltage that delivers 1 mW into 600 Ω, the traditional impedance of telephone and studio lines.

Worked example: a cascaded signal chain

A 10.0 mV rms signal passes through a preamplifier with 26 dB of gain, a cable and connector loss of 4 dB, and a power amplifier with 32 dB of gain, all quoted as voltage gains. Find the output voltage. 1. Gains in dB add, because the logarithm of a product is a sum: \(26 - 4 + 32 = 54\) dB. 2. Overall ratio: \(10^{54/20} = 501\). 3. Output: \(501 \times 10.0\,\text{mV} = 5.01\,\text{V}\) rms. 4. Check by multiplying the separate ratios: \(19.95 \times 0.631 \times 39.8 = 501\). Adding dB values assumes each gain was measured with the next stage connected, a point taken further in Input and output impedance, gains, and cascaded systems.

Decibels and hearing

The ear responds to sound roughly logarithmically. Sound pressure level uses the voltage-style form with a reference pressure of 20 µPa, about the quietest 1 kHz tone a young listener can hear:

L_p = 20\log_{10}\frac{p}{20\,\mu\text{Pa}}

Ordinary conversation is about 60 dB SPL, and the threshold of pain is roughly 120 to 140 dB SPL. As rules of thumb, a 1 dB change is barely noticeable, 3 dB is clearly audible, and a 10 dB rise sounds about twice as loud. Since 10 dB is ten times the power, making a loudspeaker sound twice as loud takes about ten times the amplifier power.

Common mistakes to avoid

First, using 10 log for a voltage ratio, or 20 log for a power ratio: a voltage that doubles rises by 6 dB, not 3 dB. Second, multiplying decibel values: ratios multiply through a chain, but decibels add. Third, assuming decibels scale linearly: 10 dB is ten times the power, but 5 dB is only 3.16 times. Fourth, dropping the sign of a loss: a 4 dB loss enters the sum as −4 dB. Fifth, treating a level in dBm as a gain, or writing dBm when the reference is not 1 mW.

Key takeaways

Logarithms turn products into sums and powers into multipliers; log₁₀ 2 = 0.301. On a log axis each decade has the same length. Power ratios: dB = 10 log₁₀(P₂/P₁), so double power is +3 dB and ten times is +10 dB. Voltage or current ratios across equal resistances: dB = 20 log₁₀(V₂/V₁), so double voltage is +6 dB, ten times is +20 dB, and 0.707 is −3 dB. Gains in dB add through a chain. dBm is a level relative to 1 mW, and sound pressure level is referred to 20 µPa.

Flashcards

Flashcard

log₁₀ N

The power to which 10 must be raised to give N

log₁₀ 1000 = 3.

Test your understanding

Question 1 of 5

An amplifier's output power is 100 times its input power. What is its power gain in decibels?

Question 2 of 5

The rms voltage of a signal doubles across the same resistance. By how much does its level rise?

Question 3 of 5

A transmitter stage delivers 100 mW. What is this level in dBm?

Question 4 of 5

A signal passes through stages with gains of 18 dB, −6 dB and 24 dB. What is the overall gain?

Question 5 of 5

Why does a voltage ratio use 20 log₁₀ rather than 10 log₁₀?

← Previous topicNext topic →