Digital Communications

Code Rate Detail

/kohd rayt/
Code rate R = k/n is the ratio of information bits (k) to total coded bits (n) in FEC. Rate 1/2 adds 100% redundancy. Lower rates: stronger correction but less spectral efficiency. 5G NR LDPC: 1/5 (BG2 mother) to 948/1024 (~0.926), selected via AMC based on CQI. Rate matching reads from circular buffer; HARQ retransmissions use different redundancy versions. Modern LDPC operates 0.5 to 1.5 dB from Shannon limit.
Category: Digital Communications
5G NR range: 1/5 to 0.926
Gap to Shannon: 0.5 to 1.5 dB

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

Code Rate:
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 IndexModulationCode RateSpectral Eff.Use Case
MCS 0QPSK~0.120.23 bps/HzCell edge, deep fade
MCS 9QPSK~0.601.21 bps/HzModerate coverage
MCS 1664-QAM~0.553.32 bps/HzGood channel
MCS 24256-QAM~0.705.55 bps/HzNear cell center
MCS 28256-QAM~0.937.41 bps/HzExcellent SNR
Common Questions

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.

5G NR Solutions

Request a Quote

Need channel coding IPs, LDPC encoder/decoder solutions, or link adaptation test platforms? Contact our team.

Get in Touch