---
title: Decibels, and why engineers use them
heading: Decibels turn a chain of gains into a sum
eyebrow: A1 · Lesson 10 · Decibels
xp: 40
---

::: hook
A radio's antenna picks up a signal of about a nanowatt. A first amplifier multiplies its power by 100, the cable to the next box keeps only a quarter of it, and a second amplifier multiplies it by 300. What comes out? You could multiply it all out. Engineers do it with a few additions, and they can do it in their heads.

::: play
- Each box is one stage. Its gain is written in decibels (dB) and, underneath, as the factor it multiplies the power by.
- The pink line is the signal's power level after each stage, in dBm. Under each level is the same power in watts.
- Change the first amplifier's gain G1 and watch every level after it move. Then try the cable's loss.
:::
:::

```sim plot
view: chain
input: -60 | label: antenna
stage: G1 | label: amplifier
stage: -L | label: cable
stage: G2 | label: amplifier
y: P = -80..20 dBm
slider: G1 = 0..30 step 1 = 20 dB
slider: L = 0..12 step 1 = 6 dB
slider: G2 = 0..40 step 1 = 25 dB
readout: total gain = G1 - L + G2 dB
readout: out = -60 + G1 - L + G2 dBm
```

::: predict
## You raise the first amplifier's gain by 10 dB. What happens to the level coming out of the end of the chain?

- [ ] Nothing, because the later stages set the output
- [x] It rises by 10 dB too
- [ ] It rises by 100 dB
- [ ] It rises by 10 dB times the number of stages after it

::: reveal
It rises by exactly 10 dB, and so does the level after every stage that follows. In decibels each stage adds its gain to the level, so a change anywhere shifts everything after it by the same amount. Underneath the decibels, 10 dB more gain means the power is multiplied by 10 more, and that factor carries through every multiplication that follows.
:::
:::

::: nameit
## A decibel is a logarithm of a power ratio

A gain or loss in decibels is ten times the logarithm of the ratio of output power to input power:

$$G_\text{dB} = 10 \log_{10} \frac{P_\text{out}}{P_\text{in}}$$

Because logarithms turn multiplying into adding, gains in a chain add: $G_\text{total} = G_1 + G_2 + G_3 + \dots$, with losses entered as negative gains. A few values cover almost everything you'll need:

| dB | Power ratio | Voltage ratio |
|---:|---:|---:|
| 0 | × 1 | × 1 |
| 3 | × 2 (very nearly) | × 1.41 |
| 6 | × 4 | × 2 |
| 10 | × 10 | × 3.16 |
| 20 | × 100 | × 10 |
| −3 | × ½ | × 0.71 |
| −10 | × 0.1 | × 0.316 |

**Voltages.** Power goes as voltage squared, so for a voltage ratio across the same resistance the formula doubles to

$$G_\text{dB} = 20 \log_{10} \frac{V_\text{out}}{V_\text{in}}$$

That's why the table's voltage column moves half as fast: 20 dB is ten times the voltage and a hundred times the power. Both describe the same change.

**dBm.** A decibel value on its own is a ratio. To make it a power, pick a reference: dBm means decibels relative to one milliwatt. So 0 dBm is 1 mW, 30 dBm is 1 W, and −60 dBm is a nanowatt, the signal at the antenna above. Adding a gain in dB to a level in dBm gives a level in dBm.

For the hook: $-60 + 20 - 6 + 25 = -21$ dBm, which is about 8 µW. Working it out with the factors gives the same thing: 1 nW × 100 × ¼ × 300 = 7.5 µW. The difference comes from rounding: a 6 dB loss is really × 0.251, and 25 dB is × 316.
:::

::: example
## An amplifier takes in 2 mW and puts out 0.5 W. What is its gain in dB?

::: solution
1. **Power ratio.**
   $$\frac{0.5\ \text{W}}{2\ \text{mW}} = 250$$
2. **Split the ratio into tens and twos.**
   $$250 = \frac{1000}{4}$$
