Primary formula
p + q = 1 and p² + 2pq + q² = 1.
Biology calculator
Calculate Hardy-Weinberg expected genotype frequencies from allele frequency p and q, or from recessive genotype frequency q².
Calculate Hardy-Weinberg expected genotype frequencies from allele frequency p and q, or from recessive genotype frequency q².
Calculate genotype frequencies from allele frequencies.
p + q = 1 and p² + 2pq + q² = 1.
Hardy-Weinberg ideal assumptions are used. Allele frequencies are for a two-allele model. Expected counts are optional estimates.
Biology models use Decimal.js for deterministic arithmetic where useful, with documented local constants for DNA base contributions.
Required numeric, count, frequency and DNA sequence inputs are checked before calculation.
The selected Biology formula or model is applied in a pure TypeScript utility.
The result card shows formula substitutions, assumptions, warnings and related values.
A scenario-specific Biology visual appears only after a valid calculation.
Use this page for population-genetics exercises involving p, q, p², 2pq and q².
Hardy-Weinberg Calculator calculates locally and separates formula, variables, assumptions, examples, warnings and references so the result can be checked without external biology APIs.
p + q = 1 and p² + 2pq + q² = 1.
Use the default values as the worked example for Hardy-Weinberg Calculator. After Calculate, the result card shows the substituted model and a breakdown using the same engine values.
The examples are intentionally simple so the formula direction and biological assumptions are visible.
These additional examples use the same deterministic model path.
The visual for this page is a allele-to-genotype distribution visual. It appears only after Calculate, so there is no fake default result.
Visual proportions are normalized for readability and should be read as explanatory diagrams, not measured laboratory diagrams.
Most errors come from model mismatch, invalid input meaning or over-interpreting a simplified estimate.
Biology calculators are simplified models. They help with education and planning, but real organisms, lab systems and datasets can behave differently.
This calculator is for general educational use only. It does not replace laboratory protocols, institutional guidance, safety review, clinical decisions or professional biological analysis.
DNA sequence inputs are processed locally in the browser session by the calculator component and are not sent to an external biology API.
Hardy-Weinberg Calculator answers use this page for population-genetics exercises involving p, q, p², 2pq and q². It shows the model, substituted values, assumptions and a visual tied to the entered values.
Hardy-Weinberg Calculator uses p + q = 1 and p² + 2pq + q² = 1. The result breakdown shows how entered values feed the model.
Inputs for Hardy-Weinberg Calculator depend on the selected mode and are labelled in the calculator card. Required values are validated before a result appears.
Hardy-Weinberg Calculator uses deterministic TypeScript logic and local constants only.
The dynamic visual for Hardy-Weinberg Calculator is a allele-to-genotype distribution visual. It appears only after a valid calculation and includes the current result.
Important assumptions include: Hardy-Weinberg ideal assumptions are used. Allele frequencies are for a two-allele model. Expected counts are optional estimates. These are shown in the page content.
Common mistakes include Confusing q with q². Using observed genotype counts as proof of equilibrium without testing. Entering p and q values that do not sum to 1. Check units, model choice and input meaning before using the result.
Limitations include: Selection, migration, mutation, drift and nonrandom mating can change genotype frequencies. The calculator does not perform a chi-square test. Use biological context and lab procedures for critical work.
Hardy-Weinberg Calculator links to related Biology calculators so population, genetics and DNA-sequence workflows stay on canonical pages.
Hardy-Weinberg Calculator calculates locally from values entered in the browser session. It is for educational use and does not replace laboratory or professional guidance.
Hardy-Weinberg Calculator uses deterministic TypeScript logic and local constants only.
Hardy-Weinberg Calculator uses deterministic TypeScript logic and local constants only.
Biology references and local DNA constants reviewed on July 27, 2026.
This calculator provides mathematical results from the values, conventions and methods you enter. Verify important academic, engineering or professional work independently.