Expected heterozygosity from allele frequencies calculator
Estimate gene diversity at a locus from its allele-frequency distribution. Enter your values below to see the result and method.
inputs.
Related calculators
How to use this calculator
Estimate gene diversity at a locus from its allele-frequency distribution.
- Enter Allele 1 frequency p₁, Allele 2 frequency p₂, Allele 3 frequency p₃. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
State the inheritance or population assumptions
Expected heterozygosity summarizes allele diversity at one locus from the frequencies of its alleles. Estimate gene diversity at a locus from its allele-frequency distribution.
Inputs and units
- Allele 1 frequency p₁:Proportion of sampled allele copies belonging to allele 1.
- Allele 2 frequency p₂:Proportion of sampled allele copies belonging to allele 2.
- Allele 3 frequency p₃:Proportion of sampled allele copies belonging to allele 3; all listed frequencies must sum to 1.
Genetics formula and example
Hₑ = 1 − Σpᵢ².
Allele frequencies 0.5, 0.3 and 0.2 give Hₑ=0.62.
Under the stated model, expected heterozygosity is 1−Σpᵢ²; a more even distribution of allele frequencies generally raises this diversity measure.
Interpreting the expectation
Hₑ is a frequency-based population expectation; finite-sample fluctuation and departures from the random-union model are not included.
Assumptions and limitations
The listed frequencies must sum to 1; this is expected heterozygosity under random union of gametes, not observed sample heterozygosity.
Source and method
The allele-frequency model uses the probability that two sampled copies differ; the linked section explains p²+2pq+q² for a two-allele locus. OpenStax Biology 2e — Population Evolution.
Frequently asked questions
What should I enter for the expected heterozygosity from allele frequencies?
Enter Allele 1 frequency p₁, Allele 2 frequency p₂, Allele 3 frequency p₃. Use the units shown beside each field and values from the same sample or model.
Which assumptions matter for this expected heterozygosity from allele frequencies?
The listed frequencies must sum to 1; this is expected heterozygosity under random union of gametes, not observed sample heterozygosity.
How is expected heterozygosity different from Shannon diversity?
Expected heterozygosity is the probability that two randomly sampled allele copies differ. Shannon diversity weights each allele frequency by its logarithm, so it measures diversity on a different scale.
How do I use the Expected heterozygosity from allele frequencies calculator?
Enter Allele 1 frequency p₁, Allele 2 frequency p₂, Allele 3 frequency p₃. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Expected heterozygosity from allele frequencies?
Hₑ = 1 − Σpᵢ². Allele frequencies 0.5, 0.3 and 0.2 give Hₑ=0.62. Under the stated model, expected heterozygosity is 1−Σpᵢ²; a more even distribution of allele frequencies generally raises this diversity measure.
Read the calculation methodology and privacy policy.