Home / All calculators / Allele Frequency Calculator

Allele Frequency Calculator

Calculate allele frequencies p and q from counts of two homozygous and one heterozygous genotype.

Enter your values

Formula

p = (2 × AA + Aa) / (2N); q = (2 × aa + Aa) / (2N); p + q = 1.

How to use this calculator

  1. Enter the values using the units shown beside each field.
  2. Select the relevant option where a dropdown is provided.
  3. Choose Calculate to see the estimated result and intermediate values.

Worked example

The pre-filled values provide a sample calculation. Change one input at a time to understand how the result changes.

Assumptions and limitations

This calculator derives sample allele frequencies from genotype counts. It does not test Hardy–Weinberg equilibrium, population structure, selection or sampling uncertainty.

Updated: 17 November 2026. This educational calculator provides an estimate from the inputs and formula shown. Verify important laboratory or research work independently.

Frequently asked questions

How accurate is this result?

The result follows the formula displayed above. Accuracy depends on the quality of the input measurements and whether the assumptions apply to your situation.

Are my inputs uploaded?

This calculator runs in your browser. The calculation inputs are not sent to Friendly Calculator by the calculator code.