Skip to main content
Virtual Laboratory
Biology Simulations Free · No Account Free & source-available · CC BY-NC-SA 4.0

Mendelian Genetics & Segregation Ratio Simulation

Mendel's law of segregation states that alleles in a heterozygote (Dd) separate equally into gametes, yielding theoretical 1:2:1 genotype (DD:Dd:dd) and 3:1 phenotype ratios even when male gametes outnumber female gametes. Test sampling with replacement, large-sample convergence, chi-square fit, and four-bucket 9:3:3:1 dihybrid assortment in this free 3D genetics simulation below.

Mendelian Genetics & Segregation Ratio Simulation — 3D Bench Preview

Interactive 3D Lab Preview

Runs right on this page in fullscreen · No account required

  • Map Bucket A (female reproductive organ), Bucket B (male reproductive organ), and identical D and d colored balls (haploid female and male gametes formed by meiosis) to their biological counterparts, distinguishing the 1:2:1 genotype ratio from the 3:1 phenotype ratio.
  • Show through controlled trials that each bucket must maintain an internal 1:1 ratio of D to d while total ball counts need not match (such as 40 balls vs. 100 balls, lesson setting), explaining why inheritance ratios stay stable when male gametes vastly outnumber female gametes.
  • Follow the draw-record-replace-and-shake protocol, then scale up with batch sampling (+50 / +200 draws) and Pearson's chi-square statistic (χ²) to distinguish small-sample noise from large-sample statistical convergence.

Press Esc or your browser Back button anytime to return to the guide.

Principle, Mechanism & Key Concepts

Mendelian Genetics & Segregation Ratio Simulation

What You Will Investigate
Goal 01

Map Bucket A (female reproductive organ), Bucket B (male reproductive organ), and identical D and d colored balls (haploid female and male gametes formed by meiosis) to their biological counterparts, distinguishing the 1:2:1 genotype ratio from the 3:1 phenotype ratio.

Goal 02

Show through controlled trials that each bucket must maintain an internal 1:1 ratio of D to d while total ball counts need not match (such as 40 balls vs. 100 balls, lesson setting), explaining why inheritance ratios stay stable when male gametes vastly outnumber female gametes.

Goal 03

Follow the draw-record-replace-and-shake protocol, then scale up with batch sampling (+50 / +200 draws) and Pearson's chi-square statistic (χ²) to distinguish small-sample noise from large-sample statistical convergence.

A single pea flower releases thousands of pollen grains while its ovary holds only a handful of ovules—so why does self-pollinating a heterozygous tall pea plant still yield a steady 3 : 1 phenotype ratio? And why can 4 draws on the lab bench often produce 2 : 2 or 4 : 0?

In the mid-19th century, Gregor Mendel could not see chromosomes under a microscope, yet counting tens of thousands of pea plants revealed how heredity works: discrete alleles segregate evenly into gametes and reunite at random during fertilization. On this 3D bench, two translucent buckets and green-and-yellow balls let you test why 3 : 1 depends not on matching bucket totals, but on an internal 1 : 1 allele split and enough random draws with replacement.

Offspring segregation ratios do not require equal total numbers of male and female gametes; they depend on equal 1:1 allele segregation inside each reproductive organ and random fertilization across a large sample.
A. Unequal-Pool Sampling (1:1 per Bucket)Bucket A (♀ organ)DdDd20D + 20d (40 · setting)P(D)=0.5, P(d)=0.5Bucket B (♂ organ)50D + 50d (100 · setting)P(D)=0.5, P(d)=0.5Replace & shakeProduct rule: DD(1/4) : Dd(2/4) : dd(1/4) → Dom:Rec = 3:1B. Sample Size N vs. Dominant Frequency Convergence100%75%0%Theoretical limit 75.0% (3:1)N=4 (high noise)N=50N=300 (converged)Standard error σ_p = sqrt(0.75 × 0.25 / N) scales as 1/sqrt(N)
2D Visual Guide & Diagram — Mendelian Genetics & Segregation Ratio Simulation

Cause-and-Effect Chain

01
Condition: Load equal numbers of identical D and d balls inside each bucket

