Science Academy
☰✕

Hardy–Weinberg: Alleles Calculator

🧬 Genetics & evolution. Use the Hardy–Weinberg: alleles formula to find p (dominant allele), q (recessive allele): pick the value you want, type the others, and the answer updates as you go.

p+q=1p + q = 1

p = frequency of the dominant allele, q = frequency of the recessive allele.

p (dominant allele)0.3

Pick the ○ next to the value you want to find, fill in the others, and it solves as you type.

What each letter means

QuantityUnit
p (dominant allele)no unit
q (recessive allele)no unit

Worked example

Find the p (dominant allele) when q (recessive allele) = 0.7.

Using p + q = 1: p (dominant allele) = 0.3.

Frequently asked questions

What is the formula for Hardy–Weinberg: alleles?

p + q = 1. p = frequency of the dominant allele, q = frequency of the recessive allele.

What do the letters stand for, and what units are used?

p (dominant allele), q (recessive allele).

How do you calculate p (dominant allele)?

Put the values into p + q = 1. For example, with q (recessive allele) = 0.7, p (dominant allele) = 0.3.

Can I solve for a different value?

Yes. In the calculator above, pick the circle next to any value (p (dominant allele), q (recessive allele)) and fill in the others: it rearranges the formula for you.

All biology formulas in the Biology Formulas