Elysia Tools

Browse tools, examples, visual explainers, and topic guides from one clear workspace.

Top Categories

Hubs

Language
ZHDERUPTENFRES

Elysia Tools

Navigation

Education

Allele Frequency Calculator (p = (2AA + Aa) / 2N)

· Last updated:2026-08-13

Compute allele frequencies from genotype counts: p = (2AA + Aa) / 2N, q = (2aa + Aa) / 2N. Derived from Hartl & Clark 2007, Griffiths, StatPearls. Educational use only.

Execution

Run this tool

Fill in the form, run the tool, and review the result in one place.

Samples

Examples that match this tool

Related

Continue with connected tools and hubs

Written by the Elysia Tools team

Tool usage guide

Learn when to use this tool, what it supports, and how real users apply it.

Key facts

Category
Education
Input types
number
Output type
json
Sample coverage
4
API ready
Yes

Overview

The Allele Frequency Calculator computes p and q for a biallelic locus from observed AA, Aa, and aa genotype counts. It reports the population size, total allele count, copies of each allele, and results rounded to your selected number of decimal places. Educational use only.

When to use

  • Calculate allele frequencies from observed genotype counts in a population genetics exercise.
  • Convert AA, Aa, and aa counts into allele-copy totals for a biallelic locus.
  • Check whether p and q sum to 1 using a consistent, repeatable calculation.

How it works

  1. 1Enter the observed counts for AA, Aa, and aa individuals.
  2. 2The calculator determines N and the total number of alleles as 2N.
  3. 3It calculates p with (2AA + Aa) / 2N and q with (2aa + Aa) / 2N.
  4. 4The JSON result includes p, q, N, totalAlleles, countA, and counta, rounded to the selected decimal places.

Use cases

  • Population genetics coursework involving allele and genotype frequencies.
  • Laboratory or field studies summarizing observed biallelic genotype counts.
  • Teaching demonstrations of how homozygotes and heterozygotes contribute allele copies.

Examples

1. Classic 1:2:1 genotype ratio

Biology student

Background

A student is reviewing a population of 100 individuals with 36 AA, 48 Aa, and 16 aa genotypes.

Problem

Calculate the frequencies and copy counts of alleles A and a.

How to use

Enter 36 for AA count, 48 for Aa count, 16 for aa count, and select 4 decimal places.

{"AACount":36,"AaCount":48,"aaCount":16,"decimalPlaces":4}

Outcome

The result is N = 100 and totalAlleles = 200, with p = 0.6, q = 0.4, countA = 120, and counta = 80.

2. Rare recessive allele

Population genetics instructor

Background

An exercise uses 200 individuals: 160 are AA, 36 are Aa, and 4 are aa.

Problem

Determine the frequency of the recessive allele from the observed genotype counts.

How to use

Enter 160 for AA count, 36 for Aa count, 4 for aa count, and keep the decimal setting at 4.

{"AACount":160,"AaCount":36,"aaCount":4,"decimalPlaces":4}

FAQ

What inputs does the calculator require?

Enter the observed counts for AA, Aa, and aa genotypes.

How is allele frequency p calculated?

p = (2AA + Aa) / 2N, where N is the total number of individuals.

How is allele frequency q calculated?

q = (2aa + Aa) / 2N.

Why is the total allele count 2N?

Each diploid individual carries two alleles at the locus, so N individuals provide 2N alleles.

Can I control the number of decimal places?

Yes. Decimal Places can be set from 0 to 8, with 4 as the default.

Home
Tools3212
Samples593
Visualizations471
Viewers103
Hubs239
Tags333
Images, Audio & Video657

Image, audio, and video processing, conversion, and optimization tools

Math, Date & Finance647

Calculators, numerics, date logic, statistics, and finance tools

Design & Color298

Color, layout, graphics, visual styling, and design helper tools

Text & Writing209

Writing, cleanup, formatting, extraction, and text analysis tools

Developer & Web193

Developer utilities, networking, web debugging, and automation helpers

Conversion & Encoding175

Format, file, archive, unit, and encoding conversion tools

Lead Generation Quiz Launch and Contact Handoff
Memorial Drafts: Family Review and Print Handoff
Private Habit Records: Backup, Restore and Sharing Review
Article to X and LinkedIn Drafts: Fact Review and Handoff
Markdown Interactive Deck Review and Offline Handoff

© 2026 Elysia Tools. All rights reserved.

DocsPricingAboutTerms of ServicePrivacy PolicyCookiesContact
Python

Web Image Processing Python Samples

Web Python image processing examples using PIL/Pillow including reading, saving, resizing, and format conversion

Media

Copyright-Free AAC Audio Samples

High-quality AAC encoded audio samples for testing and development, featuring nature sounds and meditation music with excellent compression

Java

Android Image Processing Java Samples

Android Java image processing examples including reading/saving images, scaling, and format conversion

Kotlin

Android Image Processing Kotlin Samples

Android Kotlin image processing examples including reading/saving images, scaling, and format conversion

Education

Genotype Frequency Calculator

Compute genotype frequencies from counts: freq = count / N. Also derives allele and phenotypic frequencies. Derived from Hartl & Clark 2007, Griffiths, StatPearls. Educational use only.

Education

Hardy-Weinberg Equilibrium Calculator (p² + 2pq + q² = 1)

Compute allele and expected genotype frequencies under Hardy-Weinberg equilibrium. Two modes: allele frequency or genotype counts with chi-square test. Derived from Hardy 1908, Weinberg 1908, Wigginton 2005, StatPearls. Educational use only.

Media

Audio Melody Contour Extractor

Extract a dominant melody path from audio and export MIDI, note events, a pitch contour, SVG, and JSON in one ZIP.

Media

Audio to Multitrack MIDI (Draft)

Split a full mix into stems (drums/bass/other/vocals) and transcribe each to MIDI — a multi-track starting point for transcription

Outcome

The result is N = 200 and totalAlleles = 400, with p = 0.89, q = 0.11, countA = 356, and counta = 44.