Models homologous chromosome separation during anaphase I of meiosis in a heterozygote (Dd), generating equal proportions of D and d gametes.

→ Whether Bucket A holds 20D + 20d or Bucket B holds 50D + 50d (lesson setting), the prior probability of drawing D or d from either bucket stays exactly 1/2.
02
Condition: Return both drawn balls to their original buckets and shake well after each record

Keeps the 1:1 composition of each finite ball pool constant so every draw remains an independent, equal-probability Bernoulli trial.

→ Prevents the pool depletion and drifting conditional probabilities caused by consecutive draws without replacement.
03
Condition: Draw 1 ball blindly from Bucket A and 1 from Bucket B to form a pair

Models independent random fertilization between female and male gametes, combining four equally likely fertilization pathways via P(AB) = P(A) · P(B).

→ Zygote genotypes follow DD(1/4) : Dd(1/4 + 1/4) : dd(1/4) = 1 : 2 : 1, yielding a 3 : 1 phenotype ratio under complete dominance.
04
Condition: Scale sample size from N = 4 up to N ≥ 200 draws

Small samples fluctuate sharply from random sampling error; as sample size N grows, the standard error shrinks at a rate of 1/sqrt(N) (law of large numbers).

→ Observed bars align with the theoretical 1:2:1 markers, χ² falls inside the non-significant acceptance range, and four buckets extend the model to 9:3:3:1.

Core Formulas & Quantitative Relations

Product Rule for Independent Gamete Fertilization
P(DD) = 1/2 × 1/2 = 1/4 , P(Dd) = 2 × (1/2 × 1/2) = 1/2 , P(dd) = 1/2 × 1/2 = 1/4

Two symmetric fertilization paths produce a heterozygote (female D + male d, or female d + male D), so under complete dominance the dominant phenotype fraction is 1/4 + 1/2 = 3/4 (a 3 : 1 ratio).

Binomial Sampling Standard Error (Law of Large Numbers)
σ_p = sqrt[ p · (1 − p) / N ] (for p = 0.75: N = 4 gives σ_p ≈ 21.7%; N = 400 gives σ_p ≈ 2.17%)

Increasing sample size by a factor of 100 cuts random sampling fluctuation to 1/10 of its original size, showing quantitatively why 4 draws fluctuate wildly while hundreds of draws settle close to 75.0%.

Pearson's Chi-Square (χ²) Goodness-of-Fit Statistic
χ² = Σ [ (O_i − E_i)² / E_i ]

O_i is the observed count in each category and E_i is the expected count from the theoretical ratio. For 3 monohybrid genotype classes (DD, Dd, dd; df = 2, α = 0.05), the critical value is 5.99; χ² < 5.99 indicates no significant departure from 1:2:1.

Connecting Bucket Pool Ratios, Replacement Guardrails, and Four-Bucket Independent Assortment

Switch pool configurations and replacement rules in one click on the 3D bench while tracking live genotype bars, dominant-frequency convergence, and real-time χ² values.

  • Closed-loop replacement guardrail: after drawing 1 ball from Bucket A and 1 from Bucket B onto the white ceramic pairing tray, clicking a bucket again before returning and shaking triggers an immediate protocol alert.
  • Male-excess proof (Bucket B 50:50): 3D ball layers visually show the 100-ball versus 40-ball volume difference (lesson setting), yet large-sample trials still anchor tightly around 1:2:1 and 3:1.
  • Internal-skew counterexample (Bucket A 30:10): breaking the internal 1:1 rule (Bucket A P(D) = 0.75, Bucket B P(D) = 0.5) lowers P(dd) to 1/8 and shifts the phenotype ratio to 7:1.
  • Four-bucket dihybrid extension: switch to the 4-bucket Y/y · R/r system (Female 1 & 2 paired with Male 1 & 2) to verify the 9:3:3:1 law of independent assortment.
