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 Observed genotype counts · First homozygote count 64 · Heterozygote count 32 · Second homozygote count 4. The result is ≈ 80 %.
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