Roboculator
Online CalculatorsCategoriesDate & EventsNews
Get Started
Online CalculatorsCategoriesDate & EventsNewsGet Started
Roboculator

Smart calculators for every challenge. Free, fast, and private.

Categories

  • Finance
  • Health
  • Math
  • Construction
  • Conversion
  • Everyday Life

Popular Tools

  • Date & Events
  • Loan Calculator
  • BMI Calculator
  • Percentage Calc
  • Latest News
  • Search All

Resources

  • Glossary
  • Topic Tags
  • News & Insights

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  • Editorial Policy
  • Disclaimer
© 2026 Roboculator. All rights reserved.
Roboculator

roboculator.com

  1. Home
  2. /Biology
  3. /Population Genetics
  4. /Heterozygosity Calculator

Heterozygosity Calculator

Last updated: February 24, 2026

Calculator

Results

Allele Frequency Sum

1

Sum of Squared Frequencies

0.345

Expected Heterozygosity

0.655

Normalized Expected Heterozygosity

0.873333

Effective Number of Alleles

2.8986

Frequency Sum Gap from 1

0

Results

Allele Frequency Sum

1

Sum of Squared Frequencies

0.345

Expected Heterozygosity

0.655

Normalized Expected Heterozygosity

0.873333

Effective Number of Alleles

2.8986

Frequency Sum Gap from 1

0

The Heterozygosity Calculator computes expected heterozygosity (gene diversity) from allele frequencies. Expected heterozygosity is a fundamental measure of genetic variation within a population. It represents the probability that two randomly chosen alleles at a locus are different, and is widely used in population genetics, conservation biology, and forensic genetics.

Enter the frequencies of up to three alleles (set unused alleles to 0) to calculate expected heterozygosity using Nei's formula.

Visual Analysis

How It Works

Expected heterozygosity (H) is calculated using Nei's gene diversity formula:

H = 1 − Σ(pᵢ²)

Where pᵢ is the frequency of the i-th allele. For a two-allele system, this simplifies to H = 2pq = 1 − p² − q². The homozygosity is Σ(pᵢ²), and heterozygosity is its complement. Allele frequencies should sum to 1.0 for accurate results.

Worked Examples

Three-allele system (e.g., ABO blood type simplified)

Inputs

p10.4
p20.35
p30.25

Results

expected het0.665
homozygosity0.335
allele sum1

With three alleles at frequencies 0.40, 0.35, and 0.25, expected heterozygosity is 0.665, meaning there is a 66.5% chance that two randomly sampled alleles are different.

Two-allele system

Inputs

p10.7
p20.3
p30

Results

expected het0.42
homozygosity0.58
allele sum1

For a two-allele system with p=0.7 and q=0.3, expected heterozygosity is 0.42 (equivalent to 2pq = 2×0.7×0.3 = 0.42).

Frequently Asked Questions

Expected heterozygosity (H or He) measures the genetic diversity at a locus. Higher H means more diversity. H = 0 means the locus is monomorphic (only one allele). The maximum H depends on the number of alleles: for k equally frequent alleles, H_max = 1 − 1/k. For 2 alleles, maximum H is 0.5; for 10 alleles, maximum H is 0.9.

Allele frequencies at a single locus must sum to 1.0. If your values do not sum to 1, check for rounding errors or missing alleles. The calculator will show the sum so you can verify. Results are only meaningful when the sum equals 1.0 (within rounding tolerance).

Expected heterozygosity (He) is calculated from allele frequencies assuming Hardy-Weinberg equilibrium. Observed heterozygosity (Ho) is the actual proportion of heterozygous individuals in the sample. Comparing Ho and He tests for Hardy-Weinberg equilibrium: if Ho < He, there may be inbreeding or population structure (Wahlund effect).

Sources & Methodology

Nei, M. Molecular Evolutionary Genetics. Columbia University Press, 1987. Hartl, D.L. & Clark, A.G. Principles of Population Genetics, 4th ed. 2007.
R

Roboculator Team

The Roboculator Team explains calculations, planning tools, and practical formulas in clear language for real-life situations.

How helpful was this calculator?

Be the first to rate!

Related Calculators

Hardy-Weinberg Equilibrium Calculator

Population Genetics

Genotype Frequency Calculator

Population Genetics

Fixation Index (Fst) Calculator

Population Genetics

Effective Population Size Calculator

Population Genetics

Genetic Drift Calculator

Population Genetics

Allele Frequency Calculator

Population Genetics