Mode 1: Equal vs. Unequal PoolsA (20D:20d) + B (50D:50d)Unequal totals, both 1:1 insideConverges: DD:Dd:dd = 1:2:1 (3:1)Skew: A (30D:10d) + B (20:20)P(dd) = 1/4 × 1/2 = 1/8Phenotype skews to 7 : 1Mode 2: Replacement GuardrailStandard: Draw → Replace → ShakeP(D) stays fixed at 0.500Scales cleanly to N=500+ drawsError: Draw Without ReplacementAfter 1 D ball: 19D:20d remainP(D) drops to 19/39 (biased)Mode 3: Test Cross & 4-BucketTest Cross (Dd × dd):A: 20D+20d, B: 0D+40d (all d)Dd : dd = 1 : 1 reveals gametes4-Bucket Dihybrid (YyRr self):♀1(Y/y)+♀2(R/r) × ♂1(Y/y)+♂2(R/r)(3:1) × (3:1) = 9 : 3 : 3 : 1Never mix Y/y and R/r in 1 bucket!

Concept Breakdown

01

Drawing colored balls is not a number trick—each piece of equipment and every step maps directly onto meiosis and fertilization.

Mapping Lab Equipment to Living Cells: What Do the Two Buckets Represent?

On the bench, translucent Bucket A and Bucket B represent female and male reproductive organs (such as the embryo sac and anther of a pea flower). Inside each bucket, green D balls and yellow d balls (lesson appearance setting) represent female and male gametes carrying the dominant allele D or recessive allele d. To keep blind draws truly random, both ball types in a bucket must share the exact same diameter, mass, and surface finish—never peek inside to pick a color. Placing 1 ball from Bucket A next to 1 ball from Bucket B on the white ceramic tray and recording the pair models random fertilization of haploid gametes into a diploid zygote.

Try in the 3D bench: In Step 1, click Bucket A and Bucket B on the 3D bench to complete your first random draw, then open the Meiosis & Punnett 3D Pod to compare the 2×2 Punnett square with homologous chromosome separation in meiosis I.
02

If Bucket A holds 40 balls and Bucket B holds 100 balls, will the segregation ratio break down?

Internal 1:1 Rule vs. Unequal Totals: Why Abundant Pollen Keeps the 3:1 Ratio

Many beginners assume both buckets must contain the exact same total number of balls. In nature, however, a pea plant or animal usually produces far more male gametes (pollen or sperm) than female gametes (egg cells). As long as Bucket A holds an internal 1 : 1 split of 20D : 20d (lesson setting, giving P(D) = P(d) = 1/2) and Bucket B holds an internal 1 : 1 split of 50D : 50d (lesson setting, also giving P(D) = P(d) = 1/2), the product rule still yields DD(1/4) : Dd(1/2) : dd(1/4) = 1 : 2 : 1. By contrast, if both buckets hold 40 balls total but Bucket A is skewed to 30D : 10d, equal allele segregation fails and the phenotype ratio immediately shifts to 7 : 1.

Try in the 3D bench: In Step 5, switch the Ball Ratio controls across 20:20 Equal, B: 50:50 (more male gametes), and A: 30:10 Skew, then run +200 draws to compare genotype and phenotype ratios.
03

What goes wrong if you forget to return drawn balls, and why is missing 3:1 in 4 draws completely normal?

Replacement, Shaking, and the Law of Large Numbers: Why Mendel Counted Thousands of Peas

Because each bucket holds a finite pool (such as 20D + 20d in this lesson setting), removing 1 D ball without replacement leaves 19D : 20d inside and drops the next draw probability of D to 19/39. Repeated draws without replacement create severe hypergeometric drift, so you must return each ball to its original bucket and shake thoroughly after every record. Moreover, 3 : 1 is a statistical expectation: across only N = 4 draws, the probability of getting exactly 3 dominant and 1 recessive is C(4, 3) × (3/4)³ × (1/4) ≈ 42.2%, so 4:0 or 2:2 happens often. Only when you scale up to a large sample (hundreds of draws in this simulation) do random fluctuations cancel out, allowing dominant frequency to converge toward the 75.0% theoretical line.

Try in the 3D bench: Observe small-sample noise at N = 4 in Step 3, then click +50 or +200 in Step 4 to watch the convergence curve settle near the 0.75 dashed line with χ² below 5.99 (df = 2, α = 0.05).

Reference & Comparison Table

