Calculate Shannon channel capacity from bandwidth and SNR in dB or as a ratio, or the Nyquist bit rate from signal levels, and solve for bandwidth or SNR.

SNR as a plain power ratio (S/N), not dB.

Optional settings

Calculator Functions

FunctionWhat it doesWhat it requires
Shannon capacity — linear SNRFinds the highest error-free bit rate of a noisy channelRequires the bandwidth and the signal-to-noise ratio as a plain power ratio
Shannon bandwidth — linear SNRFinds the bandwidth a target bit rate needsRequires the bit rate and the signal-to-noise ratio as a plain power ratio
Shannon linear SNRFinds the signal-to-noise ratio a bit rate needs in a given bandwidthRequires the bandwidth and the bit rate
Shannon capacity — SNR in dBFinds the highest error-free bit rate from an SNR in decibelsRequires the bandwidth and the SNR in dB
Shannon bandwidth — SNR in dBFinds the bandwidth a target bit rate needs from an SNR in decibelsRequires the bit rate and the SNR in dB
Shannon SNR in dBFinds the SNR in decibels a bit rate needs in a given bandwidthRequires the bandwidth and the bit rate
Shannon spectral efficiencyFinds the capacity per hertz of bandwidthRequires the SNR in dB
Nyquist noiseless bit rateFinds the bit rate of a noise-free channel with a fixed number of signal levelsRequires the bandwidth and the number of signal levels
Nyquist noiseless bandwidthFinds the bandwidth a noise-free channel needs for a target bit rateRequires the bit rate and the number of signal levels
Nyquist minimum signal levelsFinds the fewest signal levels that carry a bit rate in a given bandwidthRequires the bandwidth and the bit rate

Bandwidth can be entered in Hz, kHz or MHz, and bit rate in bps, Kbps, Mbps or Gbps, with decimal prefixes (1 Kbps = 1,000 bps). Each Shannon result also lists the spectral efficiency in bits/s/Hz and the SNR in its other form, linear or dB.

Channel Capacity Formulas

C = B × log2(1 + S/N) [1]
CChannel capacity (bits per second)
BBandwidth of the channel (Hz)
S/NSignal power divided by noise power, as a plain ratio and not in dB

This is the Shannon limit for a band-limited channel with white Gaussian noise. With suitable coding, data can be sent at any rate below C with as few errors as desired, and no coding scheme can do that above C [1].

Shannon capacity — linear SNR

The main formula applies directly. A 1,000 Hz channel with S/N = 10 has a capacity of 1,000 × log2(11) = 3,459.4 bps.

Shannon bandwidth — linear SNR

B = C ÷ log2(1 + S/N)

A bit rate of 10,000 bps at S/N = 15 needs 10,000 ÷ log2(16) = 10,000 ÷ 4 = 2,500 Hz.

Shannon linear SNR

S/N = 2C ÷ B − 1

Sending 4,000 bps through 1,000 Hz needs S/N = 24 − 1 = 15.

Shannon capacity — SNR in dB

S/N = 10SNRdB ÷ 10

The decibel value is converted to a power ratio, then the main formula applies. A 1 MHz channel at 20 dB has S/N = 100, so its capacity is 1,000,000 × log2(101) = 6,658,211.5 bps, or about 6.66 Mbps. Negative dB values are valid: they mean the noise is stronger than the signal.

Shannon bandwidth — SNR in dB

The SNR is converted from dB as above, then B = C ÷ log2(1 + S/N). A 1 Mbps link at 30 dB (S/N = 1,000) needs 1,000,000 ÷ log2(1,001) = 100,328.8 Hz.

Shannon SNR in dB

SNRdB = 10 ×
log10(2C ÷ B − 1)

Sending 4,000 bps through 1,000 Hz needs 10 × log10(15) = 11.76 dB.

Shannon spectral efficiency

η = log2(1 + S/N)

η is the capacity per hertz, in bits/s/Hz. At 10 dB, S/N = 10 and η = log2(11) = 3.4594 bits/s/Hz.

Nyquist noiseless bit rate

C = 2 × B × log2(M) [1]

M is the number of distinct signal levels, a whole number of 2 or more. A band of B hertz carries 2 × B independent amplitude values each second, and each value picked from M levels carries log2(M) bits [1]. A 3,000 Hz channel with 4 levels gives 2 × 3,000 × 2 = 12,000 bps.

Nyquist noiseless bandwidth

B = C ÷ (2 × log2(M))

A bit rate of 12,000 bps with 4 levels needs 12,000 ÷ (2 × 2) = 3,000 Hz.

Nyquist minimum signal levels

M = 2C ÷ (2 × B), rounded up

Sending 20,000 bps through 3,000 Hz gives 23.333 = 10.08, which rounds up to 11 levels. The result is never less than 2.

Limits of This Estimate

  • The Shannon functions give a theoretical ceiling for white Gaussian noise, not a measured throughput. Real links run below it, and reaching it takes long, complex codes [1].
  • S/N is a ratio of powers. An amplitude or voltage ratio has to be squared first, and a dB figure has to be entered in the dB functions.
  • The Nyquist functions assume no noise at all, so the bit rate rises without limit as levels are added. On a real channel, noise limits how many levels can be told apart.
  • Interference, fading and distortion that is not white Gaussian noise are outside both models.

Sources

  1. C. E. Shannon, Communication in the Presence of Noise, Proceedings of the IRE, 1949 (reprinted in Proceedings of the IEEE, 1998): capacity formula, its meaning as a limit, and the count of 2B amplitude values per second