Natural Selection Calculator

Enter initial allele frequency and genotype fitness values to see how p and q change over generations.

Answer

0.8392

Final allele A frequency (p)

Final allele a frequency (q): 0.1608

Change in p: 0.2392

Mean fitness: 0.9665

Generation: 10

Use relative fitness values. A genotype with fitness 1 is the reference; lower values are selected against.

Final genotype frequencies after selection

AA0.7286
Aa0.2513
aa0.0201

Generation table

GenpqMean fitness
00.60.40.912
10.63160.36840.9195
20.66150.33850.9266
30.68980.31020.9331
40.71630.28370.9392
50.7410.2590.9448
60.76390.23610.95
70.78520.21480.9547
80.80470.19530.959
90.82270.17730.963
100.83920.16080.9665

Formula

p' = (p^2 wAA + p q wAa) / wbar

The calculator uses diploid viability selection. Mean fitness is wbar = p^2 wAA + 2pq wAa + q^2 waa.

SymbolVariableDescription
pAllele A frequencyStarting frequency of the A allele.
qAllele a frequencyq = 1 - p.
wFitnessRelative fitness for each genotype.

How to use it

  1. 1

    Enter p

    Use a value from 0 to 1 for the initial A allele frequency.

  2. 2

    Set fitness

    Enter relative fitness for AA, Aa, and aa.

  3. 3

    Read the final frequency

    The answer area shows final p, final q, and change in p.

Fitness inputs

Relative fitness values compare genotypes within the same environment.

InputMeaning
1Reference or highest fitness
0.820% lower relative fitness
0No contribution after selection

Natural selection FAQ

Related calculators

More tools

Browse more calculator categories

All calculators