BiologyIntermediateExperiment simulation~15 min

Mendelian Genetics and Inheritance

Why do some traits skip a generation? In the 1860s a monk named Gregor Mendel answered this by breeding thousands of pea plants and counting the results. Choose the parents, predict their offspring with a Punnett square, then breed hundreds of plants to see how real chance compares with the prediction.

Flower colour Click a box or an allele
Cross

Parent 1 genotype
Parent 2 genotype

Start breeds one offspring at a time and shows which gametes met.

Cross
—
—
—
—
—
—
—
—
—

Bred offspring compared with the prediction

The percentage of bred offspring showing the dominant phenotype as more offspring are added, with the predicted percentage as a dashed line.

    How to use this simulator

    1. Choose a pea trait and the genotype of each parent, or press one of the classic crosses.
    2. Read the Punnett square: each parent’s possible gametes are along the edges, and each box is one equally likely offspring. Click a box or an allele to learn more.
    3. Press Breed 1, Breed 10 or Breed 100, or Start to breed continuously. Compare the filled bars (bred) with the outlines (predicted), and watch the graph.
    4. Switch to Two traits to cross seed shape and seed colour in a 4 × 4 Punnett square.

    Mendel and his peas

    Gregor Mendel chose garden peas because they have clear either/or traits (purple or white flowers, round or wrinkled seeds), grow quickly and can be cross-pollinated by hand. He started with pure-breeding plants, crossed them, and counted the traits of the offspring over several generations. When he crossed purple-flowered and white-flowered plants, all the offspring were purple; but when those offspring were crossed together, white flowers reappeared in about one plant in four. He concluded that traits are passed on as separate “factors” that do not blend.

    Genes, alleles, genotypes and phenotypes

    Mendel’s factors are now called genes. A gene can come in different versions calledalleles. Body cells carry two alleles of each gene, one from each parent. The pair of alleles is thegenotype: homozygous if both are the same (PP or pp) and heterozygousif they differ (Pp). The characteristic you can observe, such as purple flowers, is the phenotype.

    Dominant and recessive

    A dominant allele, written with a capital letter, shows its effect even when only one copy is present. A recessive allele, written in lower case, only shows when an individual has two copies. So PP and Pp plants both have purple flowers, and only pp plants are white. A heterozygous individual is a carrier: it hides the recessive allele but can pass it on, which is how traits seem to skip a generation.

    Using a Punnett square

    Each parent makes gametes carrying just one allele of each gene, and each allele has an equal chance of being passed on. This is Mendel’s law of segregation, explained by the separation of homologous chromosomes in meiosis. A Punnett square lists one parent’s possible gametes across the top and the other’s down the side; each box shows one possible offspring, and all boxes are equally likely. For Pp × Pp the boxes are PP, Pp, Pp and pp: a genotype ratio of 1 : 2 : 1 and a phenotype ratio of 3 purple : 1 white.

    Probability, not certainty

    A Punnett square predicts probabilities, not exact outcomes. A ratio of 3 : 1 means each offspring has a 3 in 4 chance of being purple, not that every family of four will contain exactly one white plant. Each offspring is an independent event: two carrier parents who already have an affected child still have a 1 in 4 chance for the next one. With small numbers the results can differ a lot from the prediction; with large numbers they get closer, as the simulator’s graph shows.

    The test cross

    A purple plant could be PP or Pp. To find out, cross it with a homozygous recessive (pp) plant. If all offspring are purple, the plant is probably PP; if about half are white, it must be Pp.

    Two traits at once

    Mendel also followed two traits together, such as seed shape (round R, wrinkled r) and seed colour (yellow Y, green y). Crossing two RrYy plants gave about 9 round yellow : 3 round green : 3 wrinkled yellow : 1 wrinkled green. Each gene still gave 3 : 1, and the genes were inherited independently. This is the law of independent assortment, which holds for genes on different chromosomes.

    Beyond Mendel

    Many traits do not follow these simple patterns. In incomplete dominance heterozygotes are intermediate (red × white snapdragons give pink); in codominance both alleles show (the AB blood group). Genes close together on one chromosome are linked, and most human traits, such as height, depend on many genes and the environment.

    Real-world applications

    Plant and animal breeders use these rules to produce crops and livestock with useful traits. Genetic counsellors use them to work out the chance of inherited conditions such as cystic fibrosis, which is recessive.

    Common misconceptions

    • “Dominant means more common.” Dominance describes how alleles interact, not how frequent they are.
    • “A 3 : 1 ratio means exactly 3 out of every 4.” It is a probability for each offspring.
    • “Recessive alleles disappear.” They are hidden in carriers and can reappear in later generations.

    Key takeaways

    • Genes come in alleles; the genotype is the pair of alleles, the phenotype is the trait shown.
    • Dominant alleles show with one copy; recessive alleles need two.
    • Punnett squares give the probability of each genotype and phenotype for every offspring.
    • Large samples approach the predicted ratios; small samples vary by chance.

    Model note: the simulator assumes complete dominance, equal chances for each allele and, in the dihybrid cross, genes on different chromosomes. Real inheritance can involve linkage, several genes and environmental effects. This is a learning tool, not a genetic risk calculator.

    Knowledge check

    Mendelian Genetics and Inheritance: test your understanding

    Answer each question to get instant feedback and an explanation. Use the simulator to check your thinking.

    8 questions3 basic3 intermediate2 advanced

    0 of 8 answered

    1. Q1BasicWhat is an allele?
      Show answer

      Answer: B. A different version of the same gene

      A gene for flower colour can have a purple allele (P) and a white allele (p). The observable trait itself is the phenotype.

    2. Q2BasicA pea plant has the genotype Pp. Which statement is correct?
      Show answer

      Answer: B. It is heterozygous and has purple flowers, because P is dominant

      One dominant allele is enough for the dominant phenotype. The recessive p allele is still there and can be passed on to half of its gametes.

    3. Q3BasicWhat is the difference between genotype and phenotype?
      Show answer

      Answer: A. Genotype is the alleles an organism has; phenotype is the characteristics it shows

      PP and Pp are different genotypes with the same phenotype (purple). Phenotype can also be affected by the environment.

    4. Q4IntermediateTwo heterozygous purple plants (Pp × Pp) are crossed. What fraction of the offspring is expected to be white?
      Show answer

      Answer: B. 1/4

      The Punnett square gives PP, Pp, Pp and pp. Only pp (1 box in 4) is white, so the phenotype ratio is 3 purple : 1 white.

    5. Q5IntermediateA couple who are both carriers (heterozygous) of a recessive condition already have one affected child. What is the chance that their next child is affected?
      Show answer

      Answer: B. 25%

      Each child is an independent event: the gametes do not remember previous children. A Punnett square gives probabilities, not a guaranteed pattern within a family.

    6. Q6IntermediateHow can a test cross show whether a purple plant is PP or Pp?
      Show answer

      Answer: A. Cross it with a pp plant: if any white offspring appear, the purple plant must be Pp

      A pp parent can only give p. PP × pp gives all purple; Pp × pp gives about half white. Try both in the simulator.

    7. Q7AdvancedIn the simulator you breed 10 offspring from Pp × Pp and get 4 white ones instead of the predicted 2 or 3. What does this show?
      Show answer

      Answer: B. Random chance makes small samples differ from the prediction; with many more offspring the proportion approaches 1/4

      Mendel counted thousands of peas to see clear ratios. The graph shows the bred percentage settling towards the prediction as numbers grow.

    8. Q8AdvancedCrossing two RrYy pea plants gives about 9 round yellow : 3 round green : 3 wrinkled yellow : 1 wrinkled green. Why?
      Show answer

      Answer: A. Because the two genes are inherited independently, so each 3 : 1 ratio combines (3 : 1 × 3 : 1)

      This is Mendel’s law of independent assortment. It holds for genes on different chromosomes; genes close together on the same chromosome tend to be inherited together (linkage).

    References and further reading

    1. Clark, M. A., Douglas, M., & Choi, J. (2018). Biology 2e, Chapter 12: Mendel’s Experiments and Heredity. OpenStax. openstax.org (opens in a new tab)
    2. Mendel, G. (1866). Versuche über Pflanzen-Hybriden [Experiments on plant hybridization]. Verhandlungen des naturforschenden Vereines in Brünn, 4, 3–47.
    3. Griffiths, A. J. F., et al. (2020). Introduction to Genetic Analysis (12th ed.), Chapter 3: Single-Gene Inheritance. W. H. Freeman.
    4. Miko, I. (2008). Gregor Mendel and the principles of inheritance. Nature Education, 1(1), 134. nature.com (opens in a new tab)

    This simulator is a simplified educational model. Found an error? Let us know. See our educational disclaimer.