Mendelian Genetics Breeding Simulator
Virtual genetics lab for breeding organisms across generations. Explore Mendelian inheritance with peas, mice, or fruit flies. Track phenotype ratios, verify 3:1 and 9:3:3:1 patterns, and perform chi-square analysis.
Loading simulation...
Loading simulation, please waitMendelian Genetics Breeding Simulator: Explore Heredity Through Virtual Experiments
✓ Verified Content — All genetic principles, formulas, and inheritance patterns in this simulation have been verified by the Simulations4All team against authoritative sources including OpenStax Biology, NCBI, and peer-reviewed genetics textbooks. See verification log
Introduction
In 1900, three botanists working independently (Hugo de Vries, Carl Correns, and Erich von Tschermak) each rediscovered a paper that had been sitting nearly forgotten for 35 years. That paper, written by an Augustinian friar named Gregor Mendel, described experiments with pea plants that revealed something remarkable: heredity follows mathematical rules.
The mechanism behind this involves what Mendel called "factors," what biologists now recognize as genes. Each parent contributes one allele per gene to their offspring. These alleles do not blend together like mixing paint. They remain discrete, combining according to probability, and can reappear unchanged in future generations. Researchers observe this pattern repeatedly: cross two heterozygotes, and you reliably get a 3:1 phenotypic ratio. Cross two dihybrids, and the 9:3:3:1 ratio emerges like clockwork.
The elegant part of this system is that it works the same way across species. What happens at the molecular level in a pea plant (chromosomes segregating during meiosis, alleles sorting independently) cascades up to produce the same mathematical ratios in fruit flies, mice, corn, humans. In the wild, this looks like breeders predicting coat colors in dogs, agricultural scientists developing disease-resistant crop varieties, and genetic counselors calculating the probability that a child will inherit a particular condition.
Mendel spent eight years breeding over 28,000 pea plants to uncover these patterns. This simulation compresses that work into minutes. You can breed virtual organisms across generations, track phenotype frequencies, and test whether your results match theoretical expectations using chi-square analysis. Choose peas for the classic Mendelian traits, mice for fur color, or fruit flies for eye color, then watch heredity unfold.
How to Use This Simulation
The mechanism behind this breeding simulator involves stochastic gamete combination following Mendelian probability rules. What happens at the molecular level during meiosis (independent assortment of chromosomes) cascades up to what you observe: offspring appearing in predictable ratios across generations.
Simulation Controls
| Control | Function | Options |
|---|---|---|
| Organism | Choose your model species | Pea (classic), Mouse (fur color), Fruit Fly (eye color) |
| Cross Type | Number of traits to track | Monohybrid (1 trait) or Dihybrid (2 traits) |
| Parent Genotypes | Select alleles for each parent | Dropdowns for each allele position |
| Quick Presets | Common cross configurations | Aa×Aa, Aa×aa (test cross), AA×aa |
| Offspring Count | Sample size per breeding | 4, 8, 16, 32, or 64 offspring |
| Generation Tabs | Track F1 and F2 generations separately | F1, F2, and Statistics views |
Running a Breeding Experiment
- Choose an organism - click the organism buttons (pea, mouse, fly)
- Select cross type - start with Monohybrid for clearest ratios
- Set parent genotypes - use dropdowns or click a Quick Preset
- Choose offspring count - larger samples give ratios closer to theoretical
- Click "Breed Offspring" to generate the F1 generation
- View offspring grid showing individual organisms with phenotypes
- Check the ratio panel comparing observed vs expected frequencies
- Use "Add to F2" to select F1 individuals as parents for the next generation
Tips for Effective Exploration
- Start with Aa × Aa and 64 offspring to see clear 3:1 ratios - small samples show more random variation
- Use the test cross (Aa × aa) to demonstrate how backcrossing reveals genotypes - heterozygotes produce 1:1 ratios
- Track multiple generations by selecting F1 offspring as F2 parents - ratios persist generation after generation
- Run the Statistics tab to perform chi-square analysis on your data - this tests whether deviations from expected are statistically significant
- Compare monohybrid to dihybrid - the 9:3:3:1 ratio only emerges when genes assort independently
What Is Mendelian Genetics?
Mendelian genetics describes how traits are inherited from parents to offspring through discrete units we now call genes. Named after Gregor Mendel (1822–1884), an Augustinian friar who conducted pioneering experiments with Pisum sativum (garden peas), these principles explain why children resemble their parents while also showing unique combinations of traits [1].
The Core Insight: Mendel proposed that each trait is controlled by pairs of "factors" (genes), with each parent contributing one factor to their offspring. These factors don't blend—they remain discrete and can reappear unchanged in future generations.
Key Terms
| Term | Definition |
|---|---|
| Gene | A unit of heredity; a segment of DNA encoding a trait |
| Allele | Different versions of the same gene (e.g., Y for yellow, y for green) |
| Genotype | The genetic makeup (e.g., Yy, YY, yy) |
| Phenotype | The observable trait (e.g., yellow seeds, green seeds) |
| Dominant | Allele that masks the effect of another (uppercase, e.g., Y) |
| Recessive | Allele masked by a dominant allele (lowercase, e.g., y) |
| Homozygous | Having two identical alleles (YY or yy) |
| Heterozygous | Having two different alleles (Yy) |
How the Simulator Works
This breeding simulator allows you to perform virtual genetic crosses with three model organisms: garden peas, mice, and fruit flies. Each organism comes with pre-configured traits that follow Mendelian inheritance patterns.
Simulator Variables
| Variable | Symbol | Options | Effect on Results |
|---|---|---|---|
| Organism | — | Pea, Mouse, Fly | Changes available traits and visual icons |
| Cross Type | — | Monohybrid, Dihybrid | 1 trait or 2 traits tracked |
| Parent 1 Genotype | P₁ | Select alleles | Determines gamete possibilities |
| Parent 2 Genotype | P₂ | Select alleles | Determines gamete possibilities |
| Offspring Count | n | 4, 8, 16, 32, 64 | Sample size for ratio analysis |
Breeding Workflow
- Select organism and cross type — Choose peas for classic Mendelian traits, mice for fur color, or flies for eye color
- Configure parent genotypes — Use the dropdown menus to set alleles for each parent
- Breed offspring — Click the breed button to generate offspring based on probability
- Analyze results — View phenotype ratios and chi-square statistics
- Continue to F2 — Use F1 offspring as parents for the next generation
Mendel's Laws of Inheritance
Law of Segregation
During gamete (sex cell) formation, the two alleles for each gene separate, so each gamete carries only one allele [1]. This explains why a heterozygous parent (Yy) produces gametes that are 50% Y and 50% y.
Mathematical Representation:
For a heterozygote Aa:
- P(A gamete) = 0.5
- P(a gamete) = 0.5
Law of Independent Assortment
Genes for different traits segregate independently of one another during gamete formation, provided they are on different chromosomes [1]. This means the inheritance of seed color doesn't affect the inheritance of seed shape.
Mathematical Representation:
For a dihybrid AaBb:
- P(AB gamete) = 0.5 × 0.5 = 0.25
- P(Ab gamete) = 0.5 × 0.5 = 0.25
- P(aB gamete) = 0.5 × 0.5 = 0.25
- P(ab gamete) = 0.5 × 0.5 = 0.25
Law of Dominance
When an organism has two different alleles for a trait, one may completely mask the effect of the other. The expressed allele is dominant; the masked allele is recessive [2].
Understanding Genetic Ratios
The 3:1 Monohybrid Ratio
When two heterozygous individuals are crossed (Aa × Aa), the offspring show a phenotypic ratio of approximately 3:1 [1].
| Offspring | Genotype | Phenotype |
|---|---|---|
| 1/4 | AA | Dominant |
| 2/4 | Aa | Dominant |
| 1/4 | aa | Recessive |
Result: 3 dominant : 1 recessive
The 9:3:3:1 Dihybrid Ratio
Crossing two dihybrids (AaBb × AaBb) produces offspring in approximately 9:3:3:1 ratio [1]:
| Ratio | Phenotype |
|---|---|
| 9/16 | Both dominant (A_B_) |
| 3/16 | First dominant only (A_bb) |
| 3/16 | Second dominant only (aaB_) |
| 1/16 | Both recessive (aabb) |
Test Cross Ratio (1:1)
A test cross (Aa × aa) reveals whether an organism showing the dominant phenotype is homozygous or heterozygous:
| Offspring | Genotype | Phenotype |
|---|---|---|
| 1/2 | Aa | Dominant |
| 1/2 | aa | Recessive |
Chi-Square Analysis
Here is a puzzle that confronts every genetics researcher: you breed 100 offspring expecting a 3:1 ratio, but you get 68 dominant and 32 recessive instead of the perfect 75:25. Is this just random sampling variation, or is something else going on? The mechanism behind answering this question involves a statistical test developed by Karl Pearson in 1900, the same year Mendel's work was rediscovered [3].
Chi-Square Formula
χ² = Σ[(O - E)² / E]
Where:
- O = Observed count for each phenotype category
- E = Expected count based on theoretical ratio
- Σ = Sum across all categories
The elegant part of this system is that it accounts for sample size automatically. A deviation of 7 from expected matters more with 20 offspring than with 200.
Interpreting Results
| Degrees of Freedom (df) | Critical χ² (p = 0.05) |
|---|---|
| 1 (monohybrid) | 3.841 |
| 3 (dihybrid) | 7.815 |
If χ² < critical value: Results are consistent with expected ratios; what you observed could reasonably arise from chance alone If χ² > critical value: Significant deviation from expected. Biologists find this suggests something beyond simple Mendelian inheritance may be occurring (linked genes, selection, non-random mating, or perhaps a scoring error)
Learning Objectives
After using this simulation, you will be able to:
- Predict offspring phenotypes using Punnett squares and probability calculations
- Distinguish genotype from phenotype by observing how identical appearances can arise from different genetic makeups
- Verify Mendel's ratios through repeated breeding experiments with large sample sizes
- Perform chi-square analysis to statistically evaluate whether results match expected patterns
- Compare monohybrid and dihybrid crosses to understand how multiple traits are inherited independently
- Explain the biological basis of segregation and independent assortment in terms of meiosis
Exploration Activities
Activity 1: Verifying the 3:1 Ratio
Objective: Confirm that crossing two heterozygotes produces a 3:1 phenotypic ratio
Steps:
- Select peas as your organism with monohybrid cross
- Set both parents to Yy (heterozygous yellow)
- Breed 64 offspring
- Record the number of yellow vs. green offspring
- Calculate the observed ratio and compare to 3:1
Expected Result: Approximately 48 yellow : 16 green (3:1 ratio)
Activity 2: The Test Cross
Objective: Understand how test crosses reveal hidden genotypes
Steps:
- Use the Aa × aa preset (test cross)
- Breed 32 offspring
- Count dominant and recessive phenotypes
- Verify the 1:1 ratio
Expected Result: Approximately 16 dominant : 16 recessive
Activity 3: Dihybrid Inheritance
Objective: Observe the 9:3:3:1 ratio from independent assortment
Steps:
- Switch to dihybrid cross mode
- Set both parents to AaBb (heterozygous for both traits)
- Breed 64 offspring
- Count all four phenotype categories
- Compare to expected 9:3:3:1
Expected Result: ~36:12:12:4 distribution across four phenotypes
Activity 4: Multi-Generation Breeding
Objective: Track how genotype frequencies change across generations
Steps:
- Start with AA × aa (pure breeding cross)
- Breed F1 generation (all should be Aa)
- Click "Add to F2" to breed F1 individuals together
- Observe that the 3:1 ratio appears in F2
- Compare F1 uniformity to F2 variation
Expected Result: F1 all dominant phenotype; F2 shows 3:1 ratio with recessive reappearing
Real-World Applications
1. Agricultural Breeding
Plant breeders use Mendelian principles to develop crop varieties with desired traits like disease resistance, higher yield, or drought tolerance. Understanding dominant/recessive relationships helps predict outcomes of crosses between different cultivars.
2. Animal Husbandry
Livestock breeding programs apply genetic ratios to select for meat quality, milk production, or disease resistance. Test crosses determine whether animals carry hidden recessive alleles that might affect offspring.
3. Genetic Counseling
Medical geneticists use Punnett squares to calculate the probability that a child will inherit genetic conditions like cystic fibrosis or sickle cell disease, helping families make informed decisions [4].
4. Conservation Biology
Endangered species breeding programs apply Mendelian genetics to maintain genetic diversity and avoid inbreeding depression. Understanding inheritance patterns helps manage small populations effectively.
5. Forensic Science
DNA analysis relies on understanding how alleles are inherited to establish family relationships in paternity cases or identify remains through comparison with relatives' genetic profiles.
Reference Data: Mendel's Original Results
| Trait | Dominant | Recessive | F2 Ratio | Actual Count |
|---|---|---|---|---|
| Seed shape | Round | Wrinkled | 2.96:1 | 5474:1850 |
| Seed color | Yellow | Green | 3.01:1 | 6022:2001 |
| Flower color | Purple | White | 3.15:1 | 705:224 |
| Pod shape | Inflated | Constricted | 2.95:1 | 882:299 |
| Pod color | Green | Yellow | 2.82:1 | 428:152 |
| Flower position | Axial | Terminal | 3.14:1 | 651:207 |
| Stem height | Tall | Short | 2.84:1 | 787:277 |
Data from Mendel's original 1866 publication [5]
Challenge Questions
Conceptual (Easy)
- Why do the ratios from small breeding experiments often differ from the expected values?
Calculation (Medium) 2. If you cross Aa × Aa and produce 120 offspring, how many do you expect to show the recessive phenotype?
Analysis (Medium) 3. Your chi-square value for a monohybrid cross is 2.4. What does this tell you about your results?
Application (Hard) 4. A breeder crosses two brown mice and gets some white offspring. What are the likely genotypes of the parents?
Design (Advanced) 5. How would you design a breeding experiment to determine whether two different traits are on the same chromosome (linked) or on different chromosomes (independent assortment)?
Common Misconceptions
Misconception 1: Dominant Alleles Are "Stronger" or "Better"
Reality: Dominant simply means the allele is expressed when heterozygous. Many harmful alleles are dominant (e.g., Huntington's disease), while many beneficial alleles are recessive.
Misconception 2: 3:1 Ratio Appears in Every Cross
Reality: The 3:1 ratio specifically occurs when crossing two heterozygotes. Other crosses (AA × aa, Aa × aa) produce different ratios.
Misconception 3: Traits Always Follow Simple Mendelian Patterns
Reality: Many traits involve multiple genes, codominance, incomplete dominance, or environmental factors. Simple dominant/recessive inheritance is actually less common than textbooks suggest [2].
Misconception 4: You Should Get Exactly the Expected Numbers
Reality: Genetic ratios describe probabilities, not guarantees. Small sample sizes show significant random variation. Large samples approach expected ratios more closely.
FAQ Section
Q: Why don't I get exactly 3:1 when I breed heterozygotes? A: Genetic ratios represent probabilities, not certainties. With small sample sizes, random chance causes deviation from expected values. This is why Mendel used thousands of plants; larger samples approach theoretical ratios more closely [1].
Q: What's the difference between a Punnett square and this breeding simulator? A: A Punnett square shows all possible outcomes and their probabilities. This simulator actually "rolls the dice" for each offspring, so you see realistic variation like a real breeding experiment. Both approaches are valuable for different learning purposes.
Q: Can this simulator show non-Mendelian inheritance? A: This version focuses on classic Mendelian (complete dominance) inheritance. More complex patterns like codominance, incomplete dominance, epistasis, and linked genes are not currently modeled.
Q: How do I know if my results are "good enough" to support Mendel's laws? A: Use the chi-square test. If your χ² value is below the critical value for your degrees of freedom at p = 0.05, your results are statistically consistent with expected ratios [3].
Q: Why did Mendel choose pea plants for his experiments? A: Peas were ideal because they: (1) have easily observable contrasting traits, (2) can self-fertilize or be cross-fertilized, (3) produce many offspring, (4) have a short generation time, and (5) are easy to cultivate [1].
References
-
OpenStax Biology 2e. (2018). "Mendel's Experiments and the Laws of Probability." Chapter 12.1. Rice University. Available at: https://openstax.org/books/biology-2e/pages/12-1-mendels-experiments-and-the-laws-of-probability ✓ VERIFIED: Dec 2025
-
OpenStax Concepts of Biology. (2013). "Mendel's Experiments." Chapter 8.1. Rice University. Available at: https://openstax.org/books/concepts-biology/pages/8-1-mendels-experiments ✓ VERIFIED: Dec 2025
-
LibreTexts Biology. (2024). "Chi-Square Test for Independence." Available at: https://bio.libretexts.org/ ✓ VERIFIED: Dec 2025
-
Khan Academy. (2024). "Punnett squares and probability." Available at: https://www.khanacademy.org/science/biology/classical-genetics ✓ VERIFIED: Dec 2025
-
Mendel, G. (1866). "Versuche über Pflanzenhybriden" (Experiments on Plant Hybridization). Verhandlungen des naturforschenden Vereines in Brünn. Available in English translation at: http://www.mendelweb.org/Mendel.html ✓ VERIFIED: Dec 2025
-
NCBI Bookshelf. "An Introduction to Genetic Analysis - Mendelian Genetics." Available at: https://www.ncbi.nlm.nih.gov/books/ ✓ VERIFIED: Dec 2025
-
MIT OpenCourseWare. "7.03 Genetics." Available at: https://ocw.mit.edu/courses/7-03-genetics-fall-2004/ ✓ VERIFIED: Dec 2025
-
HyperPhysics. "Genetics Concepts." Georgia State University. Available at: http://hyperphysics.gsu.edu/hbase/Biology/gencpt.html ✓ VERIFIED: Dec 2025
About the Data
The trait data used in this simulation (pea seed color, mouse fur color, fruit fly eye color) are based on well-established model organisms used in genetics education and research. All inheritance patterns follow classic Mendelian dominant/recessive relationships.
Mendel's original experimental data (shown in the Reference Data table) comes directly from his 1866 publication and represents actual breeding results from thousands of pea plants.
How to Cite
APA Format: Simulations4All. (2025). Mendelian Genetics Breeding Simulator [Interactive web simulation]. Retrieved from https://simulations4all.com/simulations/mendelian-genetics-breeding-simulator
BibTeX:
@misc{sim4all_mendelian_2025,
title = {Mendelian Genetics Breeding Simulator},
author = {{Simulations4All}},
year = {2025},
howpublished = {\url{https://simulations4all.com/simulations/mendelian-genetics-breeding-simulator}},
note = {Interactive web simulation}
}
Verification Log
All scientific claims, formulas, and data have been verified against authoritative sources.
| Claim/Data | Source | Verification Status | Date Verified |
|---|---|---|---|
| Law of Segregation | OpenStax Biology 2e [1] | ✓ Verified | Dec 2025 |
| Law of Independent Assortment | OpenStax Biology 2e [1] | ✓ Verified | Dec 2025 |
| 3:1 monohybrid ratio | Mendel 1866 [5], OpenStax [1] | ✓ Verified | Dec 2025 |
| 9:3:3:1 dihybrid ratio | OpenStax Biology 2e [1] | ✓ Verified | Dec 2025 |
| Chi-square formula | LibreTexts Biology [3] | ✓ Verified | Dec 2025 |
| Critical chi-square values | Standard statistical tables | ✓ Verified | Dec 2025 |
| Mendel's original data | Mendel 1866 [5] | ✓ Verified | Dec 2025 |
| Punnett square methodology | Khan Academy [4] | ✓ Verified | Dec 2025 |
Written by Simulations4All Team
Related Simulations

Cell Division Mitosis Simulation - Interphase vs Prophase Comparison
Interactive mitosis simulation with phase comparison tables. Compare Interphase vs Prophase, Metaphase, Anaphase, and Telophase. See chromosome behavior, timing, and key events at each stage.
View Simulation
Photosynthesis Lab Simulator
Interactive photosynthesis virtual lab to explore how light intensity, CO₂ concentration, temperature, and light wavelength affect O₂ production. Watch real-time bubble animations and graphs.
View Simulation
Punnett Square Calculator
Interactive Punnett square generator for genetics. Create monohybrid to tetrahybrid crosses, visualize genotype and phenotype ratios, explore real genetic traits like blood type and eye color, with Chi-square analysis.
View Simulation