Average Codeword Length Calculator

Calculate average codeword length, entropy, and efficiency for information coding schemes

Sum: 1.00
✓ Valid

Scheme 1

Scheme 2

Calculation Results

L
Average Codeword Length
-
∑p(x) × l(x)
H
Entropy
-
-∑p(x) × log₂(p(x))
η
Efficiency
-
H / L × 100%
R
Redundancy
-
1 - η

Step-by-Step Calculation

Enter symbol probabilities and codeword lengths to see the calculation steps.

Probability vs Codeword Length

Symbol Contribution to Average Length

Scheme Comparison

Metric Scheme 1 Scheme 2 Difference
Average Length - - -
Efficiency - - -

Share this Tool

Help others discover this useful calculator

Support Our Work

If you find this tool helpful, consider supporting us with a donation

Embed This Tool

Add this calculator to your website