3. **Convert each part.** A factor of 1000 is 30 dB, and dividing by 4 is two halvings, $-3 - 3 = -6$ dB:
   $$\begin{aligned} 10\log_{10} 250 &= 30 - 6 \\ &= 24\ \text{dB} \end{aligned}$$
4. **Check.** A calculator gives 23.98 dB. Splitting ratios into tens and twos gets you within a few hundredths of a decibel in your head.

**Answer:** the gain is 24 dB.
:::
:::

::: example
## A 20 dBm signal goes through a splitter that loses 3 dB, then 50 m of cable that loses 0.2 dB per meter. What power comes out, in dBm and in mW?

::: solution
1. **Add up the losses in dB.**
   $$\begin{aligned} \text{loss} &= 3 + 50 \times 0.2 \\ &= 13\ \text{dB} \end{aligned}$$
2. **Output in dBm.**
   $$20 - 13 = 7\ \text{dBm}$$
3. **Convert to milliwatts.**
   $$10^{7/10} = 5.0\ \text{mW}$$
4. **Check by tens and threes.** 7 dBm is 10 dBm minus 3 dB, which is 10 mW halved, 5 mW.

**Answer:** 7 dBm comes out, which is 5.0 mW.
:::
:::

::: check
given: r = 2 | 4 | 20 | 50 | 200 | 1000 | 0.5 | 0.1
answer: 10*log10(r)
unit: dB
tolerance: 0.1 dB

## An amplifier stage multiplies the power by {r}. What is its gain in decibels?

::: right
Right. $10 \log_{10} \given{r}$ is {answer}.
:::

::: misses
- [20*log10(r)] That's the voltage formula. For a power ratio, use 10 log.
- [log10(r)] That's in bels. A decibel is a tenth of a bel, so multiply by 10.
- [10*r] Take the logarithm of the ratio first, then multiply by 10.
- [any] Not yet. The gain in dB is $10 \log_{10}$ of the power ratio.
:::
:::

::: check
given: L = -90 | -70 | -50 | -30 | -20 | 10 | 20 | 30
answer: 1e-3*10^(L/10)
unit: W

## A signal is at {L} dBm. What is its power?

::: right
Right. {L} dB relative to 1 mW is 1 mW × $10^{\given{L}/10}$, which is {answer}.
:::

::: misses
- [10^(L/10)] That's the right ratio, but it's relative to one milliwatt. Multiply it by 1 mW.
- [1e-3*10^(L/20)] For a power, divide the decibels by 10. The 20 is for voltages.
- [any] Not yet. dBm is decibels relative to 1 mW: turn the dB into a power ratio and multiply by 1 mW.
:::
:::

::: check
given: Pin = -80 | -70 | -60 | -50 dBm; G1 = 10..30 int; L = 2..9 int; G2 = 10..30 int
answer: Pin + G1 - L + G2
unit: dBm
tolerance: 0.1 dBm

## A signal at {Pin} goes through an amplifier with {G1} dB of gain, then a cable that loses {L} dB, then an amplifier with {G2} dB of gain. What level comes out?

::: right
Right. Add the gains and subtract the loss: {answer}.
:::

::: misses
- [Pin + G1 + L + G2] The cable loses {L} dB, so it subtracts.
- [G1 - L + G2] That's the chain's total gain. Add it to the input level to get the output level.
- [any] Not yet. In decibels each stage adds its gain to the level, and a loss is a negative gain.
:::
:::

::: check
kind: choice

## An amplifier makes the voltage across a resistor 10 times bigger. What is its gain in decibels?

- [ ] 10 dB
- [x] 20 dB
- [ ] 1 dB
- [ ] 100 dB

::: right
Right. For voltages it's $20 \log_{10} 10 = 20$ dB. The power goes up 100 times, and $10 \log_{10} 100$ is also 20 dB.
:::

::: misses
- [1] That would be right for a power ratio of 10. For a voltage ratio, use $20 \log_{10}$.
- [any] Take $20 \log_{10}$ of the voltage ratio.
:::
:::

::: check
given: d = 13 | 16 | 23 | 26 | 33
answer: 10^(d/10)
tolerance: 3%

