Hardy-Weinberg Calculator

Hardy-Weinberg Calculator

Enter either p or q. The app will calculate the missing allele frequency, then compute p², 2pq, and q².

Hardy–Weinberg Equation: p² + 2pq + q² = 1

Input

Enter p or q to begin.

Results

p
—
q
—
p + q
—
p²
—
2pq
—
q²
—
Check pending
If both p and q are entered, the calculator treats them as user-supplied values and checks whether they sum to 1.