Home / All calculators / Biology & Chemistry

Hardy-Weinberg Equilibrium Calculator

Calculate allele frequencies and expected genotype frequencies under the two-allele Hardy–Weinberg model.

Enter your values

Formula

p = (2AA + Aa) ÷ 2N; q = 1 − p; expected genotype frequencies are p², 2pq and q².

How to use this calculator

  1. Enter each value in the unit shown.
  2. Check that the values describe the same sample or experiment.
  3. Select Calculate to view the result and intermediate values.

Worked example

The pre-filled values are an illustrative example. Change the inputs to explore how the formula responds.

Assumptions and limitations

Calculate allele frequencies and expected genotype frequencies under the two-allele Hardy–Weinberg model. The output is an educational estimate based on the displayed formula. Experimental conditions, assay design and measurement quality can affect real-world results. Verify important laboratory decisions with validated methods and qualified supervision.

Updated: 17 November 2026. Inputs are processed in your browser by this calculator.

Frequently asked questions

What formula does this calculator use?

p = (2AA + Aa) ÷ 2N; q = 1 − p; expected genotype frequencies are p², 2pq and q².

Are my inputs uploaded?

The calculation runs in your browser; the form values are not submitted to Friendly Calculator.