Allele Frequency Calculator
Enter how many individuals carry each genotype at a two-allele locus, AA, Aa and aa, and this calculator counts alleles directly to find the dominant (A) and recessive (a) frequencies. It also reports the total allele pool and how many copies of each allele the population holds. The frequencies always add to one, and the whole calculation runs in your browser.
How to find allele frequencies
- Count your sample by genotype: homozygous dominant (AA), heterozygous (Aa) and homozygous recessive (aa).
- Type each of the three counts into its labeled box.
- Read the freq A and freq a cards, along with the total number of individuals.
- Check the line below the cards for the raw A and a allele counts out of the full pool.
- Use the Copy button to grab all five figures as text for a lab notebook or report.
Examples
Mixed population
AA = 320, Aa = 160, aa = 20
freqA = 0.8, freqa = 0.2, total 500 (800 A and 200 a)
Even split
AA = 25, Aa = 50, aa = 25
freqA = 0.5, freqa = 0.5, total 100 (100 A and 100 a)
Small sample with rounding
AA = 2, Aa = 1, aa = 0
freqA = 0.833333333, freqa = 0.166666667, total 3 (5 A and 1 a)
Frequently asked questions
How do you calculate allele frequency from genotype counts?
Count alleles directly. The A count is two times the AA count plus the Aa count, because each AA individual carries two A copies and each Aa carries one. Divide that by the total allele pool, which is two times the number of individuals, to get freq A.
Why multiply the total by two?
Each individual at this locus is diploid and carries two alleles, so a population of N individuals holds 2N allele copies. That 2N pool is the denominator for both frequencies, which is why 500 people give a pool of 1000 alleles.
Do the two frequencies have to add up to one?
Yes. With only two alleles, every copy in the pool is either A or a, so freq A plus freq a always equals one. If your numbers do not sum to one, recheck the counts you entered.
How precise are the results?
Frequencies are rounded to nine decimal places, so a value like five sixths shows as 0.833333333 rather than a longer repeating decimal. The underlying arithmetic is exact integer counting, and only the display is trimmed.
Is this the same as the Hardy-Weinberg calculation?
No, this is the first step. This tool counts the alleles you actually observed. Hardy-Weinberg then predicts the expected genotype frequencies, p squared, 2pq and q squared, from those allele frequencies under a set of idealized assumptions.
What if I only know phenotype counts?
You cannot split a dominant phenotype into AA and Aa from counts alone, because both look the same. You either need genotyping data, or you must assume Hardy-Weinberg equilibrium and estimate the split from the recessive frequency.
Can I enter zero for a genotype?
Yes, any single count can be zero, such as a locus where no recessive homozygotes appear. The only rule is that the three counts cannot all be zero, since an empty population has no alleles to measure.
Does it handle more than two alleles?
No, this calculator is built for a single locus with exactly two alleles, A and a. Loci with three or more alleles need a separate approach that counts each allelic type against the same 2N pool.
Is my data uploaded anywhere?
No. The counting and division happen entirely in your browser, so the genotype numbers you enter never leave your device and nothing is stored on a server.
Learn more
- Counting alleles versus predicting them
Why observed allele counting and Hardy-Weinberg prediction are different steps, and how p and q connect the two in population genetics.
Related tools
Hardy-Weinberg Calculator
Find Hardy-Weinberg genotype frequencies from one allele or genotype value. Enter p, q, p squared or q squared to get AA, Aa and aa frequencies.
Punnett Square Calculator
Build a monohybrid Punnett square from two parent genotypes. See the 2x2 cross grid, genotype ratios like 1:2:1 and the dominant to recessive split.
DNA to mRNA Converter
Transcribe a DNA sequence into mRNA online. Pick the coding or template strand, get the base for base RNA result, and view the complementary DNA strand.
555 Timer Calculator
Calculate 555 timer astable frequency, period, high and low times and duty cycle from R1, R2 and the timing capacitor. Free oscillator design helper.
Absolute Humidity Calculator
Calculate absolute humidity in grams of water vapor per cubic meter from air temperature and relative humidity. Fast, free and works in your browser.
Angular Acceleration Calculator
Find angular acceleration from a change in angular velocity over time, and the torque from a moment of inertia. Enter start and end rad/s and the time.