Loading…

Hardy–weinberg ( Genotype Frequencies )

Biology • Population Genetics

View all topics
This tool uses the single-locus, two-allele Hardy–Weinberg model: p + q = 1 and p² + 2pq + q² = 1. It can estimate p, q, expected genotype frequencies, and (when counts are provided) a simple observed vs expected snapshot.
Tip: Hover bars for details. Use the mouse wheel (or the +/− buttons) to zoom. Drag to pan inside a chart.

Inputs: allele frequency

If N is provided and you choose counts output, expected genotype counts are computed as N · (p², 2pq, q²).

Ready

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

What does the Hardy-Weinberg genotype frequencies calculator compute?

It computes allele frequencies p and q and the expected genotype frequencies AA = p^2, Aa = 2pq, and aa = q^2 under the Hardy-Weinberg model for a two-allele locus.

How do I calculate genotype frequencies from an allele frequency p or q?

Use p + q = 1 to find the missing allele frequency, then compute p^2 for AA, 2pq for Aa, and q^2 for aa.

How are p and q estimated from genotype counts AA, Aa, and aa?

First compute N = AA + Aa + aa. Then estimate p = (2*AA + Aa) / (2*N) and q = (2*aa + Aa) / (2*N) = 1 - p, and use these to compute expected Hardy-Weinberg frequencies and counts.

Is the observed vs expected output a formal Hardy-Weinberg test?

No. It provides a deviation snapshot using residuals (Observed - Expected) to show which genotypes are above or below expectation, but it does not perform a chi-square or exact Hardy-Weinberg significance test.

When should I enter a population size N?

Enter N when you want expected genotype counts in addition to frequencies. If you start from genotype counts, the calculator computes N automatically as AA + Aa + aa.