Enter the frequency of the first allele and the frequency of the second allele into the calculator to determine the Hardy-Weinberg equilibrium value. This calculator can also evaluate any of the variables given the others are known.

## Hwe Formula

The following formula is used to calculate the Hwe (Hardy-Weinberg equilibrium) value.

Hwe = (2 * p * q)^2

Variables:

- Hwe is the Hardy-Weinberg equilibrium value p is the frequency of the first allele in the population q is the frequency of the second allele in the population

To calculate the Hwe value, multiply the frequency of the first allele by the frequency of the second allele, then multiply the result by 2. Square the result to get the Hwe value.

## How to Calculate Hwe?

The following steps outline how to calculate the Hardy-Weinberg equilibrium value (Hwe) using the formula: Hwe = (2 * p * q)^2.

- First, determine the frequency of the first allele in the population (p).
- Next, determine the frequency of the second allele in the population (q).
- Next, calculate 2 * p * q.
- Finally, square the result from step 3 to calculate the Hardy-Weinberg equilibrium value (Hwe).

**Example Problem:**

Use the following variables as an example problem to test your knowledge:

Frequency of the first allele in the population (p) = 0.6

Frequency of the second allele in the population (q) = 0.4