On this page
In July 1948 Claude Shannon published A Mathematical Theory of Communication in the Bell System Technical Journal. It answered a simple question: how fast can you send data down a line that keeps corrupting it? The answer is one number per channel, its capacity. If you have read our explainer on Shannon entropy and why a fair coin carries 1 bit, you already have the main tool you need.
What is channel capacity?
Channel capacity is the tightest upper bound on the rate at which information can be sent over a channel with an arbitrarily low error rate (Shannon–Hartley theorem, Wikipedia).
Shannon's noisy-channel coding theorem has two halves. If your rate R is below the capacity C, some coding scheme makes the probability of error at the receiver as small as you like. If R is above C, no scheme can do it: errors grow and the extra rate carries no useful information (same source).
So noise does not force errors on you; it caps how fast you can go without them.
How do you calculate binary symmetric channel capacity?
A binary symmetric channel takes in a 0 or a 1 and flips it with a crossover probability p, the same in both directions (binary symmetric channel, Wikipedia). Its capacity is C = 1 − H(p) bits per use, where H(p) = p log₂(1/p) + (1 − p) log₂(1/(1 − p)) is the binary entropy function (same source).
Worked example for p = 0.1:
First term: 0.1 × log₂(10) = 0.1 × 3.3219 = 0.3322.
Second term: 0.9 × log₂(1/0.9) = 0.9 × 0.1520 = 0.1368.
Add them: H(0.1) = 0.4690 bits.
Capacity: C = 1 − 0.4690 = 0.531 bits per channel use.
With long enough codes, 1,000 uses of this channel can carry close to 531 bits of message reliably, not 900. Nine in ten bits arrive correctly, but the receiver does not know which nine; that uncertainty, 0.469 bits per bit, is what the noise takes away.
Why can't you just repeat each bit?
Repetition is the obvious fix. On the same p = 0.1 channel (binary symmetric channel, Wikipedia), send each bit three times and take a majority vote:
Three copies: the vote fails if 2 or 3 copies flip, so the error is 3(0.1)²(0.9) + (0.1)³ = 0.028, at a rate of 1/3 bit per use.
Five copies: the vote fails if 3 or more flip, giving about 0.0086, at a rate of 1/5.
Repetition buys low error only by driving the rate to zero. Shannon proved that any rate below 0.531 can have its error driven towards zero by coding long blocks of bits together, but his proof did not build such a code. Forney's concatenated codes in 1966 were the first explicit construction to reach the capacity of this channel (binary symmetric channel, Wikipedia).
How does the Shannon–Hartley formula apply to a phone line?
For an analog channel with bandwidth B hertz and Gaussian noise, the capacity is C = B log₂(1 + S/N) bits per second, where S/N is the signal-to-noise power ratio as a plain ratio, not in decibels (Shannon–Hartley theorem, Wikipedia).
Take a telephone channel 4 kHz wide with a 20 dB signal-to-noise ratio, the example the same page uses:
Convert decibels: S/N = 10^(20/10) = 100.
Take the log: log₂(101) = 6.658.
Multiply: C = 4,000 × 6.658 ≈ 26.6 kbit/s.
Raising the line to 30 dB (S/N = 1,000) gives 4,000 × log₂(1,001) ≈ 39.9 kbit/s. Keeping 20 dB but doubling the bandwidth to 8 kHz gives about 53.3 kbit/s. Capacity grows in proportion to bandwidth (at fixed S/N) but only with the logarithm of signal power.
The formula also works when the signal is weaker than the noise. The same page works a 1 MHz channel at −30 dB (S/N = 0.001), gets about 1,443 bit/s and calls these values typical of GPS ranging signals; see why GPS works with a signal weaker than the noise. When a radio link fades as you move a few centimetres, S/N falls, and so does the ceiling.
A checklist for any capacity problem
Name the channel: discrete bits (use 1 − H(p)) or a bandwidth with noise power (use B log₂(1 + S/N)).
Check the units: bits per use (binary symmetric channel) or bits per second (Shannon–Hartley).
Convert decibels to a ratio before taking any logarithm.
Check the endpoints: p = 0 gives 1 bit (a perfect wire) and p = 0.5 gives 0 (the output is a coin toss).
Read the result as a ceiling, not a recipe: it says what is possible, not which code achieves it.
If entropy or logarithms are the step where you stall, the Fermi Concept Library covers every concept in physics, chemistry, biology, mathematics and computing. To practise, the Fermi Problem Library has a step-by-step solver that explains the reasoning.
Try this one yourself: what is the capacity at p = 0.2? (Answer: about 0.278 bits per use.)



