CalcDepo

Expected Heterozygosity Calculator

Compute expected heterozygosity for multiple alleles.

Inputs

Results

Expected heterozygosity He0.62
Number of alleles3

Chart

Not what you need? Search by intent

Describe what you want to find — “genetic diversity” — and jump to the right calculator.

How to use the expected heterozygosity calculator

Compute expected heterozygosity for multiple alleles. Enter allele frequencies in the field above; the expected heterozygosity he, number of alleles are computed instantly and plotted on the chart so you can see how the answer changes.

Formula

Expected heterozygosity He = 1-sum(f.map(function(v){return v × v}))
Number of alleles = len(f)

Variables

  • f — Allele frequencies

Worked example

With allele frequencies = 0.5,0.3,0.2, the calculator gives expected heterozygosity he ≈ 0.62; number of alleles ≈ 3.

Frequently asked questions

What is the formula for the expected heterozygosity calculation?

Expected heterozygosity He = 1-sum(f.map(function(v){return v × v})). Number of alleles = len(f). Here f is allele frequencies.

What inputs do I need for the expected heterozygosity calculator?

You need allele frequencies. Each field is pre-filled with a typical example so you can see how the result responds as you edit the numbers.

How do I use this calculator?

Type values into the input fields. Results and the chart update instantly. Use Reset to restore the example values, Copy results to paste them elsewhere, or Share to copy a link that preserves your inputs.

Is the result exact?

Calculations use standard formulas and double-precision arithmetic, then display about seven significant figures. Real-world measurements carry uncertainty, so treat results as estimates unless your inputs are exact.

Related calculators

More in Ecology & Evolution: Exponential Population Growth · Logistic Population Growth · Population Density · Mark–Recapture Population · Population Change Rate · Simpson's Diversity Index · Shannon Diversity Index · Species–Area Relationship