Entropy Calculator — Compute Shannon Entropy of a Probability Distribution
Our Entropy Calculator measures the average information content — or uncertainty — of a probability distribution using Claude Shannon's entropy formula H(X) = −Σ p(x)·log₂ p(x). Enter any list of probabilities that sum to 1, and instantly see the entropy in bits (log base 2) or nats (natural log), along with the maximum possible entropy for that many outcomes.
Quick Answer
Shannon entropy H(X) = −Σ p(x)·log₂ p(x) measures the average uncertainty of a probability distribution. Enter one probability per line below (summing to 1) to instantly compute entropy in bits or nats.
Enter one probability per line, e.g. 0.5. All probabilities must sum to 1.
How to Use the Entropy Calculator — Shannon Entropy (Bits & Nats) Online
- 1
Enter one probability per line for every possible outcome (they must sum to 1).
- 2
Choose bits (log₂) or nats (ln) as your unit.
- 3
Click 'Calculate' to see the Shannon entropy and the step-by-step breakdown.
Why Use Entropy Calculator — Shannon Entropy (Bits & Nats) Online?
Shannon entropy, introduced by Claude Shannon in his foundational 1948 paper on information theory, quantifies how unpredictable a random variable is: a distribution where one outcome is certain has zero entropy, while a uniform distribution over n outcomes has the maximum possible entropy, log₂(n) bits. This calculator applies the formula exactly so you can measure the information content of a distribution — useful for data compression, machine learning, cryptography, and thermodynamics-inspired analyses — without manually working through the logarithms.
Frequently Asked Questions
Related Tools
Probability Distribution Calculator — Mean, Variance & Std Dev
Calculate the mean, variance, and standard deviation of any custom discrete probability distribution. Free calculator that validates your probabilities sum to 1 with step-by-step statistics.
Binomial Probability Distribution Calculator — P(X=k) Online
Calculate binomial probabilities instantly — enter trials (n), success probability (p), and successes (k) to find P(X = k), cumulative probability, mean, and variance. Free calculator with step-by-step breakdown.
Poisson Distribution Calculator — Event Probability Online
Calculate Poisson probabilities instantly — enter a rate (λ) and event count (k) to find P(X = k), cumulative probability, mean, and variance. Free calculator with step-by-step formula breakdown.