Hardy-Weinberg Calculator
Calculate allele and genotype frequencies in a population using the Hardy-Weinberg equilibrium principle. Essential for population genetics.
This free online hardy-weinberg calculator provides instant results with no signup required. All calculations run directly in your browser — your data is never sent to a server. Enter your values below and see results update in real time as you type. Perfect for everyday calculations, homework, or professional use.
Minimum: 0
Results
Homozygous Dominant (p²)
0.49
Heterozygous (2pq)
0.42
Homozygous Recessive (q²)
0.09
Recessive Allele Frequency (q)
0.3
How to Use This Calculator
Enter your input values
Fill in all required input fields for the Hardy-Weinberg Calculator. Most fields include unit selectors so you can work in your preferred unit system — metric or imperial, whichever matches your problem.
Review your inputs
Double-check that all values are correct and that you have selected the right units for each field. Incorrect units are the most common source of calculation errors and can produce results that are off by factors of 2, 10, or more.
Read the results
The Hardy-Weinberg Calculator instantly computes the output and displays results with units clearly labeled. All calculations happen in your browser — no loading time and no data sent to a server.
Explore parameter sensitivity
Try adjusting individual input values to see how the output changes. This is a quick and effective way to develop intuition about how different parameters influence the result and to identify which inputs have the largest effect.
Formula Reference
Hardy-Weinberg Calculator Formula
See calculator inputs for the governing equation
Variables: All variables and their units are labeled in the calculator interface above. Input fields accept values in multiple unit systems — select your preferred unit from the dropdown next to each field.
When to Use This Calculator
- •Use the Hardy-Weinberg Calculator when you need accurate results quickly without the risk of manual computation errors or unit conversion mistakes.
- •Use it to verify calculations made by hand or in spreadsheets — an independent check can catch errors before they lead to costly decisions.
- •Use it to explore how changing input parameters affects the output — a quick way to develop intuition and identify the most influential variables.
- •Use it when collaborating with others to ensure everyone is working from the same numbers and applying the same assumptions.
About This Calculator
The Hardy-Weinberg Calculator is a free, browser-based calculation tool for engineers, students, and technical professionals. Calculate allele and genotype frequencies in a population using the Hardy-Weinberg equilibrium principle. Essential for population genetics. It implements standard formulas and supports both metric (SI) and imperial unit systems with automatic unit conversion. All calculations are performed instantly in your browser with no data sent to a server. Use this calculator as a quick reference and sanity-check tool during design, analysis, and learning. Always verify results against primary engineering references and applicable standards for any safety-critical application.
About Hardy-Weinberg Calculator
The Hardy-Weinberg Calculator is the foundation of population genetics, allowing you to calculate allele and genotype frequencies in an idealized population. The Hardy-Weinberg principle, formulated independently by G.H. Hardy and Wilhelm Weinberg in 1908, states that allele and genotype frequencies in a population remain constant from generation to generation in the absence of evolutionary forces (mutation, migration, genetic drift, non-random mating, and selection). This calculator helps biology students and researchers understand expected genetic distributions, identify when populations are NOT in equilibrium (suggesting evolution is occurring), and predict carrier frequencies for genetic diseases. Hardy-Weinberg is the null hypothesis against which all evolutionary change is measured.
The Math Behind It
Formula Reference
Hardy-Weinberg Equation
p² + 2pq + q² = 1
Variables: p = dominant allele freq, q = recessive allele freq
Allele Sum
p + q = 1
Variables: Allele frequencies must sum to 1
Worked Examples
Example 1: Calculating Genotype Frequencies
In a population, the dominant allele frequency p = 0.7. What are the genotype frequencies?
49% AA, 42% Aa, 9% aa. The recessive trait will appear in 9% of the population, but 42% are carriers.
Example 2: Carrier Frequency from Disease Rate
A genetic disease affects 1 in 10,000 people. What's the carrier frequency?
Even though only 1 in 10,000 have the disease, about 1 in 50 people (2%) carry the allele. This is why disease-screening matters even for rare conditions.
Common Mistakes & Tips
- !Forgetting that p² is the dominant homozygote frequency, not the dominant allele frequency. p is the allele frequency.
- !Confusing dominant phenotype with homozygous dominant. The dominant phenotype includes both AA and Aa.
- !Adding the heterozygous frequency without the factor of 2. There are two ways to be heterozygous.
- !Applying Hardy-Weinberg when assumptions are clearly violated (e.g., very small populations or strong selection).
Related Concepts
Used in These Calculators
Calculators that build on or apply the concepts from this page:
Frequently Asked Questions
Why is Hardy-Weinberg called 'equilibrium'?
Because under the assumed conditions, allele frequencies remain CONSTANT from one generation to the next — they're at equilibrium. Without evolutionary forces, p stays p and q stays q forever. The equilibrium is reached after one generation of random mating, regardless of the starting genotype frequencies. The genetic 'state' of the population doesn't change over time.
Can a population be in Hardy-Weinberg equilibrium?
Approximately, yes, but never perfectly. Real populations always experience some mutation, selection, migration, and drift. However, for traits where these forces are weak, populations can be CLOSE to equilibrium. This is why we treat H-W as a 'null hypothesis' — we expect deviations and look for them as evidence of evolution.
How do I calculate allele frequencies from observed genotypes?
If you observe AA, Aa, and aa frequencies: p = (2 × AA + Aa) / (2 × total), and q = 1 - p. The factor of 2 accounts for AA having TWO dominant alleles, while Aa has one. This gives you allele frequencies that you can then plug into H-W to test if observed = expected.
What if the trait is X-linked?
X-linked genes use modified Hardy-Weinberg equations because males have only one X chromosome (and thus only one allele). For X-linked recessive: female frequency q² (homozygous), but male frequency q (just need one allele). This is why X-linked recessive diseases (like color blindness, hemophilia) are much more common in males.