---
title: "Noise as a random signal: RMS and SNR in dB"
heading: How big is noise, and how much does it matter?
eyebrow: A11 · Lesson 32 · Noise, RMS and SNR
xp: 40
---

::: hook
Every measurement and every received signal comes with noise riding on it. Noise has no amplitude in the usual sense: it never repeats, and its biggest spike depends on how long you watch. So engineers measure it by its RMS value, which is its standard deviation, and compare signals to it by power. The ratio, the signal-to-noise ratio in decibels, decides whether a radio station is clear, an image grainy, or a measurement trustworthy.

::: play
- The trace is a sine wave of amplitude $A$ plus Gaussian noise with RMS value σ. The histogram shows where the samples fall.
- Set the noise to zero, then raise it slowly. At what SNR can you no longer make out the sine by eye?
- With $A = 0$, look at the noise alone. Roughly how far apart are its highest and lowest points, in units of σ?
:::
:::

```sim plot
view: random
x: v = -4..4 V
slider: A = 0..2 step 0.1 = 1 V
slider: s = 0..1 step 0.05 = 0.2 V
sample: A*sin(2*pi*i/40) + s*randn(1)
trials: 4000
bins: 60
trace: 200
measure: v^2 | name: P
readout: SNR = 10*log10((A^2/2)/(s^2 + 1e-12)) dB
readout: measured rms = sqrt(P) V
readout: theory √(A²/2 + σ²) = sqrt(A^2/2 + s^2) V
```

::: predict
## A signal of 1 V RMS has 0.1 V RMS of noise added. What is the SNR?

- [ ] 10 dB
- [x] 20 dB
- [ ] 40 dB
- [ ] 0.1 dB

::: reveal
20 dB. The voltage ratio is 10, and power goes as voltage squared, so the power ratio is 100: $10\log_{10}100 = 20$ dB, the same as $20\log_{10}10$. In the sim, 20 dB is a clean sine with fuzz on it; around 0 dB, signal and noise have equal power and the sine is hard to see; below that it disappears.
:::
:::

::: nameit
## Measuring noise

**RMS is the standard deviation.** For noise with zero mean, the RMS value $\sqrt{\overline{v^2}}$ equals the standard deviation σ. It's the right measure because noise power, $v_\text{rms}^2/R$, is what heats resistors and competes with signals.

**Peak values.** Gaussian noise has no true peak, but it rarely strays far: about 99.9% of the time it's within ±3.3σ. So engineers estimate **peak-to-peak ≈ 6.6 × RMS** from a scope trace, or work the other way: measure the visible peak-to-peak and divide by about 6 to get the RMS.

