Shannon Entropy Calculator
Calculate Shannon entropy in bits (and nats) from probabilities, counts or a piece of text — with the maximum possible entropy and the efficiency.
Calculate Shannon entropy in bits (and nats) from probabilities, counts or a piece of text — with the maximum possible entropy and the efficiency.
Results
Enter your details and click Calculate to see your results.
About This Calculator
H = −Σ p log₂ p. It's the average number of bits needed per symbol; a fair coin has 1 bit, a certain outcome 0.
Example
Example: probabilities ½, ¼, ⅛, ⅛ have entropy 1.75 bits.
Assumptions
Counts are normalised to probabilities.
Frequently Asked Questions
What is maximum entropy?
log₂(number of symbols) — reached when every symbol is equally likely.
Related Calculators
About the Author

Imran Hossain
Professional SEO, Digital Marketer Specialist
I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist
View full profile