---
title: Spectrum analyzers
heading: Resolution bandwidth, noise floors and decibels
eyebrow: C11 · Lesson 13 · Spectrum analyzers
xp: 40
---

::: hook
A scope shows a signal's shape; a spectrum analyzer shows what frequencies it contains and how strong each is, across a range of 100 dB or more, from a strong carrier down to a harmonic a millionth of its power. Its key setting is the **resolution bandwidth**, the width of the filter it sweeps across the band. A narrow filter separates tones that are close together and lowers the noise it shows, so it can see weak signals, but it makes the sweep painfully slow. Every measurement is a choice of that tradeoff.
:::

::: play
- The trace is what an analyzer shows for a −30 dBm tone at 0 and a −60 dBm tone D kHz away, on a noise background of −160 dBm/Hz, with resolution bandwidth RBW.
- With a wide RBW, the weak tone is buried in the strong one's skirt and in noise. Narrow it: the two separate, and the noise floor drops by 10 dB for every factor of 10.
- The readouts give the displayed noise floor and the rough sweep time for a 1 MHz span, which grows as $1/\text{RBW}^2$.
:::
:::

```sim plot
view: graph
x: f = -50..50 kHz
y: P = -130..-20 dBm
slider: RBW = 0.1..30 = 10 kHz log
slider: D = 2..40 = 10 step 1 kHz
plot: 10*log(1e-3*exp(-2.7726*(f/RBW)^2) + 1e-6*exp(-2.7726*((f - D)/RBW)^2) + 1e-16*RBW*1e3) | samples: 2000 | label: display
readout: noise floor = -160 + 10*log(RBW*1e3) dBm
readout: sweep time for a 1 MHz span = 2*1e6/(RBW*1e3)^2 s | format: si
```

::: predict
## An analyzer's resolution bandwidth is reduced from 10 kHz to 100 Hz. What happens to its displayed noise floor?

- [ ] Nothing: noise is noise
- [ ] It drops 10 dB
- [x] It drops 20 dB
- [ ] It drops 40 dB

::: reveal
It drops 20 dB. The filter passes noise power in proportion to its bandwidth, and 100 Hz is a hundredth of 10 kHz: $10\log_{10}(100) = 20$ dB less noise. A sinusoid's power, all at one frequency, passes either filter unchanged, so the signal stands 20 dB further out of the noise.
:::
:::

::: nameit
## How it works

A swept analyzer mixes the input down and passes it through a narrow **resolution bandwidth** (RBW) filter while sweeping the frequency, displaying the power that gets through, in dBm. FFT analyzers compute the same from sampled data. A tone appears as the RBW filter's shape centered on its frequency.

## RBW tradeoffs

- **Resolution:** two tones closer than about the RBW merge; a small tone near a large one also needs the filter's skirt to fall off fast enough.
- **Noise floor:** noise of density $N_0$ (dBm/Hz) shows up as $N_0 + 10\log_{10}(\text{RBW})$ dBm. The thermal floor is −174 dBm/Hz at room temperature, plus the analyzer's noise figure.
- **Speed:** a swept analyzer needs about $k \cdot \text{span}/\text{RBW}^2$ seconds, with k around 2 to 3.

## Units

- **dBm:** power relative to 1 mW. 0 dBm is 1 mW; +30 dBm is 1 W, often the most an analyzer's input survives.
- **dBc:** relative to the carrier. A harmonic at −45 dBm next to a 0 dBm carrier is −45 dBc.
- The signal-to-noise ratio read off the screen is the signal in dBm minus the floor in dBm, which depends on the RBW used.
:::

::: example
## An analyzer has a noise figure of 8 dB. What noise floor does it show at 1 kHz RBW?

::: solution
1. **Noise floor.**
   $$\begin{aligned} N &= -174 + 8 + 10\log_{10}1000 \\ &= -136\ \text{dBm} \end{aligned}$$
