---
title: Bandwidth efficiency and the Shannon limit
heading: The plane of spectral efficiency against Eb/N0, Shannon's capacity bound, where real modulations sit, the gap to capacity, and the −1.6 dB floor
eyebrow: S8 · Lesson 21 · Bandwidth efficiency and the Shannon limit
xp: 50
---

::: hook
Every modulation scheme so far has been a point in a trade-off: bits per second per hertz on one side, energy per bit on the other. Shannon's 1948 capacity theorem draws the line that no scheme can cross. For any spectral efficiency it gives the least Eb/N0 at which error-free communication is possible at all, and below about −1.6 dB nothing works however much bandwidth is spent. Plotting QAM, PSK and orthogonal signaling against that line shows how far uncoded modulation falls short, about 8 to 10 dB at practical error rates, and that gap is exactly what error-correcting codes go after.
:::

::: play
- Shannon's bound, the least $E_b/N_0$ for reliable communication at spectral efficiency η, $\frac{E_b}{N_0} = \frac{2^\eta - 1}{\eta}$ (curve), with the uncoded requirements of common schemes at $P_b = 10^{-5}$ (points; Nyquist pulses, so QAM's η is $\log_2M$).
- QAM points sit 7.5 to 8 dB to the right of the bound; orthogonal FSK reaches low efficiencies but stays 7 dB or more from the curve there.
- Everything to the left of the curve is impossible. Modern codes (lesson 36) come within a decibel of it.
:::
:::

```sim plot
view: graph
x: n = 0.1..10 log
y: E = -3..25 dB
plot: 10*log((2^n - 1)/n) | samples: 400 | label: Shannon bound
point: 2, 9.59 | label: QPSK
point: 4, 13.43 | label: 16-QAM
point: 6, 17.79 | label: 64-QAM
point: 8, 22.5 | label: 256-QAM
point: 3, 12.97 | label: 8-PSK
point: 0.5, 7.44 | label: 16-FSK
point: 0.1875, 6.17 | label: 64-FSK
```

::: predict
## QPSK carries 2 bits/s/Hz and needs 9.6 dB for 10⁻⁵ without coding. What's the least Eb/N0 that any scheme at 2 bits/s/Hz could use?

- [ ] 9.6 dB
- [ ] 6.0 dB
- [x] 1.76 dB
- [ ] −1.6 dB

::: reveal
$\frac{2^2 - 1}{2}$ = 1.5, or 1.76 dB. Uncoded QPSK is 7.8 dB away from that limit at 10⁻⁵. Strong error-correcting codes recover most of it: modern LDPC-coded QPSK at rate 1/2 or so works within a decibel or two of the bound for its efficiency.
:::
:::

::: nameit
## Capacity

For a band-limited channel with additive white Gaussian noise,

$$C = B\log_2\left(1 + \frac{S}{N_0B}\right)\text{ bits/s}$$

Rates below C can be sent with arbitrarily small error probability (using long enough codes); rates above it can't.

## The bound in the efficiency plane

Writing η = R/B and $S = E_bR$, operating at R = C gives

$$\frac{E_b}{N_0} = \frac{2^\eta - 1}{\eta}$$

the boundary between possible (to its right) and impossible. As η → 0 (unlimited bandwidth), $E_b/N_0 \to \ln 2$ = −1.59 dB, the **Shannon limit**. At high η each extra bit/s/Hz costs about 3 dB more Eb/N0.

## Where schemes sit

- **Bandwidth-efficient** schemes (QAM, PSK) live at η > 1, needing more Eb/N0 as η grows.
- **Power-efficient** schemes (orthogonal FSK) live at η < 1, needing less Eb/N0 as η falls.
- The horizontal distance from a scheme's point to the curve is its **gap to capacity**; uncoded modulation at 10⁻⁵ is 7 to 10 dB from it.

Equivalently, to carry η bits/s/Hz at all, a channel needs SNR ≥ $2^\eta - 1$.
:::

::: example
## A 3.1 kHz telephone channel has a 30 dB SNR. What's its capacity, and how close did 33.6 kb/s modems come?

