Gene Flow Calculator

Calculate the effects of gene flow on population genetic structure.

Gene Flow Analysis

Key Equations

p' = (1-m)p + mร—pM

Frequency Change

Initial
0.2
Final
0.7538
Change: 0.5538 (276.92%)

Migration Dynamics

Migration Rate5.00%
Equilibrium Freq0.8000
Time to Equilibrium-90 gens
FST at Equilibrium0.0050

What Is Gene Flow and Why This Calculator Matters

Gene flow is the transfer of genetic variation from one population to another through the movement and successful reproduction of migrating individuals. It is one of the four fundamental forces of evolution, alongside mutation, genetic drift, and natural selection. The gene flow calculator on this page lets population geneticists, students, and conservation biologists quantify exactly how migration reshapes allele frequencies over time, and how much movement of individuals is implied by an observed level of genetic differentiation.

The calculator offers two complementary tools. The Migration Model projects how the allele frequency of a recipient population drifts toward the frequency of a source population as migrants arrive each generation. The From FST mode runs the calculation in reverse: starting from a measured fixation index (FST), it estimates the effective number of migrants per generation, denoted Nm. Together these modes connect the theoretical migration rate m with the empirical genetic structure that researchers actually measure from DNA data.

Whether you are modelling the homogenizing effect of pollen dispersal across a plant metapopulation, evaluating connectivity between fragmented animal habitats, or simply working through a population genetics problem set, this gene flow calculator gives you the migration rate, equilibrium frequency, and Nm estimates you need without manual iteration.

The Migration Model Formula

In the continent-island (one-way migration) model, a large source population continually sends migrants into a smaller recipient population. Each generation, a fraction m of the recipient population is replaced by individuals carrying the source allele frequency. The recipient allele frequency after one generation is a weighted average of the residents and the new arrivals.

The calculator iterates this recursion across every generation you specify, building the full trajectory from the initial recipient frequency toward equilibrium. Because migration always pulls the recipient frequency toward the source frequency, the equilibrium allele frequency equals the source frequency (pS) when migration is one-directional and selection is absent. The displayed "FST at Equilibrium" applies Wright's migration-drift relationship using an assumed effective population size of 1000.

The deviation between recipient and source shrinks by a factor of (1 - m) each generation, so smaller migration rates take far longer to erase population differentiation, while large migration rates homogenize populations rapidly.

Allele Frequency Under Migration (Island Model)

p' = (1 - m) ร— p + m ร— pS

Where:

  • p'= Recipient allele frequency in the next generation
  • p= Current recipient allele frequency (starts at pR)
  • m= Migration rate, the fraction of the recipient population replaced by migrants each generation
  • pS= Allele frequency of the source (donor) population, which is also the equilibrium frequency

Estimating Migrants From FST (Nm)

When you switch the gene flow calculator to From FST mode, it applies Sewall Wright's classic relationship between the fixation index and gene flow. The fixation index FST ranges from 0 (populations identical) to 1 (populations completely differentiated, fixed for alternative alleles). Under Wright's infinite-island model, FST is determined by the balance between genetic drift pulling populations apart and migration drawing them together.

Rearranging that equilibrium expression gives a direct estimate of Nm, the effective number of migrants exchanged per generation, where N is the effective population size and m is the migration rate. The calculator reports two estimates: the standard island-model value and a one-dimensional stepping-stone approximation, which assumes migrants move only between adjacent populations.

A widely used rule of thumb states that Nm greater than 1 (roughly one migrant per generation) is usually enough to prevent populations from differentiating by drift alone, whereas Nm less than 1 allows drift to dominate and genetic divergence to accumulate.

Effective Migrants From FST

Nm = (1 / FST โˆ’ 1) / 4 (island); Nm = (1 / FST โˆ’ 1) / 2 (1D stepping stone)

Where:

  • Nm= Effective number of migrants per generation (N = effective population size, m = migration rate)
  • FST= Fixation index measuring genetic differentiation among populations (0 to 1)

Interpreting Your Gene Flow Results

The calculator translates raw numbers into biological meaning. In Migration Model mode you see the initial and final recipient frequencies, the absolute and percentage change, the equilibrium frequency, and an estimate of how the FST equilibrium would settle. In FST mode the calculator classifies the level of gene flow and the degree of differentiation. The table below summarises how Nm values map to qualitative interpretations used by the tool.

