Punnett Square Simulator: Mendelian Inheritance Visualized

simulator beginner ~8 min
Loading simulation...
3:1 ratio — Aa × Aa cross

Crossing two heterozygous parents (Aa × Aa) produces the classic Mendelian 3:1 phenotype ratio: approximately 75% dominant and 25% recessive. With 100 offspring, expect ~25 AA, ~50 Aa, and ~25 aa genotypes.

Formula

P(AA) = p² where p = frequency of dominant allele
P(Aa) = 2pq where q = frequency of recessive allele
χ² = Σ (Oᵢ − Eᵢ)² / Eᵢ for each genotype class

Mendel's Revolutionary Discovery

In 1866, Gregor Mendel published his experiments with pea plants that revealed the fundamental laws of inheritance. By tracking traits like seed color and plant height across generations, he discovered that hereditary factors (now called genes) come in pairs, segregate during gamete formation, and assort independently. His work, ignored for 35 years, laid the foundation for all of modern genetics.

The Punnett Square

The Punnett square is the simplest tool for predicting genetic crosses. Each parent contributes one allele per gamete. For a monohybrid cross between two heterozygotes (Aa × Aa), the four possible offspring genotypes are AA, Aa, aA, and aa — giving a 1:2:1 genotypic ratio and a 3:1 phenotypic ratio under complete dominance. This simulator lets you visualize this process with any parental combination.

Complete vs Incomplete Dominance

Mendel observed complete dominance, where the heterozygote is indistinguishable from the homozygous dominant. But many real traits show incomplete dominance — the heterozygote has an intermediate phenotype. Snapdragon flower color is a classic example: red × white produces pink. This simulation lets you toggle between both modes and see how the phenotypic ratios change from 3:1 to 1:2:1.

Testing with Chi-Squared

Real experiments never produce perfect ratios. Random sampling means 100 offspring from an Aa × Aa cross might yield 78 dominant and 22 recessive instead of the expected 75:25. The chi-squared goodness-of-fit test quantifies whether the deviation is within statistical expectations or suggests something beyond simple Mendelian inheritance — such as linked genes, epistasis, or selection pressure.

FAQ

What is a Punnett square?

A Punnett square is a diagram used in genetics to predict the genotype and phenotype ratios of offspring from a cross. Each parent's possible gametes are placed on the edges, and the grid cells show all possible offspring combinations. It was developed by Reginald Punnett in 1905.

What is the difference between complete and incomplete dominance?

In complete dominance, the heterozygote (Aa) looks identical to the homozygous dominant (AA) — the dominant allele completely masks the recessive one. In incomplete dominance, the heterozygote shows an intermediate phenotype, like red × white producing pink flowers.

What does chi-squared test for in genetics?

The chi-squared test compares observed offspring ratios against expected Mendelian ratios. A high chi-squared value (above the critical threshold) suggests the observed data does not fit the expected model, indicating other factors like linkage, epistasis, or non-random mating may be at play.

Why did Mendel choose pea plants?

Mendel chose garden peas (Pisum sativum) because they have clearly distinct traits (tall/short, green/yellow), can self-pollinate or be cross-pollinated manually, grow quickly, and produce many offspring. These features made it possible to observe clear ratios over multiple generations.

Sources

Embed

<iframe src="https://homo-deus.com/lab/genetics/mendelian-inheritance/embed" width="100%" height="400" frameborder="0"></iframe>
View source on GitHub