::: solution
1. **Capacity.**
   $$\begin{aligned} C &= 3100\log_2(1001) \\ &= 30.9\ \text{kb/s} \end{aligned}$$
2. **V.34 modems.** At 33.6 kb/s they used a little more bandwidth (about 3.4 kHz), and the channel's SNR was sometimes higher; they ran within a few dB of capacity using trellis coding and adaptive equalization.
3. **56k modems.** Faster "56k" modems exploited the digital network's internal structure, a different channel.

**Answer:** the capacity is 30.9 kb/s, and 33.6 kb/s modems ran within a few dB of it.
:::
:::

::: example
## How far is uncoded 16-QAM from the Shannon bound at its efficiency?

::: solution
1. **The bound at η = 4.**
   $$\begin{aligned} \frac{E_b}{N_0} &= \frac{2^4 - 1}{4} \\ &= 3.75 \\ &= 5.74\ \text{dB} \end{aligned}$$
2. **The gap.** Uncoded 16-QAM needs 13.4 dB for 10⁻⁵:
   $$13.4 - 5.74 = 7.7\ \text{dB}$$
3. **What a code could buy.** A code that closes 5 dB of it would let the same link run with about a third of the transmit power.

**Answer:** uncoded 16-QAM is 7.7 dB from the Shannon bound.
:::
:::

::: example
## A 20 MHz channel has an SNR of 25 dB. What is its capacity, and what is the least Eb/N0 that could use it all?

::: solution
1. **Capacity.**
   $$\begin{aligned} C &= 20\log_2(1 + 316.2) \\ &= 166\ \text{Mb/s} \end{aligned}$$
2. **Efficiency.**
   $$\begin{aligned} \eta &= C/B \\ &= 8.31\ \text{b/s/Hz} \end{aligned}$$
3. **Least Eb/N0.** Operating at capacity needs
   $$\begin{aligned} \frac{E_b}{N_0} &= \frac{2^{8.31} - 1}{8.31} \\ &= 38.1 \\ &= 15.8\ \text{dB} \end{aligned}$$
4. **In practice.** Real systems at this SNR use 256-QAM with strong codes and reach perhaps 6 to 7 b/s/Hz.

**Answer:** the capacity is 166 Mb/s, and using all of it needs at least 15.8 dB of Eb/N0.
:::
:::

::: check
given: n = 0.5 | 2 | 3 | 6 | 10
answer: 10*log((2^n - 1)/n)
unit: dB
tolerance: 0.05

## What's the least Eb/N0 that allows reliable communication at {n} bits/s/Hz?

::: right
Right. $\frac{2^\eta - 1}{\eta}$: {answer} dB.
:::

::: misses
- [10*log(2^n - 1)] That's the required SNR; divide by η for Eb/N0.
- [any] Not yet. Set R = C and solve for $E_b/N_0$.
:::
:::

::: check
given: E = 9.59 | 13.43 | 17.79; n = 2 | 4 | 6
answer: E - 10*log((2^n - 1)/n)
unit: dB
tolerance: 0.05

## An uncoded scheme at {n} bits/s/Hz needs {E} dB for 10⁻⁵. How far is it from the Shannon bound?

::: right
Right. {E} − $10\log\frac{2^\eta - 1}{\eta}$ = {answer} dB.
:::

::: misses
- [E + 1.59] The limit −1.59 dB applies only as η → 0; use the bound at this η.
- [any] Not yet. Subtract the bound at η.
:::
:::

::: check
given: B = 3.1 | 20 | 1000; S = 6 | 20 | 30
answer: B*log(1 + 10^(S/10))/log(2)
unit: kb/s
tolerance: 0.5%

## A {B} kHz channel has an SNR of {S} dB. What's its capacity?

::: right
Right. $B\log_2(1 + \text{SNR})$ = {answer} kb/s.
:::

::: misses
- [B*log(1 + S)/log(2)] Convert the SNR from dB first.
- [any] Not yet. $C = B\log_2(1 + S/N)$.
:::
:::

::: check
given: n = 1 | 2 | 4
answer: 10*log(2^n - 1)
unit: dB
tolerance: 0.05

## What SNR does a channel need, at minimum, to carry {n} bits/s/Hz?

