Heterozygosity answers a simple question: how often do individuals carry two different alleles at a locus? Observed heterozygosity, or Ho, uses the genotype counts you measured. Expected heterozygosity, or He, uses allele frequencies and asks what random mating predicts.
For a biallelic SNP, He reaches its maximum of 0.50 when both alleles have equal frequencies. Multi-allelic markers can reach higher values because many alleles can spread diversity across more genotype combinations. That makes microsatellite He useful in conservation genetics, forensic marker panels, and population-structure studies.
Use this page with the Allele Frequency Calculator when you need p and q first. Use the Genotype Frequency Calculator when your main question concerns AA, Aa, and aa proportions.