Hardy–Weinberg expected genotype counts calculator
Convert allele frequencies and sample size into expected genotype counts under Hardy–Weinberg equilibrium. Enter your values below to see the result and method.
inputs.
Related calculators
How to use this calculator
Convert allele frequencies and sample size into expected genotype counts under Hardy–Weinberg equilibrium.
- Enter Allele frequency p, Allele frequency q, Sample size (individuals). 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
Use this genetics or population-genetics calculation to translate stated allele or breeding assumptions into an interpretable expectation. Convert allele frequencies and sample size into expected genotype counts under Hardy–Weinberg equilibrium.
Inputs and units
- Allele frequency p:Frequency of allele A among copies at the two-allele locus, from 0 to 1.
- Allele frequency q:Frequency of the alternate allele; p+q must equal 1.
- Sample size (individuals):Number of individuals represented by the expected counts; use a nonnegative whole number.
Genetics formula and example
Expected AA=p²N; Aa=2pqN; aa=q²N.
For p=0.7, q=0.3 and N=500, expected counts are 245 AA, 210 Aa and 45 aa.
Expected AA, Aa, and aa counts sum to N when p+q=1; fractional values are model expectations, not rounded observed genotypes.
Interpreting the expectation
The expected counts assume random mating at a two-allele locus with p+q=1 and no selection, mutation, migration, or population structure.
Assumptions and limitations
Requires p+q=1 for a two-allele locus and assumes random mating with no selection, migration, mutation, or population structure.
Source and method
The Hardy–Weinberg genotype frequencies are p², 2pq, and q²; multiplying each frequency by N gives expected counts. OpenStax Biology 2e — Population Evolution.
Frequently asked questions
How are the three expected genotype counts produced?
For allele frequencies p and q with p+q=1, the expected frequencies are p², 2pq, and q². Multiplying each by N gives AA, Aa, and aa counts; expected counts may be fractional.
Which assumptions matter for this hardy–weinberg expected genotype counts?
Requires p+q=1 for a two-allele locus and assumes random mating with no selection, migration, mutation, or population structure.
How does this differ from estimating allele frequency from genotype counts?
This page starts from p, q, and N to predict genotype counts under Hardy–Weinberg assumptions. An allele-frequency calculator starts from observed genotype counts and estimates allele frequencies instead.
How do I use the Hardy–Weinberg expected genotype counts calculator?
Enter Allele frequency p, Allele frequency q, Sample size (individuals). Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Hardy–Weinberg expected genotype counts?
Expected AA=p²N; Aa=2pqN; aa=q²N. For p=0.7, q=0.3 and N=500, expected counts are 245 AA, 210 Aa and 45 aa. Expected AA, Aa, and aa counts sum to N when p+q=1; fractional values are model expectations, not rounded observed genotypes.
Read the calculation methodology and privacy policy.