Skip to content
Omnikalc

Fst calculator: how different are two populations at a genetic locus?

Enter the allele frequency and size of two populations to get the fixation index Fst, the heterozygosity within and across populations and the migrants per generation.

Updated on
Your inputs

Value out of range

Value out of range

Value out of range

Value out of range

Results

Fst

0.160

Great differentiation The populations are quite distinct.

Migrants per generation to produce this Fst

1.31

Expected heterozygosity of the whole population
0.500
Mean expected heterozygosity within populations
0.420
Mean allele frequency
0.500
Share of the variation found between populations
16.0%

Fst, Wright’s fixation index, measures how much the genetic variation of a species is split between its populations. If two groups share the same allele frequencies, Fst is 0. If one group carries only one allele and the other group only the other one, Fst is 1. This calculator gives Fst for a two-allele locus in two populations, together with the heterozygosity values it comes from and the number of migrants per generation that would produce such a value.

How the calculation works

  • Mean allele frequency p̄ = w₁p₁ + w₂p₂, with weights w from the population sizes
  • Total heterozygosity H_T = 2 p̄ (1 − p̄)
  • Within-population heterozygosity H_S = w₁ × 2p₁(1 − p₁) + w₂ × 2p₂(1 − p₂)
  • Fst = (H_T − H_S) ÷ H_T
  • Gene flow Nm ≈ (1 ÷ Fst − 1) ÷ 4

Example

Two populations of equal size have the allele at frequencies 0.7 and 0.3. The mean frequency is 0.500, the total heterozygosity is 0.500 and the average within populations is 0.420. Therefore Fst is 0.160: 16.0 % of the variation is found between the populations. In Wright’s island model, this corresponds to about 1.31 migrants exchanged per generation.

Why it matters

Fst is a standard way to measure population structure, in conservation (is a species one population or several?), in human genetics and in breeding. A high value suggests isolation, local adaptation or drift. Low values suggest that gene flow keeps the populations similar. Wright’s rule of thumb is that Nm above 1 migrant per generation is enough to prevent strong differentiation by drift.

Good to know

This version uses one locus with two alleles. Real studies average Fst over many loci and use estimators that correct for small samples, such as Weir and Cockerham’s. Fst depends on the allele frequencies, so it is limited at loci with high diversity, like microsatellites. The island model assumes equal migration, constant sizes and no selection or mutation, so the Nm estimate is a rough guide. Interpret the thresholds of 0.05, 0.15 and 0.25 as conventions and not as sharp limits.

In practice

Use the tool to build intuition: set both frequencies equal to see Fst drop to zero, then separate them. Compare with data from many loci in a population genetics package before drawing conclusions.

Frequently asked questions

What does an Fst of 0.16 mean?

It means 16 % of the genetic variation at the locus is between the populations and 84 % is within them. By Wright's guide, this is a great differentiation.

Can Fst be negative?

The formula in this calculator is between 0 and 1. Estimators used on real samples can give small negative values by chance, which are read as zero.

What is Nm?

It is the effective number of migrants per generation. In the island model, Fst ≈ 1 ÷ (4Nm + 1), so one migrant per generation gives an Fst of 0.2.

Why weight the populations by size?

A large population contributes more to the mean allele frequency and heterozygosity. If you leave the sizes equal, you get the unweighted index.

Was this calculator helpful?

Thanks for your feedback!

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