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.
Common searches this calculator answers include “genetic diversity”, “allele frequencies”, “he”, “calculate expected heterozygosity”, “find expected heterozygosity he”.
Formula
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 expected heterozygosity calculator used for?
Compute expected heterozygosity for multiple alleles. It helps with questions such as “genetic diversity”, “allele frequencies”, “he”.
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 the expected heterozygosity 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 expected heterozygosity 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.