Nm Value Gene Flow Level Population Consequence
Nm ≥ 4 High Populations essentially panmictic (one gene pool)
1 ≤ Nm < 4 Moderate Gene flow limits differentiation
0.25 ≤ Nm < 1 Low Some differentiation accumulates
Nm < 0.25 Very low Populations highly differentiated by drift

The differentiation label shown by the calculator follows common FST thresholds: below 0.05 is low, 0.05 to 0.15 is moderate, 0.15 to 0.25 is high, and above 0.25 is very high.

Real-World Applications of Gene Flow Analysis

Gene flow calculations are central to conservation genetics, evolutionary biology, agriculture, and epidemiology. In conservation, low Nm values signal that fragmented populations are becoming genetically isolated and may need wildlife corridors or assisted migration to maintain diversity and avoid inbreeding depression. In plant breeding and agriculture, migration-rate modelling predicts how transgenes or herbicide-resistance alleles spread from cultivated fields into wild relatives.

In evolutionary studies, gene flow estimates reveal whether populations are diverging toward speciation or remaining cohesive. High gene flow tends to homogenize populations and counteract local adaptation, while restricted gene flow permits divergence. Epidemiologists apply the same migration framework to track how drug-resistance alleles move through pathogen and vector populations.

Because the gene flow calculator links the abstract migration rate m to the measurable fixation index FST, it bridges theory and field data. Researchers can plug in an FST computed from microsatellite or SNP datasets to recover an effective migration estimate, or run the forward migration model to forecast how many generations of dispersal are required before two populations converge.

Worked Examples

Migration Model: Source 0.8, Recipient 0.2, m = 0.05

Problem:

A recipient population has allele frequency 0.2. A source population at frequency 0.8 sends migrants at a rate of m = 0.05 per generation. Where is the recipient frequency after 50 generations?

Solution Steps:

  1. 1Apply p' = (1 - m)p + mยทpS each generation. Generation 1: (0.95)(0.2) + (0.05)(0.8) = 0.2300.
  2. 2Generation 2: (0.95)(0.2300) + (0.05)(0.8) = 0.2585. Generation 3: (0.95)(0.2585) + (0.05)(0.8) = 0.2856.
  3. 3Continue iterating the recursion for all 50 generations; the frequency climbs steadily toward the source value of 0.8.
  4. 4After 50 generations the recipient frequency reaches 0.7538, an absolute change of 0.5538 (about 276.92%).

Result:

Final recipient frequency = 0.7538; equilibrium frequency = 0.8000 (the source frequency).

Migration Model: Faster Migration, m = 0.1 Over 10 Generations

Problem:

A recipient population starts at frequency 0.1 with a source at 0.6 and a higher migration rate m = 0.1. What happens in just 10 generations?

Solution Steps:

  1. 1Generation 1: (0.9)(0.1) + (0.1)(0.6) = 0.1500. Generation 2: (0.9)(0.1500) + (0.1)(0.6) = 0.1950.
  2. 2Generation 3: (0.9)(0.1950) + (0.1)(0.6) = 0.2355, and the recursion continues toward the source frequency.
  3. 3After 10 generations the recipient frequency reaches 0.4257, a change of 0.3257 from the starting 0.1.
  4. 4Because m is larger here, the gap to the source closes much faster than in the m = 0.05 example.

Result:

Final recipient frequency = 0.4257 after 10 generations; equilibrium remains 0.6000.

From FST: Estimating Nm From Measured Differentiation

Problem:

A genetic survey of populations yields FST = 0.1. How many effective migrants per generation does this imply under the island and stepping-stone models?

Solution Steps:

  1. 1Island model: Nm = (1/FST - 1)/4 = (1/0.1 - 1)/4 = (10 - 1)/4 = 9/4 = 2.2500.
  2. 2Stepping-stone (1D): Nm = (1/FST - 1)/2 = (10 - 1)/2 = 9/2 = 4.5000.
  3. 3Since the island estimate Nm = 2.25 is greater than 1, gene flow is moderate and limits differentiation.
  4. 4An FST of 0.1 falls in the 0.05 to 0.15 band, so the calculator labels differentiation as Moderate.

Result:

Nm (island) = 2.2500 and Nm (stepping stone) = 4.5000; moderate gene flow.

