Skip to content
ContentLora

    Tip: press / anywhere to search.

    Explainer

    Information theory explained: Shannon, bits and entropy

    Information theory began with Claude Shannon's 1948 paper "A Mathematical Theory of Communication", which treated communication as reproducing at one place a message selected at another.[1][2] It measures information in bits and defines entropy, a measure of uncertainty that sets how far a message can be compressed.[3][4][5] Its central result is that every noisy channel has a capacity: below it, coding can make errors as rare as you like, and above it, errors cannot be avoided.[6][7]

    Editor reviewedUpdated Explainer14 claims · 100% primaryComputing, Post-quantum cryptography and security, Internet and telecoms
    Reading level: 5 passages differ; the rest is the same for everyone.

    This page is part of the computing crash course and also feeds the cryptography and telecom courses. It needs basic probability and the idea of a logarithm. Read Turing machines and the halting problem first if you want the Kolmogorov section to make sense. Choose a reading level in each section.

    Shannon’s question

    In 1948 Claude Shannon, writing in the Bell System Technical Journal, set out a mathematical theory of communication.[1] He boiled the problem down to this: reproduce at one place, exactly or nearly, a message chosen at another place.[2]

    His key move was to ignore meaning. Shannon said the meaning of a message doesn’t matter to the engineering problem. What matters is that the message is one picked from a set of possible messages.[2][8]

    He drew any communication system as five parts: a source, a transmitter, a channel (a wire, a radio band, a beam of light), a receiver and a destination.[9]

    Shannon’s paper appeared in the Bell System Technical Journal in July and October 1948.[1] It frames communication as reproducing a message selected at another point and treats semantics as irrelevant to the engineering problem.[2] The significant fact is selection from a set of possible messages.[8] The model has five parts: an information source, a transmitter that turns the message into a signal, the channel, a receiver that inverts the transmitter, and the destination.[9]

    Bits and entropy

    Shannon measured information with logarithms. Using base 2 gives the unit he called the bit, short for “binary digit”, a word he credited to J. W. Tukey. A switch with two stable positions stores exactly one bit.[3]

    The less likely an outcome, the more information you get when it happens: an outcome’s information is the negative logarithm of its probability.[10] Shannon’s entropy, written H, is built from the probabilities of all possible outcomes. It measures how uncertain you are before the message arrives.[4] Entropy is zero when you already know the outcome. It is largest when every outcome is equally likely, like a fair coin toss.[11]

    With base-2 logarithms the unit is the bit, a term the paper attributes to J. W. Tukey.[3] Self-information is I(A) = -log P(A).[10] Shannon defines H = -Σ p_i log p_i as the entropy of a set of probabilities, a measure of information, choice and uncertainty. He notes that it has the form of entropy in statistical mechanics.[4] H vanishes only when one outcome is certain, and for n outcomes it is maximal, equal to log n, when all are equally likely.[11]

    Compression: entropy sets the limit

    Entropy tells you how short a message can be made. Shannon proved that a source producing H bits of information per symbol can be squeezed through a channel at close to the channel’s capacity divided by H symbols per second, and no faster.[5]

    Real messages are full of predictable patterns. Shannon estimated that ordinary English is roughly 50 percent redundant. That redundancy is what compression removes.[12]

    Theorem 9 (the source coding theorem): for a source of entropy H bits per symbol and a channel of capacity C bits per second, one can encode to transmit at an average rate of C/H - ε symbols per second for any ε > 0. The rate C/H cannot be exceeded.[5] Shannon defines relative entropy as the ratio of a source’s entropy to the maximum for its alphabet, which is the maximum compression into that alphabet. Redundancy is one minus that ratio, which he put at roughly 50 percent for English over spans of about eight letters.[12]

    Noise and channel capacity

    Every real channel adds noise. Shannon’s most surprising result is that noise does not force errors, as long as you send slowly enough. Each channel has a capacity. Below it, clever coding can make errors as rare as you like.[6] Above it, some errors are unavoidable whatever coding you use.[7]

    For a channel with a given bandwidth, signal power and noise power, Shannon gave a formula for that capacity. More bandwidth or a stronger signal relative to the noise raises the limit.[7] His proof showed that good codes must exist without saying how to build them.[6] How practical codes work is covered in error-correcting codes.

    Theorem 11: if a discrete source’s entropy rate H is at most the channel capacity C, there is a coding system with an arbitrarily small frequency of errors. The proof is non-constructive, showing such a code must exist within a group of codes.[6] Theorem 17 gives the capacity of a band-limited channel with white thermal noise as C = W log((P + N)/N). No encoding can send faster without a definite positive frequency of errors.[7]

    What information theory does not measure

    Shannon’s measure counts surprise, not meaning or order. The Stanford Encyclopedia of Philosophy points out that the strings 0000011111 and 1001011100 carry the same Shannon information, though one looks far more orderly.[13]

    Another measure, Kolmogorov complexity, counts the length of the shortest program that prints a string. It captures that kind of order, but no computer can calculate it in general.[14] For what “cannot be computed” means, see Turing machines and the halting problem.

    Shannon information is the best-known quantitative definition but a weak one: it depends only on symbol statistics, not on structure.[13] Algorithmic (Kolmogorov) complexity defines the information in x as the length of the shortest program producing x on a reference universal Turing machine. It is more powerful but uncomputable.[14]

    Next in the crash course

    Developing in AI & Computing

    Go deeper

    Questions readers ask

    What is a bit?

    The unit of information when logarithms are taken to base 2, short for "binary digit". Shannon's 1948 paper credits the word to J. W. Tukey. A device with two stable positions, such as a relay or a flip-flop circuit, stores one bit.[3]

    What is entropy in information theory?

    Shannon's measure of information, choice and uncertainty, computed from the probabilities of the possible outcomes. It is zero only when the outcome is certain, and largest when all outcomes are equally likely.[4][11]

    What is channel capacity?

    The highest rate at which information can be sent over a channel with an arbitrarily small frequency of errors. For a channel of bandwidth W with white thermal noise power N and signal power P, Shannon gave it as W log((P+N)/N).[6][7]

    Why can files be compressed?

    Because most messages are redundant. Shannon estimated that ordinary English is roughly 50 percent redundant, counting structure over about eight letters, and redundancy sets the maximum compression possible.[12]

    Does information theory measure meaning?

    No. Shannon set meaning aside as irrelevant to the engineering problem. What matters is that a message is one selected from a set of possible messages.[2][8]

    What is Kolmogorov complexity?

    A different measure, which counts the information in a string as the length of the shortest program that produces it on a universal Turing machine. Unlike Shannon entropy it cannot be computed.[14]

    Sources

    · 14 claims from 2 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]

      Claude Shannon's "A Mathematical Theory of Communication" was published in the Bell System Technical Journal in July and October 1948. confirmedas of 2026-11-22

    2. [2]

      Shannon framed the fundamental problem of communication as reproducing at one point, exactly or approximately, a message selected at another point, and set the meaning of messages aside as irrelevant to the engineering problem. confirmedas of 2026-11-22

    3. [3]

      Shannon's paper named the base-2 unit of information "bits", short for binary digits, a word it credits to J. W. Tukey; a device with two stable positions, such as a relay or flip-flop, stores one bit. confirmedas of 2026-11-22

    4. [4]

      Shannon defined a quantity H, built from the probabilities of the possible outcomes and their logarithms, as the entropy of a set of probabilities and a measure of information, choice and uncertainty, noting that it has the form of entropy in statistical mechanics. confirmedas of 2026-11-22

    5. [5]

      Shannon's Theorem 9 shows that a source with entropy H bits per symbol can be encoded to send, over a channel of capacity C bits per second, at an average rate arbitrarily close to C/H symbols per second, and not faster. confirmedas of 2026-11-22

    6. [6]

      Shannon's noisy-channel coding theorem (Theorem 11) shows that if a source's information rate is no more than a channel's capacity, there is a coding system that transmits it with an arbitrarily small frequency of errors, and if the rate exceeds capacity no encoding can bring the residual uncertainty (equivocation) below the excess; the proof shows such codes must exist rather than constructing one. confirmedas of 2026-11-22

    7. [7]

      Shannon's Theorem 17 gives the capacity of a channel of bandwidth W with white thermal noise power N and average transmitter power P as W log((P+N)/N), and says no encoding can send faster without a definite positive frequency of errors. confirmedas of 2026-11-22

    8. [8]

      For Shannon, what matters is that the actual message is one selected from a set of possible messages. confirmedas of 2026-11-22

    9. [9]

      Shannon's model of a communication system has five parts - an information source, a transmitter, a channel, a receiver and a destination. confirmedas of 2026-11-22

    10. [10]

      Information of an outcome is defined as the negative logarithm of its probability, following Shannon (1948). confirmedas of 2026-11-22

      • Information · Stanford Encyclopedia of Philosophy · Primary source · Quantitative theories of information (retrieved 2026-11-22)
    11. [11]

      Entropy is zero only when the outcome is certain, and for a given number of outcomes it is largest when all outcomes are equally likely, the most uncertain situation. confirmedas of 2026-11-22

    12. [12]

      Shannon estimated that ordinary English is roughly 50 percent redundant (counting structure over about eight letters), and tied the redundancy of a source to the maximum compression possible. confirmedas of 2026-11-22

    13. [13]

      The Stanford Encyclopedia of Philosophy calls Shannon information the best-known quantitative definition of information but a weak concept that does not capture disorder - for example, 0000011111 and 1001011100 carry the same Shannon information. confirmedas of 2026-11-22

      • Information · Stanford Encyclopedia of Philosophy · Primary source · Quantitative theories of information (retrieved 2026-11-22)
      • Information · Stanford Encyclopedia of Philosophy · Primary source · Quantitative theories of information (retrieved 2026-11-22)
      • Information · Stanford Encyclopedia of Philosophy · Primary source · Quantitative theories of information (retrieved 2026-11-22)
    14. [14]

      Algorithmic (Kolmogorov) complexity measures the information in a binary string as the length of the shortest program that produces it on a universal Turing machine; it is conceptually more powerful than Shannon information but uncomputable. confirmedas of 2026-11-22

      • Information · Stanford Encyclopedia of Philosophy · Primary source · Quantitative theories of information (retrieved 2026-11-22)
      • Information · Stanford Encyclopedia of Philosophy · Primary source · Quantitative theories of information (retrieved 2026-11-22)
      • Information · Stanford Encyclopedia of Philosophy · Primary source · Quantitative theories of information (retrieved 2026-11-22)
    Revision history (1)
    1. Page created.

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

    Cite this page

    "Information theory explained: Shannon, bits and entropy." ContentLora, updated Nov 22, 2026. https://contentlora.com/explain/information-theory-explained

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