Biology & Genetics

Allele Frequency Calculator

Calculate allele frequencies from observed genotype counts, with the Hardy-Weinberg expectations to compare against.

Frequency of A (p)
p = (2 × AA + Aa) / (2 × total individuals)Number of AA individualsvalueNumber of Aa individualsvalueNumber of aa individualsvalue

What this page needs from you

This page asks for number of aa individuals, number of aa individuals and number of aa individuals. From those it returns frequency of a (p), together with frequency of a (q), total individuals, expected aa under h-w and expected aa under h-w. Every figure updates as you type, and nothing you enter leaves your browser.

Reproducibility depends on the inputs

The arithmetic here is exact; the measurements feeding it usually are not. Pipetting error, incomplete mixing and drift in a spectrophotometer all propagate straight through. Where a result matters, run it in duplicate and compare rather than trusting a single reading.

The formula

p = (2 × AA + Aa) / (2 × total individuals)

Every result on this page comes from this formula. Nothing is rounded until the final display, so figures match a spreadsheet to the cent.

How to use the Allele Frequency Calculator

  1. Fill in each field with your own figures — the defaults are only there as an example.
  2. The result updates as you type, so there is no button to press.
  3. Check the breakdown under the main result for the supporting numbers.
  4. Use the copy button to take the result with you, or share the link to reload the same inputs.

Allele Frequency Calculator — frequently asked questions

Is this allele frequency calculator free to use?

Yes. Every calculator on the site is free, needs no sign-up, and runs entirely in your browser, so your figures never leave your device.

How accurate is the result?

The maths is exact for the formula shown on the page. Accuracy in the real world depends on your inputs and on assumptions the formula cannot see, so treat the output as a well-grounded estimate rather than a quote.

Can I use it on my phone?

Yes. The page is responsive, weighs a few kilobytes and works offline once loaded, so it behaves the same on a phone as on a desktop.

What people search for

This page answers each of these searches. They are the exact phrases visitors use to find the allele frequency calculator.

  • allele frequency calculator
  • hardy weinberg from counts
  • population allele frequency
  • p and q calculator
  • gene frequency from genotypes

About this calculator

Written and reviewed by The Samsung Calculator editorial team. Every calculator is written against a published formula, reviewed against at least one independent reference implementation, and dated when it changes.

Last reviewed September 14, 2026 · Calculation runs client-side · No data collected · Report an error