ScienceEngineering

Signal-to-Noise Ratio
calculator.

Get SNR in decibels from powers, voltages or dBm, plus ADC, PSNR and noise figure.

How it's worked out

Signal-to-noise ratio compares the wanted signal with the noise under it, almost always in decibels. NIST’s guide to the SI sets the two rules: a level of a power is 10 lg of the ratio, and a level of a field quantity such as voltage is 20 lg.

SNR\displaystyle \text{SNR}=10log10⁡PsPn\displaystyle {}= 10 \log_{10} \frac{P_{s}}{P_{n}}
SNR\displaystyle \text{SNR}=20log10⁡VsVn\displaystyle {}= 20 \log_{10} \frac{V_{s}}{V_{n}}

The two agree when both voltages are RMS across the same impedance, because power goes with voltage squared. That is why a ratio of 1,000 is 30 dB for powers but 60 dB for voltages. If both levels are already in dBm, or any shared decibel scale, the SNR is just the difference: −50 over −95 dBm is 45 dB.

An ideal converter driven by a full-scale sine is limited only by its steps. TI’s application report SLAA323A gives its SNR, and the effective number of bits, ENOB, comes from putting a measured SINAD (noise and distortion together) in place of the SNR. Oversampling by a factor k adds 10 log k on top.

SNR\displaystyle \text{SNR}=6.02N+1.76 dB\displaystyle {}= 6.02N + 1.76\ \text{dB}
ENOB\displaystyle \text{ENOB}=SINAD−1.766.02\displaystyle {}= \frac{\text{SINAD} - 1.76}{6.02}

PSNR compares the largest pixel value with the mean squared error between an image and its reference, as MathWorks’ psnr defines it. For 8-bit images the peak is 255, so an error of 100 gives 28.13 dB.

PSNR\displaystyle \text{PSNR}=10log10⁡peak2MSE\displaystyle {}= 10 \log_{10} \frac{\text{peak}^{2}}{\text{MSE}}

Noise figure is how much a stage worsens the SNR passing through it. Keysight’s application note 57-1 gives the cascade equation: each stage’s noise factor F, less one, is divided by all the gain ahead of it. F and G are linear ratios, and NF is 10 log F.

F\displaystyle F=F1+F2−1G1+F3−1G1G2\displaystyle {}= F_{1} + \frac{F_{2} - 1}{G_{1}} + \frac{F_{3} - 1}{G_{1} G_{2}}

Worked examples

Mia measures hum on a pedal output

Mia’s scope shows 1 V RMS of guitar signal and 2 mV RMS of hum on the same output. These are voltages, so she uses 20 log.

20log10⁡10.002\displaystyle 20 \log_{10} \frac{1}{0.002}=53.98 dB\displaystyle {}= 53.98\ \text{dB}

As powers the signal is 250,000 times the hum. Turning the signal up to 2 V with the hum unchanged would give 60 dB, 6.02 dB more for twice the voltage.

Open this example in the tool

Raj checks a 24-bit audio interface

A perfect 24-bit converter would reach 146.24 dB. Raj’s interface lists a measured SINAD of 120 dB, so it behaves like this many bits.

ENOB\displaystyle \text{ENOB}=120−1.766.02\displaystyle {}= \frac{120 - 1.76}{6.02}=19.64\displaystyle {}= 19.64

That is about 19.6 bits, still well above the 98.08 dB an ideal 16-bit converter can manage. The missing bits are lost to the analog noise and distortion of the real part.

Open this example in the tool

Ken adds a preamp ahead of a mixer

Ken’s mixer has a 10 dB noise figure. Alone it would take 10 dB off the SNR. He puts a preamp with a 1 dB noise figure and 20 dB of gain in front.

The preamp’s noise factor is 1.259. The mixer’s noise factor of 10, less one, is divided by the preamp’s gain of 100, so it adds only 0.09. The chain’s noise figure is 1.3 dB. With only 6 dB of preamp gain it would be 5.46 dB, which is why the first stage needs both low noise and enough gain.

Open this example in the tool

Reading your result

Ten decibels is ten times the power ratio. Twenty is 100 times and thirty is 1,000 times. Doubling the signal power adds 3.01 dB and doubling its voltage adds 6.02 dB, which is why the curve flattens as the signal grows.

A noise figure comes straight off the SNR. Keysight’s example has a signal 40 dB above the noise going into an amplifier with a 10 dB noise figure, so it comes out 30 dB above. Gain after that point lifts signal and noise together and does not change the SNR.

The converter figure is a ceiling. TI notes that the input must fill the converter’s range: an ideal 12-bit part gives 74 dB only at full scale. Run the rule backward and 74 dB needs at least 12 bits.

PSNR depends on the bit depth. Compare images only at the same depth. For 8-bit images a PSNR of 40 dB allows a mean squared error of about 6.5.

Common mistakes

Using 10 log on voltages. That halves the answer in dB. Use 20 log for RMS voltages and 10 log for powers.

Measuring the noise in a different bandwidth. Thermal noise power grows with bandwidth; Keysight’s note says twice the bandwidth lets twice the noise power through. Measure signal and noise in the same bandwidth.

Adding decibels from different scales. dBm, dBV and dBFS have different references. Subtract only levels on the same scale.

Putting gains in dB into the cascade equation. F and G there are plain ratios. Convert first: 20 dB is 100 and 10 dB is 10.

Questions people ask

The decibel is defined on power. Power goes with voltage squared across the same impedance, and the square comes out of the log as a factor of 2. So 10 log of the power ratio is the same as 20 log of the voltage ratio.

Sources