Population Genetics Calculator: Allele Frequencies, Heterozygosity, PIC and Gst
Paste your genotype table (one row per individual, one column per marker, genotypes like 150/152) and get the classic diversity statistics for every marker and population: allele frequencies, number and effective number of alleles, observed and expected heterozygosity, polymorphism information content (PIC), inbreeding coefficient F and Nei’s Gst. Ready for the marker table in your thesis.
- PriceFree, no login or sign-up needed
- Your dataProcessed in your browser, never uploaded
- Works onPhone, tablet or computer, any modern browser
- Made byDr. Muhammad Aammar Tufail, Codanics
- Published17 November 2026
- Last updated16 November 2026
📚 How to cite this tool
This tool is free. If it helped your thesis, paper, report or assignment, please cite it. It keeps the tools free and helps other students find them.
Tufail, M. A. (2026). Population genetics calculator: allele frequencies, heterozygosity, PIC and Gst [Online tool]. Codanics. Retrieved 16 November 2026, from https://codanics.com/tools/population-genetics-calculator/
In-text citation: (Tufail, 2026) · Narrative: Tufail (2026)
The access date is today’s date, filled in automatically. Author: Muhammad Aammar Tufail. Published 17 November 2026.
How to use the Population Genetics Calculator
- Paste or upload your genotype table: one row per individual, an optional column with the population name, and one column per marker with genotypes like 150/152 (SSR) or A/G (SNP). Two columns per marker (one per allele) also work.
- Check the detected format and population column, and list the codes you use for missing data (0, NA, ? …).
- Click Calculate diversity to get Na, Ne, Ho, He, PIC and F for each marker, the means, per-population diversity and Gst, and the allele frequencies.
- Copy the marker table into Word, copy the results sentence, or download everything as CSV.
The statistics and their formulas
Interpreting PIC
The polymorphism information content measures how useful a marker is for distinguishing individuals or tracing inheritance. Botstein et al. (1980) classed markers as highly informative (PIC > 0.5), reasonably informative (0.25–0.5) and slightly informative (< 0.25). PIC is always slightly smaller than He (1 − Σp²), because it discounts matings in which both parents share the same heterozygous genotype.
Observed vs expected heterozygosity
Ho lower than He (positive F) suggests inbreeding, self-pollination, null alleles or population substructure (the Wahlund effect). Ho higher than He (negative F) can follow outcrossing, heterozygote advantage or recent admixture. To test a single biallelic marker formally, use the Hardy–Weinberg calculator.
Genetic differentiation (Gst)
Nei’s Gst is the share of total gene diversity found between populations: 0 means no differentiation, values above 0.15 are usually considered large. Because Gst cannot reach 1 when within-population diversity is high (common with SSRs), Hedrick’s standardised G′st is also given. For publication-grade F-statistics with confidence intervals and permutation tests, use dedicated software such as GenAlEx, Arlequin or the R packages adegenet and hierfstat.
How to report it
A marker table usually lists, for each SSR: the number of alleles, allele size range, Ho, He and PIC, with means at the bottom. In the text: “The 12 SSR markers detected 58 alleles (mean 4.8 per locus); mean Ho, He and PIC were 0.41, 0.62 and 0.56, respectively.”
References: Botstein D et al. (1980) Am J Hum Genet 32:314 · Nei M (1973) PNAS 70:3321 · Nei M (1978) Genetics 89:583 · Hedrick PW (2005) Evolution 59:1633 · Peakall R, Smouse PE (2012) Bioinformatics 28:2537 (GenAlEx).
Frequently asked questions
How do I calculate PIC for SSR markers?
From the allele frequencies at each marker: PIC = 1 − Σpᵢ² − ΣΣ 2pᵢ²pⱼ² over all pairs of alleles. Paste your genotype table and the tool calculates PIC for every marker together with heterozygosity.
What is the difference between He and PIC?
He (gene diversity) is the probability that two randomly chosen alleles differ. PIC is slightly smaller and measures how informative the marker is in a linkage or parentage context. Many papers report both.
Which He is reported: biased or unbiased?
The table shows Nei’s (1978) unbiased He, which corrects for sample size; the biased value 1 − Σp² is included in the CSV. With 20 or more individuals the difference is small.
Can I use SNP or dominant markers?
SNPs and any codominant markers work (genotypes like A/G or 1/2). Dominant markers such as RAPD, ISSR or AFLP scored as presence/absence cannot give heterozygosity per individual and need other methods.
How is missing data handled?
Individuals with a missing genotype are left out of that marker only, so N can differ between markers. Type your missing-data codes in the box.
Is my data uploaded?
No. The calculation runs in your browser and nothing is stored.
Do I need to log in or create an account to use the Population Genetics Calculator?
No. There is no login, no sign-up and no email required. Open the page and start using it straight away, for free, on any device.
How do I cite this tool in my thesis or paper?
Use the citation box on this page. In APA 7th edition: Tufail, M. A. (2026). Population genetics calculator: allele frequencies, heterozygosity, PIC and Gst [Online tool]. Codanics. Retrieved [date you used it], from https://codanics.com/tools/population-genetics-calculator/. BibTeX, RIS (EndNote, Mendeley, Zotero), MLA, Harvard, Chicago and Vancouver formats are also available.
Free guides and courses from Codanics
More free tools
See all free Codanics tools → · Codanics on YouTube · WhatsApp channel