::: right
Right. $2^\eta - 1$: {answer} dB.
:::

::: misses
- [10*log(2^n)] Capacity uses $\log_2(1 + \text{SNR})$: subtract 1.
- [any] Not yet. Invert $\eta = \log_2(1 + \text{SNR})$.
:::
:::

::: check
given: S = 5 | 15 | 25 | 40
answer: log(1 + 10^(S/10))/log(2)
tolerance: 0.5%

## A channel's SNR is {S} dB. What's the most bits per second per hertz it can carry?

::: right
Right. $\log_2(1 + \text{SNR})$ = {answer}.
:::

::: misses
- [any] Not yet. $\eta_\text{max} = \log_2(1 + \text{SNR})$.
:::
:::

::: check
given: g = 3 | 6 | 9
answer: 100*10^(-g/10)
unit: %
tolerance: 0.5%

## A code closes {g} dB of a link's gap to capacity. What fraction of the original transmit power does the same link now need?

::: right
Right. $10^{-g/10}$ = {answer}%.
:::

::: misses
- [100*10^(-g/20)] Power ratios use 10 log.
- [any] Not yet. A {g} dB coding gain cuts the required power by that many dB.
:::
:::

::: check
kind: parts
given: B = 0.2 | 20 | 400; S = 5 | 15 | 30

## A {B} MHz channel has an SNR of {S} dB.

::: part
answer: B*log(1 + 10^(S/10))/log(2)
unit: Mb/s
tolerance: 0.5%

### What is its capacity?

::: misses
- [any] $B\log_2(1 + \text{SNR})$.
:::
:::

::: part
answer: 10*log((2^(log(1 + 10^(S/10))/log(2)) - 1)/(log(1 + 10^(S/10))/log(2)))
unit: dB
tolerance: 0.5%

### What is the least Eb/N0 that could reach it?

::: misses
- [any] $(2^\eta - 1)/\eta$ at η = C/B.
:::
:::
:::

::: check
kind: derivation
vars: B = 1e3..1e9, S = 0.1..10000, n = 0.01..12

## A channel has bandwidth B and SNR S (linear); a scheme runs at efficiency n.

::: step
answer: B*log(1 + S)/log(2)

### What is its capacity?
:::

::: step
answer: (2^n - 1)/n

### What least Eb/N0 does efficiency n need?
:::

::: step
answer: 2^n - 1

### What least SNR?
:::

::: right
Right. As n → 0 the Eb/N0 bound approaches ln 2, the Shannon limit.
:::
:::

::: explain
## Why is there a minimum Eb/N0 even with unlimited bandwidth?

::: model
Spreading a fixed signal power over more bandwidth lets each hertz carry very few bits, and in that limit capacity grows only in proportion to the signal power divided by the noise density, approaching $S/(N_0\ln 2)$ bits per second however wide the band gets, because the noise collected grows as fast as the room the signal gains. Rewriting the rate in terms of energy per bit, reliable communication needs $E_b/N_0$ of at least ln 2, about −1.6 dB. Below that, each bit simply doesn't carry enough energy to stand out from the noise in any coding scheme, so the error probability can't be driven to zero no matter how cleverly the bandwidth is used.
:::
:::

::: practice

::: check
given: n = 0.5 | 2 | 3 | 4 | 5 | 6 | 8
answer: 10*log((2^n - 1)/n)
unit: dB
tolerance: 0.05

## Shannon minimum Eb/N0 at {n} bits/s/Hz?

::: misses
- [any] $\frac{2^\eta - 1}{\eta}$.
:::
:::

::: check
given: B = 6 | 100; S = 12 | 28
answer: B*log(1 + 10^(S/10))/log(2)
unit: kb/s
tolerance: 0.5%

## Capacity of {B} kHz at {S} dB?

::: misses
- [any] $B\log_2(1 + \text{SNR})$.
:::
:::

::: check
given: S = 0 | 10 | 15 | 20 | 25 | 30 | 40
answer: log(1 + 10^(S/10))/log(2)
tolerance: 0.5%

## Maximum efficiency at {S} dB SNR?

::: misses
- [any] $\log_2(1 + \text{SNR})$.
:::
:::
:::
