Free AI-Assisted
Hardy-Weinberg Calculator
Test Hardy-Weinberg for 2–6 alleles with De Finetti plots and simulation—free, no account. Built-in AI agent assistant support.
Need help with bioinfo analysis? See our bioinformatics services.
Key facts
| Fact | Value |
|---|---|
| Inputs (Calculator) | Genotype counts (default), allele frequencies (expected genotypes only), or carrier incidence (biallelic: 1 in N, proportion q², or percent) |
| Allele range | 2–6 alleles; genotype grid auto-generates |
| Statistical tests | Chi-square (χ², df, p); Guo-Thompson exact or exhaustive exact; F (inbreeding); primary test auto-selected when expected counts < 5 |
| Charts | De Finetti plot for 2–3 alleles; observed vs expected bar chart for 4+ |
| Simulator | 1–10,000 generations; N_e 10–10,000; selection, mutation, migration sliders |
| Exports | PNG, SVG, CSV, copy methods text (Calculator); PNG, SVG, CSV (Simulator) |
| Runs in browser | Yes — no install |
| Account required | No |
| Data upload | Local only — paste tab-separated counts into genotype grid |
What it does
Hand-built chi-square tables and biallelic-only web calculators break on microsatellite, MHC, and triallelic SNP data—one transposed genotype count throws off every expected frequency. The Hardy-Weinberg Calculator accepts observed genotype counts for 2–6 alleles, runs equilibrium tests, and returns plain-language verdicts with publication-ready charts and exports in one browser session.
Open the Calculator tab. Set Allele count (2–6). Choose Genotype counts, Allele frequencies, or Carrier incidence (biallelic only). Enter counts in the auto-generated grid—or paste tab-separated values from a spreadsheet. For carrier risk, pick 1 in N, Proportion (q²), or Percent (%) and enter disease incidence. Click Analyze for chi-square and exact test p-values, F statistic, heterozygosity, observed-vs-expected table, dynamic Hardy-Weinberg equation, verdict badge, and a De Finetti plot (2–3 alleles) or bar chart (4+). Use Export PNG, Export SVG, Export CSV, or Copy methods text.
Switch to the Simulator tab to model Wright-Fisher allele frequency change across generations. Set initial frequencies, Generations, N_e (drift), and Evolutionary forces sliders (selection per allele, mutation rate, migration rate with migrant population frequencies). Click Run for an animated trajectory chart; export PNG, SVG, or CSV.
Why researchers use it
- Test microsatellite and MHC loci beyond two alleles
- Avoid hand-built chi-square and exact test spreadsheets
- Spot inbreeding or genotyping errors with plain verdicts
- Export De Finetti plots and methods text for papers
- Estimate carrier frequency from disease incidence
- Simulate drift and selection without deprecated Flash apps
Best for
- Microsatellite and multiallelic SNP QC checks
- Population genetics teaching and problem sets
- MN blood group and classic HWE textbook examples
- Estimating carrier risk from recessive disease incidence
- Modeling when equilibrium breaks down over generations
- Quick methods-text and figure export before manuscript submission
When to use this vs alternatives
Choose this tool when a single locus needs multiallelic HWE testing, De Finetti visualization, plain-language interpretation, and optional drift simulation in one free browser page. Use R packages like HardyWeinberg or PLINK when you need scripted batch testing across thousands of variants. Science Primer and similar calculators fit quick frequency exploration but lack exact tests, export, and simulation. For Mendelian inheritance crosses—not population allele frequencies—use the Mendelian Cross Solver.
What makes it different
Most alternatives handle one piece—multiallelic math, statistical testing, visualization, or simulation—but not all four with export in a free browser workflow. R HardyWeinberg covers multiallelic tests and ternary plots but requires scripting. PLINK batch-tests genome-wide data but offers no single-locus visualization. Science Primer explores multiallelic frequencies but lacks statistical tests, export, and simulation.
This calculator combines single-locus HWE testing (chi-square and Guo-Thompson exact), F statistic, De Finetti plots, plain-language verdicts, and a Wright-Fisher simulator with evolutionary forces—in one browser page, free, with PNG/SVG/CSV export and copy-ready methods text. Researchers switch when biallelic calculators cannot handle their locus, spreadsheet tables risk transcription errors, or they need a citable De Finetti figure without installing software.
How to get started
- Open the workspace and stay on the Calculator tab.
- Set Allele count (2–6) and choose Genotype counts, Allele frequencies, or Carrier incidence.
- Enter genotype counts in the grid—or paste tab-separated counts from a spreadsheet.
- Click Analyze and review chi-square, exact test, F statistic, verdict badge, and chart.
- Click Export PNG, Export SVG, Export CSV, or Copy methods text as needed.
- For simulation, open the Simulator tab, set initial frequencies, Generations, N_e (drift), and Evolutionary forces sliders, then click Run.
Frequently asked questions
What is Hardy-Weinberg equilibrium?
How do I test Hardy-Weinberg with more than two alleles?
When does the calculator use the exact test instead of chi-square?
How do I estimate carrier frequency from disease incidence?
What is a De Finetti plot?
Client source code & registry
Last updated . Pepkio builds free lab calculators alongside bioinformatics CRO services.