The amount of genetic variation within a population or species.