TL;DR
Every channel, whether a phone line, a radio link or a disk, adds some noise, so the bits that come out are not always the bits that went in. Channel capacity is the largest rate at which you can send information through such a channel and still recover it with an error probability that can be made as small as you like. It is measured in bits per channel use (or bits per second when the channel is timed), and it is the largest Mutual Information between input and output over every way of choosing the input.
Where you'll see it: in deciding how fast a Wi-Fi link, a mobile network or a deep-space probe can possibly go, and in the target that modern error-correcting codes are designed to approach.
Intuition
Talking in a noisy room
Imagine talking to a friend across a loud room. If you speak slowly and clearly, almost every word gets through. If you speak very fast, the noise swallows syllables and your friend guesses wrong. Something in between is possible: you can speak fairly fast if you choose words that are hard to confuse with one another and repeat the important parts.
Channel capacity is the exact answer to "how fast can I speak so that, with the right choice of words, my friend still gets everything?" For the room, the answer depends on how loud you are compared with the noise and on how much the noise scrambles what you say.
Why engineers needed a limit
Before 1948, most engineers believed that noise put a hard limit on accuracy: the faster you sent, the more mistakes you made, and reducing mistakes meant slowing down. Claude Shannon showed something different. Below a certain rate, errors can be pushed as low as you want by coding over longer blocks. Above that rate, no code can work. The boundary between the two is the capacity. It turned "how good can a link be?" from a matter of opinion into a number you can compute from the channel alone.
The picture of the whole system is a pipeline. The message is encoded, sent through a noisy channel, and decoded. Capacity is the most information that can pass the middle step.
flowchart LR M[message] --> E[encoder] E --> X[input X] X --> C[noisy channel] C --> Y[output Y] Y --> D[decoder] D --> M2[estimated message]
The plot shows the answer for a simple channel that flips each bit with probability . When is small, almost all of the bit survives. When is one half, the output is pure noise and nothing gets through.
- C in bits per use
The math
Definition
Let a channel be described by its input , its output , and the conditional probabilities that the channel produces output when it is fed input . These probabilities are fixed by the physics of the channel and cannot be changed. What the sender can choose is the input distribution .
The capacity is
where is the Mutual Information between input and output, computed with the chosen and the channel's fixed . The maximum is over all input distributions allowed by the channel's constraints, such as a limit on power or on the alphabet. The unit is bits per channel use when the logarithm is base 2.
The coding theorem
Shannon's noisy-channel coding theorem gives the meaning of . Let be the rate of a code, meaning the number of message bits carried per channel use.
- If , there exist codes of block length whose probability of decoding error goes to zero as grows.
- If , the probability of error stays bounded away from zero for every code, however long the block.
Capacity is therefore a sharp threshold. The proof of the first part uses random codes and a counting argument; the second part follows from an inequality on the information a decoder can extract. Neither is needed to use the formula, but both explain why the number matters.
The binary symmetric channel
Take the channel that flips each bit independently with probability . The conditional entropy of the output given the input is the entropy of the flip itself:
Then
The output is one bit at most, , and equality holds when the output is a fair coin. That happens when the input is also a fair coin, because the flip probability does not change a fair coin's odds. So the maximum is
The Gaussian channel
Many real channels add continuous noise. Let the output be , where the noise is Gaussian, , and the sender must keep its average power at most . The capacity is
The ratio is the signal-to-noise ratio. Sketch of the argument: , where is differential entropy. Among all distributions with a given variance, the Gaussian has the largest differential entropy. The output variance is at most , so is at most the entropy of a Gaussian with variance , and subtracting leaves the formula above.
When the channel has bandwidth hertz and the signal and noise powers are and , the Shannon–Hartley form gives the capacity in bits per second:
Both forms say the same thing. More bandwidth or more signal power raises capacity, but the logarithm means each extra unit of power buys less and less.
Worked examples
- Use the formula with .
- Compute the two terms of the binary entropy. .
- .
- Add them: bits.
- Subtract from one: bits per use.
Interpretation: no matter how cleverly you code, a long message over this channel can carry at most about 0.28 bits of information for every bit you send. Sending 1,000 channel bits could in principle deliver about 278 bits of message with vanishing error, and never more. Sending raw bits delivers 80% of them correctly, but you do not know which 80%. The gap between that and the 0.28 bits of true information per use is the price of that uncertainty, and coding is how you approach the limit despite it.
Take a voice channel with bandwidth hertz and a signal-to-noise ratio of 30 dB.
- Convert 30 dB to a power ratio: .
- Compute the logarithm: .
- Multiply by the bandwidth: bits per second.
Interpretation: about 30 kilobits per second is the most this line can carry reliably, whatever the modem. The same back-of-envelope limit explains why voice-band dial-up modems stalled in the tens of kilobits per second, and why the gains after that came from changing the channel, not from better modulation alone.
Suppose a Gaussian channel has signal power three times the noise power, so . Then bit per use. Cutting the power to a third, , gives bits per use. Going from ratio 1 to ratio 3 tripled the signal but only doubled the capacity, which is the logarithm at work.
Tradeoffs and failure modes
Capacity is an upper bound, and it assumes a model that is correct and stable. It helps to know where that assumption breaks.
| Situation | What goes wrong | Better choice |
|---|---|---|
| Sending above | Error probability stays bounded away from zero, however good the code | Lower the rate, or improve the channel |
| Sending just below with short blocks | Long blocks are needed for the error to vanish, so latency grows | Use a long modern code such as LDPC, turbo or polar codes, sized to the latency budget |
| Assuming the best input distribution is always easy | The optimal may be unusual, such as water-filling power across frequencies | Compute the optimal input for the channel instead of assuming a uniform or Gaussian one |
| Channel quality changes over time, as in fading | A single number misleads, because the capacity itself varies | Use outage or average capacity over the fading states |
| The noise model is wrong | The formula is correct for the model but the link performs differently | Measure the channel and refit the model before trusting the bound |
The theorem is asymptotic: it describes what happens as the block length goes to infinity. Real systems have finite delay and finite computation, so achievable rates sit below capacity. The gap is small for good codes, and closing it was one of the central engineering projects of coding theory.
History
Ralph Hartley, in a 1928 paper, measured information as the logarithm of the number of distinguishable messages, which gave the first rule for how much a channel could carry. Claude Shannon extended that idea in "A Mathematical Theory of Communication," published in the Bell System Technical Journal in 1948. In it he defined entropy as a measure of information, introduced mutual information, and proved the noisy-channel coding theorem. The formula for the Gaussian channel in that paper is the one later named the Shannon–Hartley theorem.
Shannon's proof used random codes, which showed that good codes exist without giving a way to build them. For decades, practical codes fell well short of the bound. The gap began to close in the early 1990s, when turbo codes came close to capacity, and it closed further with the rediscovery of low-density parity-check codes and, in 2009, polar codes, which were proved to reach capacity for many channels. Those codes now run in mobile networks and storage devices, which is why the bound still guides design.
Check yourself
QuestionIn one sentence, what does channel capacity measure, and what quantity is maximized to compute it?Show answer
Channel capacity is the highest rate, in bits per channel use, at which information can be sent through a noisy channel with error probability that can be made arbitrarily small. It is computed by maximizing the mutual information over all input distributions the channel allows, while the channel's own transition probabilities stay fixed.
QuestionA binary symmetric channel flips each bit with probability 0.1. What is its capacity in bits per use?Show answer
Compute bits. Then bits per use. So a long code can deliver about 531 message bits per 1,000 channel bits, and no code can do better.
QuestionWhy can a code with rate above capacity not reach an arbitrarily small error, even with a very long block?Show answer
Rate above capacity means the decoder must distinguish more messages than the channel output can separate reliably. The output carries at most bits per use about the input, so the remaining uncertainty about the message cannot be resolved by a decoder, however long the block. Shannon's converse makes this precise: the error probability is bounded away from zero for every code whose rate exceeds .
QuestionA Wi-Fi style link has 20 MHz of bandwidth and a signal-to-noise ratio of 20 dB. What is its Shannon capacity in bits per second, and what does the number mean in practice?Show answer
A 20 dB ratio is . Then million bits per second. This is an upper bound for a single link with Gaussian noise. Real links are lower because of protocol overhead, interference, and imperfect codes, but the number shows the ceiling that engineers are working under.