Shannon Channel Capacity Calculator
Find the maximum error free data rate of a noisy channel from bandwidth and signal to noise ratio.
What it does
The Shannon Hartley theorem gives the maximum rate at which information can be sent over a communication channel with a specified bandwidth and signal to noise ratio, with arbitrarily small error.
This tool takes the bandwidth in hertz and the signal to noise ratio in decibels. It converts the ratio to a linear power ratio and applies C equal to B times log base two of one plus S over N.
The page opens with a 3000 hertz telephone bandwidth and a 30 decibel signal to noise ratio. The linear ratio is 1000 and the capacity is about 29,902 bits per second.
The theorem gives an upper bound, not a practical modem rate, and says nothing about how to construct a code that reaches the limit. It is a cornerstone of information theory.
Spectral efficiency, the ratio of capacity to bandwidth, is reported alongside the absolute capacity.
How to use
- Enter the channel bandwidth in hertz.
- Enter the signal to noise ratio in decibels.
- Read the channel capacity in bits per second.
- Check the linear signal to noise ratio.
- Use spectral efficiency to compare channels of different widths.
- Raise the signal to noise ratio to see capacity increase logarithmically.
Formula
- B
- Channel bandwidth in hertz.
- S/N
- Ratio of average signal power to average noise power.
- C
- Capacity in bits per second.
Decibels use a logarithmic power scale, so the linear ratio is ten to the power of the decibel value divided by ten. The logarithm base two then expresses capacity in bits rather than natural units.
Worked example
Example: 3 kHz channel at 30 dB
The page opens with bandwidth 3000 Hz and signal to noise ratio 30 dB.
- Convert decibels to a linear ratio: ten to the power of 30 divided by 10 is 1000.
- Add one to get 1001.
- Take log base 2 of 1001, about 9.9672.
- Multiply by 3000 hertz to get about 29,902 bits per second.
- Spectral efficiency is 29,902 divided by 3000, about 9.967 bits per second per hertz.
- The tool reports capacity_bps 29,902 bit/s.
Reference table
| Bandwidth | SNR (dB) | Linear ratio | Capacity |
|---|---|---|---|
| 3,000 Hz | 30 | 1,000 | 29,902 bit/s |
Limits
- Assumes additive white Gaussian noise.
- Gives a theoretical upper bound, not a practical data rate.
- Bandwidth and signal to noise ratio must be positive in linear terms.
- Does not account for coding overhead or implementation losses.
Common mistakes
- Using the decibel number directly as the linear ratio.
- Using log base 10 instead of log base 2.
- Forgetting the plus one inside the logarithm.
- Confusing capacity with actual throughput.
- Entering bandwidth in kilohertz without converting.
Try it yourself
Quick checks. Answers sit tucked under each question.
3 kHz channel at 30 dB. Capacity?
About 29,902 bit/s.
What is the linear ratio at 30 dB?
1000.
What is spectral efficiency here?
About 9.967 bit/s/Hz.
Questions
What is channel capacity?
The maximum rate of reliable communication over a noisy channel.
What is the formula?
Bandwidth times log base 2 of one plus the linear signal to noise ratio.
How do I convert decibels?
Ten to the power of the decibel value divided by ten.
Can a modem reach the capacity?
It is an upper bound; practical systems operate below it.
What is spectral efficiency?
Capacity divided by bandwidth.
Who discovered the theorem?
Claude Shannon, building on Hartley's work.
Sources
- Princeton University, information channel capacity notes
- Kansas State University, Shannon Hartley law notes
- Stanford University, physical and link layers notes