# Allele Frequency Calculator

In population genetics, allele frequency is used to reflect the genetic diversity of a population species. It is also referred to as gene frequency. It is a measure of relative frequency of a gene on a genetic locus in a population. The frequency is expressed in terms of percentage. Hardy-Weinberg Equation can be used to find the frequency of the gene / allele. Use this online calculator to estimate the relative frequency of a variant of a gene in a specific population using Hardy-Weinberg Equation.

## Gene Frequency Calculation using Hardy-Weinberg Equation

Code to add this calci to your website

#### Formula:

pfreq = (CH + (0.5 * H)) / (CH + H + RH)
qfreq = (RH + (0.5 * H)) / (CH + H + RH)
**Where,**
pfreq = p Allele Frequency
qfreq = q Allele Frequency
CH = Common Homozygotes
H = Heterozygotes
RH = Rare Homozygotes

#### Example

**If the common and rare homozygotes are 12 and 3 and heterozygotes is 10, then the gene frequency based on the Hardy-Weinberg Equation can be calculated as **

pfreq = (12 + (0.5 * 10)) / (12 + 10 + 3)

pfreq = 17 / 25

pfreq = 0.68

qfreq = (3 + (0.5 * 10)) / (12 + 10 + 3)

qfreq = 8 / 25

qfreq = 0.32

**Note :**This statistics calculator is presented for your own personal use and is to be used as a guide only. Medical and other decisions should NOT be based on the results of this calculator. Although this calculator has been tested, we cannot guarantee the accuracy of its calculations or results.