Search Tools

Linkage Disequilibrium (D, D′ and r²)

Report an issue

Calculate LD measures based on allele frequencies from phased two-locus haplotype counts

For phased haplotype counts at two loci, each with two alleles. Missing data are not assumed to be zero.

Enter 0 when none are missing. Include only haplotypes with both loci known in the four AB, Ab, aB and ab fields.

Results

Results update automatically when the required values are entered.

Method, applicability and sources

Calculation method

N = AB + Ab + aB + ab; p(A) = (AB + Ab)/N; p(B) = (AB + aB)/N; p(AB) = AB/N; D = p(AB) − p(A)p(B). Minimum D = −min[p(A)p(B), (1−p(A))(1−p(B))]; maximum D = min[p(A)(1−p(B)), (1−p(A))p(B)]. D′ = D / maximum when D >0, D / |minimum| when D <0, and 0 when D =0. r² = D² / [p(A)(1−p(A))p(B)(1−p(B))]. N and frequencies use complete cases only. D′ and r² are not calculated for monomorphic loci.

Worked example (hypothetical values)

AB =40, Ab =10, aB =20, ab =30 and missing =0 give N =100, p(A) =0.5, p(B) =0.6, D =0.1, D′ =0.5 and r² =1/6 (approximately 0.16666667).

Applicability and limitations

Counts of phased AB, Ab, aB and ab haplotypes from the same population and observation set. Does not infer haplotypes from unphased genotypes or marker dosage, impute missing data, handle multiallelic loci, provide tests or confidence intervals, identify LD blocks or assess disease. D′ and r² are undefined for monomorphic loci.

Methods used

  • Complete-case haplotype frequencies (D = pAB − pA pB; D′ = D / maximum feasible absolute value for its sign; r² = D² / [pA(1−pA)pB(1−pB)]): scope Known phase, two loci, two alleles at each locus; region global

Method and sources

Method: Definition equations for Lewontin D′ (1964) and Hill–Robertson r² (1968), checked November 14, 2026. Data recorded: 2026-11-14.