Computer Science

Binary Entropy Calculator

Calculate binary information entropy from the probability of one outcome.

Explore foundational computer science calculators

Move between processor performance, parallel speedup, data transfer, cache access, network delay, memory addressing and information entropy.

Share this calculator
WhatsApp

Binary Entropy Calculator is an educational computer-science tool for exploring a standard computing relationship.

How it works

Enter the requested values using the stated units. The calculator validates the numerical domain and applies H₂(p) = -p log₂(p) - (1-p) log₂(1-p).

The formula

H₂(p) = -p log₂(p) - (1-p) log₂(1-p)

Variables: p = Probability (%).

Worked example

Example: p = 50% → H₂ = 1 bit.

Frequently asked questions

What is this computer-science calculator intended for?

It is intended for study, classroom exercises and quick exploration of the stated computing relationship.

Does the result represent every real computer or network?

No. Real systems can include hardware, software, protocol, workload, caching, scheduling and implementation effects beyond the simplified model.

Last content reviewSeptember 26, 2026
Editorial reviewHe-Sab Editorial Review

Sources and references

These sources are used to verify terminology, formulas, and information related to this calculator.