To calculate a genotypic frequency, we simply add up the number of individuals possessing a genotype and divide by the total number of individuals in the sample (N). For a locus with three genotypes, AA, Aa, and aa, the frequency (f) of each genotype is
The sum of all the genotypic frequencies always equals 1.