Code Rate Detail
Understanding Code Rate
Code rate is the single most important parameter describing the trade-off between reliability and throughput in a digital communication system. A rate 1/2 code doubles the number of transmitted bits relative to the information content, consuming twice the bandwidth (or half the time) but providing substantial error correction capability. A rate 7/8 code adds only 14% overhead, maximizing throughput but offering limited error protection. The art of system design is selecting the right code rate for the channel conditions: too high and the decoder cannot correct errors; too low and bandwidth is wasted.
Modern wireless systems do not use a fixed code rate. Instead, adaptive modulation and coding (AMC) continuously adjusts both the modulation order and code rate based on channel quality feedback. In 5G NR, the UE reports Channel Quality Indicator (CQI) values that map to specific MCS indices, each defining a modulation order (QPSK, 16-QAM, 64-QAM, 256-QAM) and a target code rate. The MCS table covers 29 entries from MCS 0 (QPSK, rate ~0.12, spectral efficiency 0.23 bps/Hz) to MCS 28 (256-QAM, rate ~0.93, spectral efficiency 7.41 bps/Hz), a 32x range in spectral efficiency. The base station scheduler selects the highest MCS that achieves a target BLER of 10% (first transmission), relying on HARQ retransmissions to recover the 10% of failed blocks.
Code Rate Formulas
R = k/n (0 < R ≤ 1)
Shannon Capacity Limit:
Rmax = log2(1 + SNR) / log2(M)
SNR from Eb/No:
SNR = Eb/N0 + 10 log10(R × m) (dB)
Where k = info bits, n = coded bits, M = modulation order, m = log2(M). At SNR=10 dB, 16-QAM: Rmax = 0.865. Rate 1/2 LDPC requires ~1.5 dB Eb/N0 for BER 10-6; rate 3/4 requires ~4.5 dB.
5G NR MCS and Code Rate Examples
| MCS Index | Modulation | Code Rate | Spectral Eff. | Use Case |
|---|---|---|---|---|
| MCS 0 | QPSK | ~0.12 | 0.23 bps/Hz | Cell edge, deep fade |
| MCS 9 | QPSK | ~0.60 | 1.21 bps/Hz | Moderate coverage |
| MCS 16 | 64-QAM | ~0.55 | 3.32 bps/Hz | Good channel |
| MCS 24 | 256-QAM | ~0.70 | 5.55 bps/Hz | Near cell center |
| MCS 28 | 256-QAM | ~0.93 | 7.41 bps/Hz | Excellent SNR |
Frequently Asked Questions
How does code rate affect BER?
Lower rate = more parity = better correction. Rate 1/3 needs ~1.5 dB Eb/N0; rate 3/4 needs ~4.5 dB (for BER 10-6). But rate 1/3 uses 3x bandwidth. System trade-off: AMC selects highest rate achieving target BLER 10% based on CQI. HARQ handles residual errors.
How does rate matching work in 5G NR?
LDPC encodes at mother rate (1/3 BG1, 1/5 BG2). Rate matching selects subset from circular buffer for target rate. Rate 3/4: send all k systematic + k/3 parity bits. HARQ retransmissions read from different buffer positions (RV0/1/2/3), lowering combined rate via code combining without re-encoding.
Relationship to Shannon capacity?
Shannon: C/B = log2(1+SNR). At 10 dB, 16-QAM: Rmax = 0.865. Modern 5G LDPC operates within 0.5 to 1.5 dB of this limit for blocks >1,000 bits. Practical codes cannot exceed Shannon limit; operating closer requires larger block sizes and more decoder iterations.