∑Calculators Map.Find a calculator ↗

σ STATISTICS

Binary Entropy Calculator

Find the information entropy of a binary outcome distribution.

Your numbers

Free calculator
YOUR RESULT
1bits

Calculated in your browser. Your inputs aren’t uploaded.

When to use this calculator

Find the information entropy of a binary outcome distribution. Zero-probability terms use the limiting value zero; this is uncertainty, not a prediction of one outcome.

Explore the probability & distributions calculators for other questions in this topic. For a related calculation, use the Uniform Distribution Probability Calculator: Find probability over an interval within a continuous uniform distribution.

Understand the binary entropy result

Find the information entropy of a binary outcome distribution. For the example inputs Probability of first outcome = 0.5, the result is 1 bits. Zero-probability terms use the limiting value zero; this is uncertainty, not a prediction of one outcome.

PUTTING IT INTO PRACTICE

Binary Entropy: a worked example

The values below are an illustrative example, not a recommendation. Replace them with measurements or assumptions that match your question.

Example inputs and calculated result
InputExample value
Probability of first outcome0.5
Result1 bits
  1. Check the input labels and enter the example values above.
  2. Apply the relationship: H = −p log₂(p)−(1−p)log₂(1−p).
  3. The result is 1 bits, rounded for display.

How to interpret your result

Zero-probability terms use the limiting value zero; this is uncertainty, not a prediction of one outcome. Probabilities are fractions from zero to one. A model calculation is not evidence that its assumptions hold for a dataset.

The result is expressed in bits. Zero-probability terms use the limiting value zero; this is uncertainty, not a prediction of one outcome.

Frequently asked questions

Which assumptions matter for binary entropy?

Zero-probability terms use the limiting value zero; this is uncertainty, not a prediction of one outcome. Probabilities are fractions from zero to one. A model calculation is not evidence that its assumptions hold for a dataset.

When is the binary entropy calculator useful?

Find the information entropy of a binary outcome distribution. Zero-probability terms use the limiting value zero; this is uncertainty, not a prediction of one outcome.

How do I use the binary entropy calculator?

Enter probability of first outcome. The result updates automatically. Use the units shown beside each input; the example values illustrate the method.

Which formula does this calculator use?

H = −p log₂(p)−(1−p)log₂(1−p).

What should I check before using the result?

Zero-probability terms use the limiting value zero; this is uncertainty, not a prediction of one outcome. Probabilities are fractions from zero to one. A model calculation is not evidence that its assumptions hold for a dataset.

How are results rounded?

Scalar numbers display up to six decimal places, with scientific notation for very large or small values. Text, fraction, date and schedule outputs use the format described on the tool. Intermediate calculations use JavaScript floating-point arithmetic. Keep sensible precision for your measurements.

Further reading

For background on this topic, see NIST: statistical distribution gallery ↗. This is a topic reference, not an external review or endorsement of this tool.

Calculators Map editorial process · Updated · Methods and limitations