**Combining.** Independent noises add in power: $v_\text{total} = \sqrt{v_1^2 + v_2^2}$ (lesson 9's rule). A signal and independent noise add the same way, which is the sim's last readout. One consequence: a noise source a third the size of another adds only about 5% to the total, so in practice the biggest noise source dominates.

**Signal-to-noise ratio.**

$$\text{SNR} = \frac{P_\text{signal}}{P_\text{noise}} \qquad \text{SNR}_\text{dB} = 10\log_{10}\frac{P_s}{P_n} = 20\log_{10}\frac{V_{s,\text{rms}}}{V_{n,\text{rms}}}$$

Remember that a sine of amplitude $A$ has RMS $A/\sqrt2$. Some rough landmarks: a phone call is understandable at about 20 dB, FM radio sounds clean at 50 dB, CD audio reaches about 96 dB.

**Thermal noise.** Every resistor at temperature $T$ generates noise:

$$v_{n,\text{rms}} = \sqrt{4kTRB}$$

with Boltzmann's constant $k = 1.38 \times 10^{-23}$ J/K and $B$ the bandwidth you measure over. A 1 kΩ resistor at room temperature (290 K) over 10 kHz gives about 0.4 µV. It grows only as the square root of resistance and bandwidth, which is why low-noise designs keep resistances small and bandwidth no wider than needed.
:::

::: example
## What thermal noise does a 10 kΩ resistor make at 290 K over 20 kHz, and what peak-to-peak would a scope show?

::: solution
1. **Mean-square noise.**
   $$\begin{aligned} v_n^2 &= 4kTRB \\ &= 4(1.38 \times 10^{-23})(290) \\ &\quad \times (10^4)(2 \times 10^4) \\ &= 3.20 \times 10^{-12}\ \text{V}^2 \end{aligned}$$
2. **RMS noise.** Take the square root:
   $$v_n = 1.79\ \mu\text{V}$$
3. **Peak-to-peak.** A scope shows about 6.6 times the RMS:
   $$6.6 \times 1.79 = 11.8\ \mu\text{V}$$

**Answer:** 1.79 µV RMS, which a scope shows as about 11.8 µV peak-to-peak.
:::
:::

::: example
## A 1 V amplitude sine has 1 mV RMS of noise. What is the SNR? What if a second, independent 1 mV noise source is added?

::: solution
1. **Signal RMS.** The sine's RMS is 0.707 V.
2. **SNR.**
   $$\begin{aligned} \text{SNR} &= 20\log_{10}\frac{0.707}{0.001} \\ &= 57.0\ \text{dB} \end{aligned}$$
3. **Add the second source.** A second equal, independent noise doubles the noise power: the noise becomes 1.41 mV and the SNR drops by 3 dB, to 54.0 dB.

**Answer:** the SNR is 57.0 dB, and 54.0 dB with the second source.
:::
:::

::: example
## Two independent noise sources of 3 mV and 4 mV RMS add. What is the total?

::: solution
1. **Add in power.** Independent noises add in power, so take the root of the sum of squares:
   $$\sqrt{3^2 + 4^2} = 5\ \text{mV}$$
2. **Which source matters.** The larger source dominates: halving the 3 mV source would only bring the total to 4.3 mV, so effort belongs on the 4 mV one.

**Answer:** the total is 5 mV RMS.
:::
:::

::: check
given: Vs = 1 | 2 | 5; Vn = 1 | 10 | 50
answer: 20*log10(Vs/(Vn/1000))
unit: dB
tolerance: 0.5%

## A signal of {Vs} V RMS carries {Vn} mV RMS of noise. What is the SNR?

::: right
Right. $20\log_{10}(V_s/V_n)$ = {answer}.
:::

::: misses
- [10*log10(Vs/(Vn/1000))] That's a voltage ratio: use $20\log_{10}$, or square it first.
- [20*log10(Vs/Vn)] Convert millivolts to volts before taking the ratio.
- [any] Not yet. $\text{SNR}_\text{dB} = 20\log_{10}(V_{s,\text{rms}}/V_{n,\text{rms}})$.
:::
:::

::: check
given: A = 1 | 2 | 4; s = 0.1 | 0.2 | 0.3
answer: 10*log10((A^2/2)/s^2)
unit: dB
tolerance: 0.5%

## A sine of amplitude {A} V has Gaussian noise of {s} V RMS on it. What is the SNR?

::: right
Right. The sine's RMS is $\given{A}/\sqrt2$, so SNR $= 10\log_{10}\frac{\given{A}^2/2}{\given{s}^2}$ = {answer}.
:::

::: misses
- [20*log10(A/s)] Use the sine's RMS, $A/\sqrt2$, not its amplitude.
- [10*log10(A/s)] Compare powers: square the voltages.
- [any] Not yet. Signal power $A^2/2$, noise power $\sigma^2$.
:::
:::

::: check
given: P = 20 | 33 | 66 | 132
answer: P/6.6
unit: µV
tolerance: 2%

## Gaussian noise on a scope looks about {P} µV from its highest to its lowest point. Estimate its RMS value.

::: right
Right. Peak-to-peak is roughly 6.6 times the RMS: about {answer}.
:::

::: misses
- [P/2] Half the peak-to-peak is the peak, not the RMS. Gaussian noise's RMS is about a sixth of its peak-to-peak.
- [P/2.83] That's the rule for a sine wave. Noise has rare large spikes, so its RMS is a smaller fraction.
- [any] Not yet. RMS ≈ peak-to-peak ÷ 6.6.
:::
:::

::: check
given: R = 1k..1M E6 Ω; B = 1k | 10k | 100k | 1M
answer: sqrt(4*1.38e-23*290*R*B)
unit: V
tolerance: 1%

## What is the RMS thermal noise of a {R} resistor at 290 K, measured over {B} Hz?

::: right
Right. $\sqrt{4kTRB}$ = {answer}.
:::

::: misses
- [4*1.38e-23*290*R*B] That's the mean square, in V². Take the square root.
- [sqrt(1.38e-23*290*R*B)] The formula has a 4 in it: $\sqrt{4kTRB}$.
- [any] Not yet. $v_n = \sqrt{4kTRB}$ with $k = 1.38 \times 10^{-23}$ J/K.
:::
:::

::: check
given: n1 = 3 | 6 | 9; n2 = 4 | 8 | 12
answer: sqrt(n1^2 + n2^2)
unit: µV
tolerance: 0.5%

## An amplifier adds {n1} µV RMS of its own noise to {n2} µV RMS from its source. What is the total noise?

::: right
Right. Independent noises add in power: $\sqrt{\given{n1}^2 + \given{n2}^2}$ = {answer}.
:::

::: misses
- [n1 + n2] Noise voltages don't add directly: square, add, take the root.
- [any] Not yet. $\sqrt{v_1^2 + v_2^2}$.
:::
:::

::: check
kind: parts
given: a = 3 | 5; b = 4 | 12

## Independent noises of {a} mV and {b} mV RMS add.

::: part
answer: sqrt(a^2 + b^2)
unit: mV
tolerance: 0.5%

### What is the total?

::: misses
- [a + b] Independent noises add in power.
- [any] $\sqrt{a^2 + b^2}$.
:::
:::
:::

::: check
kind: derivation
vars: R = 100..1e6, B = 100..1e6

## A resistor $R$ at 290 K is measured over bandwidth $B$.

::: step
answer: sqrt(4*1.381e-23*290*R*B)

### What is its RMS thermal noise voltage?
:::

::: right
Right. $\sqrt{4kTRB}$: about 4 nV/√Hz for 1 kΩ.
:::
:::

::: explain
## Why do engineers describe noise by its RMS value rather than by its peak?

::: model
Random noise has no fixed peak: the longer you watch, the bigger the largest spike you'll eventually see, so a "peak" measurement depends on how long you looked. The RMS value is a stable average that comes out the same every time you measure long enough. It's also directly tied to power, which is what competes with the signal and what adds up when independent noise sources combine.
:::
:::

::: practice

::: check
given: r = 10 | 100 | 1000
answer: 10*log10(r)
unit: dB
tolerance: 0.5%

## A signal's power is {r} times the noise power. What is the SNR in dB?

::: misses
- [20*log10(r)] It's a power ratio: use $10\log_{10}$.
- [any] $10\log_{10}(P_s/P_n)$.
:::
:::

::: check
given: A = 1..9 int
answer: A/sqrt(2)
unit: V
tolerance: 0.5%

## What is the RMS value of a sine of amplitude {A} V?

::: misses
- [A] RMS is smaller than the peak for a sine.
- [any] $A/\sqrt2$.
:::
:::

::: check
given: snr = 20 | 30 | 40
answer: 10^(-snr/20)
unit: V
tolerance: 0.5%

## A 1 V RMS signal has an SNR of {snr} dB. What is the RMS noise?

::: misses
- [10^(-snr/10)] For a voltage, divide the dB by 20.
- [any] $V_n = V_s \cdot 10^{-\text{SNR}/20}$.
:::
:::
:::
