How to calculate
Count two copies per homozygote and one per heterozygote to estimate allele frequency from observations. For recessive prevalence take the square root to obtain q.
Worked example
Use Known quantities First allele frequency · Selected frequency (%) 80. The result is ≈ 32 %.
Input and result notes
The expected proportions assume two alleles and Hardy–Weinberg conditions. The observed-count method estimates allele frequencies directly.
OpenStax biology on allele frequencies