Skip to content
ContentLora

    Tip: press / anywhere to search.

    Explainer

    Error-correcting codes explained: how data survives noise

    An error-correcting code adds carefully chosen redundant bits to data so a receiver can find and fix errors caused by noise.[1][2] Shannon proved in 1948 that, below a channel's capacity, the right encoding can make errors as rare as desired; modern turbo and LDPC codes come close to that limit and carry data from spacecraft and 5G phones.[3][4][5]

    Editor reviewedUpdated Explainer16 claims · 100% primaryComputing, Quantum computing, Internet and telecoms
    Reading level: 1 passage differs; the rest is the same for everyone.

    This page is the classical step before quantum error correction, which borrows its ideas (redundancy, parity checks, thresholds) and adapts them to qubits; the surface code and qLDPC codes come after it.

    Every channel that carries data, from a phone signal to a link with a distant spacecraft, adds noise that flips some bits. Error-correcting codes protect data by adding redundancy in a structured way, so the receiver can repair damage on its own.[1][6]

    The problem and Shannon’s answer

    Claude Shannon’s 1948 paper “A Mathematical Theory of Communication” defined the task: reproduce at one point, exactly or approximately, a message selected at another.[7] He noted the obvious fix, sending information redundantly, for example by repeating the message many times.[1]

    Repetition is wasteful, though, and one might expect that making errors vanish would require ever more redundancy. Shannon showed otherwise. Each noisy channel has a definite capacity C: with proper encoding, information can be sent at rate C with as small a frequency of errors as desired, and no encoding can do this at any higher rate.[3] Practical codes that come close to that limit arrived decades later: turbo codes in 1993, and LDPC codes once they were rediscovered in the mid-1990s.[4][8]

    Parity checks and Hamming distance

    The simplest building block is a parity check: an extra bit chosen so that a group of bits adds up to an even number. Shannon’s paper described a code, found by a method due to Richard Hamming, that uses three such check bits to protect four message bits in every block of seven. When a block arrives, the receiver recomputes the three checks; read together as a binary number, they point to the position of a single wrong bit, or give zero if nothing went wrong.[2]

    In the (7,4) Hamming code, positions 3, 5, 6 and 7 carry message bits and positions 1, 2 and 4 hold even-parity checks over overlapping subsets; the recomputed parities form a syndrome whose binary value is the index of the erroneous bit.[2] Code strength is measured with Hamming distance, the number of bit positions in which two strings differ, equivalently the number of bits that must be corrupted to turn one into the other.[9] The CCSDS Reed-Solomon codes illustrate the trade-off: a minimum distance of 33 lets the (255,223) code correct 16 symbol errors, and distance 17 lets the (255,239) code correct 8.[10]

    Codes that fly in space

    The Consultative Committee for Space Data Systems (CCSDS) sets the coding standards that space agencies use on links between spacecraft and the ground.[6] Its standard covers five families: convolutional, Reed-Solomon, concatenated, turbo and LDPC codes.[11]

    • Reed-Solomon codes work on multi-bit symbols rather than single bits, which makes them good at fixing bursts of clustered errors but weaker on channels with scattered random noise.[12] The recommended versions use 255-symbol codewords of 8-bit symbols.[10]
    • Concatenated codes pair an inner convolutional code with an outer Reed-Solomon code. In CCSDS’s comparison, the convolutional code gives about 5.5 dB of coding gain over an uncoded link and the Reed-Solomon layer adds about 2 dB more.[13]
    • Turbo codes, introduced in 1993, reach near-Shannon-limit performance with reasonable decoding effort; CCSDS says good turbo codes come within about 0.8 dB of the theoretical limit.[4]
    • LDPC codes (low-density parity-check codes) were invented by Robert Gallager in his 1961 PhD thesis, largely forgotten for more than 30 years and rediscovered in the mid-1990s. An iterative decoding method called belief propagation, and decades of chip development, made them practical.[8]

    Codes in your phone

    Mobile networks rely on the same ideas. In 5G New Radio, the channel coding chain combines error detection (a cyclic redundancy check), error correction, rate matching, interleaving and mapping onto the physical channels.[14] The standard uses LDPC codes for the main uplink and downlink data channels, polar codes for downlink control information, and polar or short block codes for uplink control information.[5] For the wider system, see how 5G works.

    What carries over to quantum computers

    Quantum error correction reuses the core moves: spread information redundantly and measure parity-style checks that reveal errors without reading the protected data itself.[15] Its names echo the classical history, too: IBM’s quantum roadmap rests on quantum LDPC codes, which it says cut error-correction overhead by about 90 percent compared with other leading codes.[16] Read quantum error correction next.

    Next in the crash course

    Developing in AI & Computing

    Questions readers ask

    What is the difference between error detection and error correction?

    Detection only tells the receiver that something went wrong; correction also works out which bits are wrong and fixes them. 5G, for example, combines a cyclic redundancy check for error detection with error-correcting LDPC and polar codes.[14][5]

    What is a Hamming code?

    A code that can correct a single wrong bit. In the version Shannon described in 1948, each block of seven bits carries four message bits and three check bits; recomputing the checks gives the position of a single wrong bit.[2]

    What is the Shannon limit?

    Shannon showed that every noisy channel has a capacity. Below it, proper encoding can make the error rate as small as desired; above it, that is impossible. Practical codes are judged by how close they get.[3][4]

    Which codes does 5G use?

    The 5G NR standard uses LDPC codes for the main uplink and downlink data channels, polar codes for downlink control information, and polar or short block codes for uplink control information.[5]

    Sources

    · 16 claims from 6 publishers

    Each numbered claim is a statement we checked against the sources listed with it. Tap a number in the text to see its sources in place.

    1. [1]

      Shannon observed that sending information in a redundant form reduces the probability of errors, for example by repeating the message many times. confirmedas of 2026-11-22

    2. [2]

      Shannon's paper gives an example code found by a method due to Richard Hamming, in which each block of seven binary symbols carries four message symbols and three redundant check symbols chosen to make sums even; recomputing the checks at the receiver gives the position of a single wrong symbol, or zero if there is no error. confirmedas of 2026-11-22

    3. [3]

      Shannon showed that a noisy channel has a definite capacity C, such that with proper encoding information can be sent at rate C with as small a frequency of errors as desired, which is not possible at any rate greater than C. confirmedas of 2026-11-22

    4. [4]

      Turbo codes, introduced in 1993, achieve near-Shannon-limit error correction with reasonable decoding complexity; CCSDS says good turbo codes come within about 0.8 dB of the theoretical limit at a bit error rate of 10^-6. confirmedas of 2026-11-22

    5. [5]

      The 5G New Radio standard (3GPP TS 38.212) uses LDPC codes for the uplink and downlink shared data channels, polar codes for downlink control information, and polar or short block codes for uplink control information. confirmedas of 2026-11-22

    6. [6]

      The Consultative Committee for Space Data Systems (CCSDS) publishes a standard that specifies synchronisation and channel coding schemes for space-to-ground, space-to-space and ground-to-space links used by space missions. confirmedas of 2026-11-22

    7. [7]

      Claude Shannon's 1948 paper "A Mathematical Theory of Communication" stated the fundamental problem of communication as reproducing at one point, exactly or approximately, a message selected at another point. confirmedas of 2026-11-22

    8. [8]

      Low-density parity-check (LDPC) codes were invented by Robert Gallager in his 1961 PhD thesis, largely forgotten for more than 30 years and rediscovered in the mid-1990s; an iterative decoding method called belief propagation and decades of chip development made them practical. confirmedas of 2026-11-22

    9. [9]

      The Hamming distance between two binary strings is the number of bits that differ, which can be read as the number of bits that would need to be corrupted to turn one string into the other. confirmedas of 2026-11-22

    10. [10]

      The CCSDS-recommended Reed-Solomon codes use 255-symbol codewords of 8-bit symbols; the (255,223) code carries 223 information symbols and can correct 16 symbol errors, and the (255,239) code can correct 8. confirmedas of 2026-11-22

    11. [11]

      The CCSDS rationale report covers five classes of codes in its telemetry coding standard, convolutional, Reed-Solomon, concatenated, turbo and LDPC codes. confirmedas of 2026-11-22

    12. [12]

      CCSDS explains that Reed-Solomon codes work on multi-bit symbols, so they can correct long bursts of bit errors and suit channels where errors cluster, but perform worse than convolutional codes on a channel with random noise. confirmedas of 2026-11-22

    13. [13]

      In CCSDS's comparison, a convolutional code gives about 5.5 dB of coding gain over an uncoded link at a bit error rate of 10^-5, adding an outer Reed-Solomon code gives about 2 dB more, and a rate-1/2 turbo code comes within 1 dB of the Shannon limit for that rate. confirmedas of 2026-11-22

    14. [14]

      In 5G NR, the channel coding scheme combines error detection, error correction, rate matching, interleaving and mapping onto physical channels, with a cyclic redundancy check (CRC) used for error detection. confirmedas of 2026-11-22

    15. [15]

      In the surface code, data qubits and measure qubits are interleaved on a square lattice; repeated measurements flag physical errors without disturbing the stored logical information. confirmedas of 2026-01-13

    16. [16]

      IBM's fault-tolerance plan uses quantum low-density parity check (qLDPC) codes, which it says cut error-correction overhead by about 90 percent compared with other leading codes. confirmedas of 2025-06-10

    Revision history (1)
    1. Page created.

    Created Nov 22, 2026. Last reviewed by an editor on Nov 22, 2026. Next scheduled review: Sep 27, 2027.

    Cite this page

    "Error-correcting codes explained: how data survives noise." ContentLora, updated Nov 22, 2026. https://contentlora.com/explain/error-correcting-codes-explained

    Spotted an error? Suggest a correction or emailcorrections@contentlora.com.