Shannon Capacity Calculator
Find the maximum error free data rate of a channel from its bandwidth and signal to noise ratio.
What it does
The Shannon capacity of a communication channel is the highest rate at which information can be sent with an arbitrarily low error rate, given the channel bandwidth and the noise present. Claude Shannon derived the result in 1948, and it still sets the benchmark for every modem, radio link and storage channel.
The formula has two inputs. Bandwidth is the range of frequencies available, measured in hertz. The signal to noise ratio compares signal power with noise power. The logarithm is base two, which is why the result comes out in bits per second rather than natural units.
Noise is usually quoted in decibels. A decibel value is logarithmic, so it cannot go straight into the capacity equation. The tool first converts decibels to a linear power ratio with ten raised to the SNR in decibels divided by ten. At 10 dB the linear ratio is 10, at 0 dB it is 1 and at 20 dB it is 100.
Adding bandwidth and improving signal quality both raise capacity, but not in the same way. Doubling bandwidth roughly doubles capacity. Adding a fixed number of decibels multiplies the linear signal to noise ratio, which raises the logarithm by a constant amount. That is why very high SNR values give diminishing returns.
The result assumes a band limited channel with additive white Gaussian noise and an average power constraint. Real systems lose capacity to modulation overhead, coding overhead, interference, fading and hardware limits. Treat the number as an upper bound rather than a speed you can expect to measure.
How to use
- Enter the channel bandwidth in hertz.
- Enter the signal to noise ratio in decibels.
- Read the linear ratio implied by the decibel value.
- Read the spectral efficiency in bits per second per hertz.
- Read the channel capacity in bits per second and in megabits per second.
- Compare different bandwidth and SNR combinations to see which change helps most.
Formula
- C
- Channel capacity in bits per second.
- B
- Channel bandwidth in hertz.
- S/N
- Linear signal to noise power ratio, dimensionless.
- SNR_dB
- Signal to noise ratio in decibels.
The decibel conversion is the power form, 10 raised to decibels over ten. Using the voltage form, 20 raised to decibels over twenty, gives the same result when both powers are measured across the same impedance. The tool reports capacity with thousands separators and rounds only for display.
Worked example
Example: 1 MHz bandwidth at 10 dB SNR
Defaults: bandwidth 1,000,000 Hz and SNR 10 dB.
- Convert decibels to a linear ratio: 10^(10 / 10) = 10.
- Add one: 1 + 10 = 11.
- Take the base two logarithm: log2(11) = 3.459.
- Multiply by bandwidth: 1,000,000 x 3.459 = 3,459,432 bps.
- Convert to megabits: 3,459,432 / 1,000,000 = 3.459 Mbps.
- Spectral efficiency is the same logarithm, 3.459 bits/s/Hz.
Reference table
| SNR | Linear ratio | Capacity |
|---|---|---|
| 0 dB | 1 | 1.000 Mbps |
| 10 dB | 10 | 3.459 Mbps |
| 20 dB | 100 | 6.658 Mbps |
| 30 dB | 1,000 | 9.967 Mbps |
Limits
- Assumes additive white Gaussian noise and a band limited channel.
- Does not include interference, fading, overhead or hardware impairment.
- Requires a linear power ratio, so a decibel input is converted internally.
- Is an ideal upper bound, not a guaranteed application throughput.
Common mistakes
- Putting the decibel number directly into the logarithm as if it were linear.
- Using megahertz in the bandwidth field when the tool expects hertz.
- Confusing bits per second with bytes per second.
- Expecting real network speed to reach the Shannon limit.
- Using a voltage decibel formula with power measurements.
Try it yourself
Quick checks. Answers sit tucked under each question.
Raise the SNR to 20 dB with the same bandwidth. What does the tool show?
The linear ratio is 100 and log2(101) is 6.658, so the capacity is 6,658,211 bps or 6.658 Mbps with 6.658 bits/s/Hz efficiency.
What happens at 0 dB SNR?
The linear ratio is 1, log2(2) is 1, so the capacity is exactly 1,000,000 bps, 1.000 Mbps and 1.000 bit/s/Hz.
Is a 40 dB link twice the capacity of a 20 dB link?
No. The linear ratio rises from 100 to 10,000, but the logarithm grows only from about 6.66 to about 13.29 bits per hertz, so capacity less than doubles.
Questions
What is channel capacity?
It is the highest rate at which information can be sent over a channel with an arbitrarily small error probability, given bandwidth and noise.
Why is the logarithm base two?
Because information is measured in bits. A base two logarithm converts the power ratio into bits per second per hertz.
How do I convert decibels to a linear ratio?
For powers, compute ten raised to the decibel value divided by ten. The tool does this for you.
Does a higher SNR always help?
Yes, but with diminishing returns because capacity grows with the logarithm of the linear ratio.
Can a real modem reach this limit?
It can approach it with good coding, but overhead, interference and hardware mean practical rates stay below the bound.
Who derived the formula?
Claude Shannon published it in 1948 in A Mathematical Theory of Communication.
Sources
- University of Southampton, ELEC1011 Channel Coding lecture
- Claude E. Shannon, A Mathematical Theory of Communication, 1948
- Worcester Polytechnic Institute, ECE 2305 dB and dBm notes