Comparison of bucket pool settings, replacement rules, and sample sizes in the segregation simulation (ball counts, sample sizes, and fluctuation examples are illustrative lesson settings; 1:2:1, 3:1, 1:1, and 9:3:3:1 are theoretical ratios from public sources)
Trial Group & Pool SettingBucket A / Bucket B Gamete ProbabilitiesSample Size N & ProcedureTheoretical / Converged Genotype & Phenotype Ratios
Standard equal pool (with replacement)A: 20D:20d (0.5) / B: 20D:20d (0.5)N = 200+, replace & shake after each drawDD:Dd:dd ≈ 1:2:1, Dom:Rec ≈ 3:1
Unequal male-excess pool (with replacement)A: 20D:20d (0.5) / B: 50D:50d (0.5)N = 200+, replace & shake after each drawDD:Dd:dd ≈ 1:2:1, Dom:Rec ≈ 3:1 (unchanged)
Very small sample (with replacement)A: 20D:20d (0.5) / B: 20D:20d (0.5)N = 4, replace & shake after each drawStrong random noise such as 4:0 or 2:2
Internal-skew counterexampleA: 30D:10d (0.75) / B: 20D:20d (0.5)N = 200+, replace & shake after each drawDD:Dd:dd ≈ 3:4:1, Dom:Rec shifts to 7:1
Test cross verification (Dd × dd)A: 20D:20d (0.5) / B: 0D:40d (all d)N = 200+, replace & shake after each drawDd : dd ≈ 1 : 1, Dom:Rec ≈ 1 : 1
Four-bucket dihybrid assortment (YyRr self)♀1(Y/y)+♀2(R/r) paired with ♂1(Y/y)+♂2(R/r)N = 400+, draw 1 from each of 4 buckets & replaceDouble-dom : Single-A : Single-B : Double-rec ≈ 9:3:3:1
Common Misconceptions

Common Misconceptions

Do Bucket A (female) and Bucket B (male) have to hold the exact same total number of balls?

No. Total counts in the two buckets do not need to match, reflecting nature where pollen grains vastly outnumber ovules. The strict requirement is an internal 1 : 1 split of D and d balls inside each individual bucket to represent equal allele segregation during meiosis. Verify this in Step 5 by switching to B: 50:50 and running +200 draws.

If I follow every rule and draw 4 times, will I get exactly 3 dominant pairs and 1 recessive pair?

No. Every draw is an independent random event, so N = 4 carries large sampling error—the probability of hitting exactly 3:1 in 4 draws is less than half (about 42.2%). Accumulate dozens to hundreds of draws in Steps 3 and 4 to watch the observed ratio stabilize around 3 : 1.

Does the classic 3 : 1 segregation ratio describe offspring genotypes or phenotypes?

It describes phenotypes under complete dominance (dominant DD + Dd accounts for 3/4, recessive dd accounts for 1/4). The underlying genotype ratio is DD : Dd : dd = 1 : 2 : 1. Open the Meiosis & Punnett 3D Pod in Step 6 to inspect both ratios side by side.

Can I simulate a 9:3:3:1 dihybrid cross (YyRr self) by mixing 10Y, 10y, 10R, and 10r in each of two buckets and drawing 2 balls per bucket?

No. Drawing 2 balls from one mixed bucket can pull illegal gametes like YY or rr that contain two copies of one gene and miss the other locus entirely. Instead, use 4 separate buckets (♀1 Y/y, ♀2 R/r, ♂1 Y/y, ♂2 R/r) and draw 1 ball from each bucket, as shown in Step 7.

Practice Quiz

Test your understanding with 6 diagnostic questions

Check concepts, graphs, and experimental error reasoning with immediate feedback for every choice.

Embed & Source Availability

Embed this simulation

Paste this iframe snippet into your non-commercial course page or learning platform.

Free & Source-Available (CC BY-NC-SA 4.0)

This simulation is licensed under CC BY-NC-SA 4.0 for non-commercial educational use, embedding, and adaptation with attribution.

Browse All 159 Free Labs →
Sources, Revision & Feedback

Sources, Revision & Feedback

Quiz →