## Without a calculator, what power ratio is {d} dB? Split it into tens and threes.

::: right
Right. Each 10 dB multiplies by 10 and each 3 dB by very nearly 2, so {d} dB is about {answer}.
:::

::: misses
- [10^(d/20)] That's the voltage ratio. For power, every 10 dB is a factor of 10.
- [d] Decibels are a logarithm, so they need turning back into a ratio.
- [any] Not yet. Write {d} dB as tens plus threes: each 10 is × 10 and each 3 is × 2.
:::
:::

::: check
kind: parts
given: P = 10 | 20 | 30; S = -60 | -70 | -80; L = 5..20 int

## A transmitter puts out {P} dBm into a cable that loses {L} dB per 100 m. The receiver at the far end needs at least {S} dBm.

::: part
answer: P - S
unit: dB

### How much loss can the cable have in total?

::: misses
- [P + S] That adds the levels. The allowed loss is how far the transmitter's level is above the receiver's minimum.
- [any] Not yet. Subtract the level the receiver needs from the level the transmitter delivers.
:::
:::

::: part
answer: (P - S)/L*100
unit: m

### How long can the cable be?

::: misses
- [(P - S)/L] That's the length in hundreds of meters. Each {L} dB uses up 100 m of cable.
- [(P - S)*L/100] That multiplies by the loss rate. Divide the allowed loss by the loss per meter.
- [any] Not yet. Divide the total allowed loss by {L} dB, then multiply by 100 m.
:::
:::

::: right
Right. In decibels the budget is a subtraction and the length a division, with no powers of ten to juggle.
:::
:::

::: explain
## Why do engineers describe a long chain of amplifiers, cables and filters in decibels?

::: model
Each stage multiplies the power by some factor, so the total is the product of all of them, and the factors can range from tiny to huge. In decibels each factor becomes a number you add, so the total gain is a sum you can do in your head, a loss is just a negative number, and the level at any point along the chain is the input level plus the gains before it. Decibels also keep huge ranges manageable: a factor of a billion is just 90 dB.
:::
:::

::: practice

::: check
given: r = 2 | 4 | 5 | 20 | 40 | 200 | 1000 | 0.5 | 0.25 | 0.01
answer: 10*log10(r)
unit: dB
tolerance: 0.1 dB

## A power ratio of {r} is how many decibels?

::: misses
- [20*log10(r)] That's the voltage formula. For power, use 10 log.
- [any] Take $10 \log_{10}$ of the ratio.
:::
:::

::: check
given: d = 3 | 6 | 10 | 13 | 20 | 23 | 30 | 40
answer: 10^(d/10)
tolerance: 3%

## What power ratio is {d} dB?

::: misses
- [10^(d/20)] That's the voltage ratio. For power, divide the decibels by 10.
- [any] Each 10 dB is × 10 and each 3 dB is × 2.
:::
:::

::: check
given: v = 2 | 5 | 10 | 20 | 100 | 1000
answer: 20*log10(v)
unit: dB
tolerance: 0.1 dB

## An amplifier multiplies the voltage by {v}. What is its gain in decibels?

::: misses
- [10*log10(v)] For a voltage ratio, use 20 log.
- [any] Take $20 \log_{10}$ of the voltage ratio.
:::
:::

::: check
given: L = -100 | -80 | -60 | -40 | -30 | -10 | 10 | 20 | 30 | 40
answer: 1e-3*10^(L/10)
unit: W

## What power is {L} dBm?

::: misses
- [10^(L/10)] Multiply the ratio by the 1 mW reference.
- [any] dBm is relative to 1 mW: turn the decibels into a ratio and multiply by 1 mW.
:::
:::

::: check
given: P = 1µ | 10µ | 100µ | 10m | 100m | 1 | 2 | 10 | 100 W
answer: 10*log10(P/1e-3)
unit: dBm
tolerance: 0.1 dBm

## What is {P} in dBm?

::: misses
- [10*log10(P)] That's in dBW, relative to one watt. dBm is relative to one milliwatt.
- [any] Divide by 1 mW, then take $10 \log_{10}$.
:::
:::
:::