2. **What it hides.** A signal below about −136 dBm is invisible at that setting.
3. **A narrower RBW.** Dropping to 100 Hz RBW would reveal signals down to about −146 dBm.

**Answer:** the noise floor is −136 dBm.
:::
:::

::: example
## How long does a 1 MHz span take at 1 kHz RBW, with k = 2?

::: solution
1. **Sweep time at 1 kHz RBW.**
   $$\begin{aligned} T &= \frac{2 \times 10^6}{10^6}\ \text{s} \\ &= 2\ \text{s} \end{aligned}$$
2. **At 100 Hz RBW.**
   $$T = 200\ \text{s}$$
   The price of a 10 dB lower floor is a hundred times the sweep time.

**Answer:** the sweep takes 2 s.
:::
:::

::: example
## A spectrum analyzer's noise floor is −93 dBm, and with a weak signal present it reads −90 dBm. What is the signal's true power?

::: solution
1. **Signal plus noise.** The display shows signal plus noise, so subtract in power.
2. **Subtract in milliwatts.**
   $$\begin{aligned} P &= 10^{-9.0} - 10^{-9.3}\ \text{mW} \\ &= (1.0 - 0.50) \times 10^{-9}\ \text{mW} \\ &= 5.0 \times 10^{-10}\ \text{mW} \end{aligned}$$
3. **Back to dBm.**
   $$5.0 \times 10^{-10}\ \text{mW} = -93.0\ \text{dBm}$$
4. **How big the error is.** A signal right at the noise floor reads 3 dB high; one 10 dB above it reads only 0.4 dB high.

**Answer:** the signal's true power is −93.0 dBm.
:::
:::

::: check
given: N0 = -174 | -160 | -150; RBW = 100 | 10000 | 1e6
answer: N0 + 10*log(RBW)
unit: dBm
tolerance: 0.5%

## Noise of density {N0} dBm/Hz is viewed with a {RBW} Hz resolution bandwidth. What floor is displayed?

::: right
Right. $N_0 + 10\log_{10}\text{RBW}$ = {answer} dBm.
:::

::: misses
- [N0 + 20*log(RBW)] Noise power scales with bandwidth: 10 log.
- [any] Not yet. Add $10\log_{10}$ of the bandwidth.
:::
:::

::: check
given: k = 3 | 10 | 100 | 1000
answer: 10*log(k)
unit: dB
tolerance: 0.5%

## The RBW is made {k} times narrower. By how many dB does the noise floor fall?

::: right
Right. $10\log_{10}{k}$ = {answer} dB.
:::

::: misses
- [20*log(k)] Noise power, not voltage: 10 log.
- [any] Not yet. 10 log of the ratio.
:::
:::

::: check
given: S = 0.1 | 1 | 100; R = 0.3 | 3 | 30; k = 2 | 3
answer: k*S*1e6/(R*1e3)^2
unit: s
tolerance: 0.5%

## About how long does a {S} MHz span take at {R} kHz RBW, with k = {k}?

::: right
Right. $k \cdot \text{span}/\text{RBW}^2$ = {answer} s.
:::

::: misses
- [k*S*1e6/(R*1e3)] The sweep time goes as 1/RBW², not 1/RBW.
- [any] Not yet. $k \cdot \text{span}/\text{RBW}^2$.
:::
:::

::: check
given: Pc = -10 | 0 | 10; Ph = -55 | -40 | -62
answer: Ph - Pc
unit: dB
tolerance: 0.5%

## A carrier is at {Pc} dBm and its second harmonic at {Ph} dBm. What is the harmonic level in dBc?

::: right
Right. {answer} dBc.
:::

::: misses
- [Pc - Ph] dBc is relative to the carrier: harmonic minus carrier, a negative number.
- [any] Not yet. Subtract the carrier's dBm.
:::
:::

::: check
given: P = -30 | 7 | 27 | 30
answer: 10^(P/10)
unit: mW
tolerance: 0.5%

## How much power is {P} dBm?