From FST: Low Gene Flow With FST = 0.25

Problem:

Two highly structured populations show FST = 0.25. Is gene flow strong enough to prevent drift-driven divergence?

Solution Steps:

  1. 1Island model: Nm = (1/0.25 - 1)/4 = (4 - 1)/4 = 3/4 = 0.7500.
  2. 2Stepping-stone: Nm = (1/0.25 - 1)/2 = (4 - 1)/2 = 3/2 = 1.5000.
  3. 3The island estimate Nm = 0.75 is below 1, so drift can overcome gene flow and differentiation accumulates.
  4. 4FST = 0.25 sits at the boundary of the high differentiation band, confirming substantial genetic structure.

Result:

Nm (island) = 0.7500 indicates low gene flow; populations are differentiating.

Tips & Best Practices

  • โœ“Migration rate m must be between 0 and 1; it represents the fraction of the recipient population replaced by migrants each generation.
  • โœ“In the Migration Model, the equilibrium frequency always equals the source frequency, so set pS to your expected long-term value.
  • โœ“Use the From FST mode when you have an FST computed from real microsatellite or SNP data and want to recover gene flow.
  • โœ“Remember the rule of thumb: Nm greater than 1 generally prevents differentiation, while Nm less than 1 lets drift dominate.
  • โœ“A larger migration rate dramatically shortens the time needed for populations to converge, so compare m = 0.05 versus m = 0.1 to see the effect.
  • โœ“FST values above 0.25 indicate very high differentiation and usually correspond to low gene flow (small Nm).
  • โœ“The stepping-stone Nm estimate is always twice the island estimate in this tool, reflecting more restricted dispersal.
  • โœ“Pair this calculator with an FST calculator and an effective population size calculator for a complete population-structure analysis.

Frequently Asked Questions

The Migration Model projects forward in time, showing how a recipient population's allele frequency changes generation by generation as migrants arrive at rate m. The From FST mode works backward, taking a measured fixation index and estimating the effective number of migrants (Nm) that would produce that level of differentiation. Use the migration model for forecasting and the FST mode for interpreting real DNA data.
In the one-way (continent-island) migration model, migrants continually carry the source allele frequency into the recipient population while no alleles flow back. Over many generations this steadily pulls the recipient frequency toward the source frequency until they match. Without opposing selection or back-migration, the only stable point is when the recipient frequency equals the source frequency pS.
Nm is the product of the effective population size (N) and the migration rate (m), and it represents the effective number of migrants exchanged between populations each generation. It is a more biologically meaningful quantity than m alone because it captures absolute migrant numbers. The classic threshold is that roughly one migrant per generation (Nm = 1) is enough to counteract genetic drift and keep populations genetically connected.
The island model assumes any population can exchange migrants with any other, so it uses Nm = (1/FST - 1)/4. The one-dimensional stepping-stone model restricts migration to neighbouring populations arranged in a line, which is captured by Nm = (1/FST - 1)/2. Because dispersal is more limited in a stepping-stone arrangement, the same FST implies a larger per-step migration estimate, exactly twice the island value in this calculator.
The calculator derives a generation timescale from the migration rate using the logarithmic decay of the difference between recipient and source frequencies, since that gap shrinks by a factor of (1 - m) each generation. Smaller migration rates make the difference decay slowly, requiring many more generations to approach equilibrium, while large migration rates homogenize populations within a handful of generations. The reported value is a theoretical estimate based on the migration rate alone.
Yes. Gene flow is a homogenizing force that mixes alleles between populations and counteracts the divergence driven by drift and local selection. When Nm is high, populations behave almost as a single panmictic gene pool, which strongly opposes speciation. Speciation typically requires gene flow to be substantially reduced or interrupted, allowing genetic and reproductive differences to accumulate.

Sources & References

Last updated: 2026-06-05

๐Ÿ’ก

Help us improve!

How would you rate the Gene Flow Calculator?

<>

Editorial Note

MyCalcBuddy Editorial Team

This page is maintained as an educational calculator reference.

Source

Formula Source: Standard Mathematical References

by Various

UpdatedLast reviewed: May 2026
CheckedFormula checks are based on standard references and internal QA review.

Privacy choices

MyCalcBuddy uses necessary storage for the site to work. Optional analytics, notifications, and future advertising features stay off unless you allow them.