Formula

p + q = 1

p2 + 2pq + q2 = 1

Where :

p = frequency of allele 'A';

q = frequency of allele 'a';

p2 = AA genotype frequency;

2pq = Aa genotype frequency;

and q2 = aa genotype frequency.