CalcWorldHub
Free online calculator · no signup

Nei allele frequency genetic distance calculator

Compare two aligned allele-frequency vectors using single-locus Nei genetic identity and logarithmic distance.

4,000 tools
Nei allele frequency genetic distance calculator — First population allele frequencies, Second population frequencies, aligned alleles and calculation method
Nei allele frequency genetic distance calculator: inputs and calculation method.

How to use this calculator

Compare two aligned allele-frequency vectors using single-locus Nei genetic identity and logarithmic distance.

  1. Enter First population allele frequencies, Second population frequencies, aligned alleles. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

Nei allele frequency genetic distance explained

Nei identity compares aligned allele frequencies in two populations, normalizing shared-frequency overlap by each population’s frequency concentration. The logarithmic distance grows as identity falls and is infinite when the populations share no allele.

Nei single-locus distance0.1772
Nei single-locus distance: 0.17720197 in the worked scenario.

Inputs, symbols, and units

p — First population allele frequencies
First population allele frequencies. Use comma-separated values in the stated order.
q — Second population frequencies, aligned alleles
Second population frequencies, aligned alleles. Use comma-separated values in the stated order.

Formula and method

I=Σpiqi/√(Σpi²Σqi²); D=−ln I

Compute shared-frequency overlap and normalize it by the two squared-frequency sums. This yields genetic identity I between zero and one under the entered frequency vectors. Taking −ln I gives the single-locus distance; no shared allele makes that distance infinite.

A worked scenario

First population allele frequencies = 0.7, 0.3; Second population frequencies, aligned alleles = 0.4, 0.6.

  • Nei single-locus distance: 0.17720197
  • Genetic identity: 0.8376106

This scenario uses the stated units and assumptions. Displayed values are rounded only after calculation.

Assumptions and edge cases

Single-locus descriptive form without finite-sample bias correction; this is not a multilocus estimator unless the appropriate locus averaging is supplied separately.

Frequently asked questions

Can allele order differ between lists?

No, aligned positions must denote the same allele.

What if populations share no allele?

Identity is zero and distance is reported as Infinite.

Does distance have physical units?

No.

How do I use the Nei allele frequency genetic distance calculator?

Enter First population allele frequencies, Second population frequencies, aligned alleles. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Nei allele frequency genetic distance?

First population allele frequencies = 0.7, 0.3; Second population frequencies, aligned alleles = 0.4, 0.6. Nei single-locus distance: 0.17720197 Genetic identity: 0.8376106 This scenario uses the stated units and assumptions. Displayed values are rounded only after calculation.