Skip to content
Omnikalc

Selection coefficient calculator: how fast does selection change an allele's frequency?

Enter the allele frequency, the selection coefficient and the dominance coefficient to get the mean fitness, the next generation's frequency and the genetic load.

Updated on
Your inputs

Value out of range

Value out of range

Value out of range

Results

Frequency of A in the next generation

0.6125

Mean fitness of the population
0.9600
Change in frequency of A in one generation
0.01250
Genetic load (loss of mean fitness)
0.0400
Fitness of the heterozygote Aa
0.950

Natural selection changes allele frequencies a little each generation. The selection coefficient calculator takes the frequency of the favored allele, the selection coefficient s and the dominance coefficient h, and gives the mean fitness, the frequency in the next generation, the change in one generation, the genetic load and the heterozygote fitness.

How the calculation works

  • Give the three genotypes relative fitnesses: AA = 1, Aa = 1 − h × s and aa = 1 − s. The coefficient s measures selection against aa, and h says how much of that cost shows up in the heterozygote.
  • With allele frequencies p for A and q = 1 − p for a, the mean fitness is w̄ = p² + 2pq × (1 − h × s) + q² × (1 − s).
  • The frequency of A in the next generation is p′ = (p² + pq × (1 − h × s)) ÷ w̄, and the change is p′ − p.
  • The genetic load is 1 − w̄, the average fitness lost compared with the best genotype.

Example

Allele A has a frequency of 0.60, s is 0.10 and h is 0.5, so the heterozygote has a fitness of 0.95. The mean fitness is 0.36 × 1 + 0.48 × 0.95 + 0.16 × 0.9 = 0.9600. The next generation has p′ = 0.588 ÷ 0.96 = 0.6125, a gain of 0.0125. The load is 0.04.

Why it matters

The model is the starting point of population genetics. It shows why beneficial alleles spread, why harmful recessives persist and how quickly a population can respond to a new pressure such as a drug or a pesticide.

Good to know

The model has one locus, random mating, a very large population and constant fitnesses, and it ignores mutation, migration and drift. Real selection acts on many genes at once and fitness varies with the environment. The results are best seen as an illustration of the direction and rough speed of change.

The Hardy-Weinberg calculator gives genotype frequencies before selection, and the genetic drift calculator covers random change in small populations.

Frequently asked questions

What is the selection coefficient?

It is the relative loss of fitness of a genotype compared with the fittest one. A value of 0 means no selection, and a value of 1 means the genotype leaves no offspring. It is the standard parameter for describing how strongly natural selection acts on a gene.

What does the dominance coefficient do?

It sets how much of the fitness cost shows up in the heterozygote. With h = 0 the cost appears only in aa, so A is dominant. With h = 1 the heterozygote pays the full cost and A is recessive in fitness. With h = 0.5 the effects add up and the heterozygote is halfway.

Why does selection act slowly on rare recessive alleles?

When an allele is rare, nearly all copies sit in heterozygotes, where a recessive allele has no effect. Selection can see it only in the few homozygotes, so a harmful recessive allele can persist at low frequency for a very long time, and a useful recessive one spreads slowly at first.

How does this relate to drift?

Selection pushes the allele frequency in a predictable direction, while drift moves it at random. In small populations, drift can overpower weak selection. As a rule of thumb, selection dominates when the product of the effective population size and s is much greater than 1.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.