Skip to main content

DNA Inheritance

Explore Mendelian inheritance interactively with a real monohybrid Punnett square — choose each parent's alleles and see the offspring genotype and phenotype ratios recompute live.

How it works

Each parent has two copies (alleles) of a gene and passes one of them, chosen at random, to each offspring. A Punnett square lists the four equally likely combinations, which gives the chance of each genotype and of each visible trait (phenotype).

What you will learn

After using this simulation you should be able to:

  • Use a Punnett square to predict the possible offspring of two parents.
  • Explain the difference between a dominant and a recessive allele, and between a genotype and a phenotype.
  • Understand that the ratios are chances for each offspring, not a guarantee for a small family.

Equations

P(each square) = ½ × ½ = ¼
Each parent passes either allele with probability one half.
Yy × Yy → 1 YY : 2 Yy : 1 yy
Genotype ratio of a cross between two carriers.
Yy × Yy → 3 dominant : 1 recessive
Phenotype ratio when one allele is completely dominant.

What the model assumes

  • One gene with two alleles controls the trait (a monohybrid cross).
  • One allele is completely dominant: one copy is enough for its trait to show.
  • Each parent passes on either allele with equal chance (Mendel's law of segregation), and fertilisation is random.

Where it stops being right

  • The ratios are probabilities, not guarantees: a family of four children from two carriers will not always include exactly one with the recessive trait.
  • Most human traits, such as height and eye colour, depend on many genes and on the environment, so they do not follow these simple ratios.
  • Some alleles show incomplete dominance or codominance (both effects visible), which this model does not include.

Sources

  • Mendel, G. (1866) Versuche über Pflanzen-Hybriden, Verhandlungen des naturforschenden Vereines in Brünn 4

Loading the DNA Inheritance explorer…

Using this simulation

How to use it

  1. Start with a preset to see a real example, then change one control at a time and watch which results change.
  2. Drag a slider to explore, or type an exact number in the box next to it.
  3. The results under the picture update straight away. Open “Show the data as a table” to see them laid out side by side.
  4. When you find something interesting, use “Copy shareable link” to send exactly those settings to someone else.

Things to try

  • Choose the test cross (Yy × yy). Half the offspring are expected to be green: a 1 : 1 ratio.
  • Make both parents YY. Every offspring is YY and yellow; green cannot appear.
  • Choose two carriers (Yy × Yy). On average 3 in 4 offspring are yellow and 1 in 4 green, but a real family of four can easily have no green offspring at all, because each one is a separate chance.

The controls

Allele 1
The first copy of the seed-colour gene this parent carries: Y (yellow, dominant) or y (green, recessive). Each parent has an Allele 1 and an Allele 2.
Allele 2
The second copy of the same gene. A parent with one of each (Yy) is called a carrier of green.
Preset
Loads a ready-made, real-world example. The sentence under it says what the example shows.
Reset to default
Puts every control back to the first preset.
Exact value boxes
Each slider has a box for typing a precise number. A value outside the allowed range is refused with a message, never quietly changed.
Show the data as a table
Opens the same results as a table.
Copy shareable link
Copies a link that opens the simulation with exactly these settings. The link holds only the settings, nothing about you.

The readings

Cross
The two parents' genotypes written side by side.
Genotypes
Which pairs of alleles the offspring can have, and the chance of each.
Show the dominant trait
The chance an offspring has yellow seeds.
Show the recessive trait
The chance an offspring has green seeds, which needs two y alleles.

Accessibility

  • The Punnett square is a table: parent 1's alleles run down the side and parent 2's across the top, and each cell is one equally likely offspring.
  • Every slider works with the keyboard: arrow keys for small steps, Page Up and Page Down for big ones, Home and End for the limits.
  • Every result is written out as text and announced by screen readers as it changes, and the data table holds the same numbers.
  • If your device asks for reduced motion, a still diagram is shown instead of the animation; otherwise the animation can be paused at any time.