::: right
Right. $10^{P/10}$ mW = {answer} mW.
:::

::: misses
- [10^(P/20)] Power uses 10 log: $10^{P/10}$.
- [any] Not yet. $10^{\text{dBm}/10}$ mW.
:::
:::

::: check
given: S = -40 | -80; NF = 5 | 15; RBW = 1000 | 100000
answer: S - (-174 + NF + 10*log(RBW))
unit: dB
tolerance: 0.5%

## A {S} dBm tone is viewed on an analyzer with a {NF} dB noise figure at {RBW} Hz RBW. What SNR does the display show?

::: right
Right. Signal minus floor: {answer} dB.
:::

::: misses
- [any] Not yet. The floor is $-174 + NF + 10\log_{10}\text{RBW}$.
:::
:::

::: check
kind: choice

## Two tones 5 kHz apart must be seen separately. Which RBW should you choose?

- [ ] 30 kHz, for a fast sweep
- [ ] 10 kHz
- [x] 1 kHz or less
- [ ] RBW doesn't affect resolution

::: misses
- [1] The tones would merge into one bump.
- [2] Still wider than the spacing.
- [4] Resolution is exactly what RBW sets.
:::
:::

::: check
kind: parts
given: NF = 6 | 10 | 22; RBW = 10 | 1000 | 100000

## A spectrum analyzer with a {NF} dB noise figure uses a {RBW} Hz resolution bandwidth.

::: part
answer: -174 + NF + 10*log(RBW)
unit: dBm
tolerance: 0.5%

### What noise floor does it show?

::: misses
- [any] $-174 + NF + 10\log_{10}\text{RBW}$.
:::
:::

::: part
answer: -174 + NF + 10*log(RBW/10)
unit: dBm
tolerance: 0.5%

### And with the RBW ten times narrower?

::: misses
- [any] 10 dB lower.
:::
:::
:::

::: check
kind: parts
given: D = -88 | -85; N = -93 | -90

## An analyzer reads {D} dBm on a weak signal with a {N} dBm noise floor.

::: part
answer: 10*log(10^(D/10) - 10^(N/10))
unit: dBm
tolerance: 0.5%

### What is the signal's true power?

::: misses
- [D] The display includes the noise.
- [any] Subtract the noise in milliwatts.
:::
:::

::: part
answer: D - 10*log(10^(D/10) - 10^(N/10))
unit: dB
tolerance: 1%

### By how much does the display overstate it?

::: misses
- [any] The difference.
:::
:::
:::

::: explain
## Why does narrowing the resolution bandwidth make weak signals easier to see?

::: model
A sinusoid puts all its power at one frequency, so any filter wide enough to include that frequency passes all of it, however narrow. Noise spreads its power evenly across frequency, so a filter passes noise power in proportion to its width. Narrowing the RBW therefore leaves the signal unchanged while cutting the noise that shares the display with it, lowering the floor by 10 dB per factor of 10. The cost is time: the narrower filter takes longer to respond, so the sweep must slow down as the square of the reduction.
:::
:::

::: practice

::: check
given: N0 = -170 | -155; RBW = 1000 | 30000
answer: N0 + 10*log(RBW)
unit: dBm
tolerance: 0.5%

## Floor for {N0} dBm/Hz at {RBW} Hz?

::: misses
- [any] $N_0 + 10\log_{10}\text{RBW}$.
:::
:::

::: check
given: Pc = 5 | -20; Ph = -35 | -70
answer: Ph - Pc
unit: dB
tolerance: 0.5%

## Harmonic at {Ph} dBm, carrier {Pc} dBm: dBc?

::: misses
- [any] Ph − Pc.
:::
:::

::: check
given: k = 3 | 10 | 30 | 100 | 300 | 1000
answer: 10*log(k)
unit: dB
tolerance: 0.5%

## Floor drop for a {k}× narrower RBW?

::: misses
- [any] 10 log k.
:::
:::
:::
