SNR Calculator Formula
Understand the math behind the snr calculator. Each variable explained with a worked example.
Formulas Used
SNR
snr_db = 10 * log10(signal_power_mw / noise_power_mw)SNR (linear)
snr_linear = signal_power_mw / noise_power_mwNoise as % of Signal
noise_fraction_pct = noise_power_mw / signal_power_mw * 100Variables
| Variable | Description | Default |
|---|---|---|
signal_power_mw | Signal Power(mW) | 100 |
noise_power_mw | Noise Power(mW) | 0.1 |
How It Works
Signal-to-Noise Ratio
SNR compares the level of a desired signal to the background noise level. Higher SNR means a cleaner signal.
Formula
SNR (dB) = 10 x log10(P_signal / P_noise)
For voltage measurements: SNR (dB) = 20 x log10(V_signal / V_noise)
Reference Points
Worked Example
Signal power of 100 mW with noise power of 0.1 mW.
signal_power_mw = 100noise_power_mw = 0.1
- 01SNR linear: 100 / 0.1 = 1000
- 02SNR dB: 10 x log10(1000) = 30.0 dB
- 03Noise fraction: 0.1 / 100 x 100 = 0.1%
Ready to run the numbers?
Open SNR Calculator