Skip to content

Free online calculator for genetics

Punnett square calculator

A Punnett square is a grid that shows the possible offspring of a cross and their expected ratios. The free StudyScope Labs Genetics Calculator solves monohybrid and dihybrid crosses in your browser with no account. It also has Hardy-Weinberg, codon table and reference tabs.

What does the Genetics Calculator do?

The Genetics Calculator has four tabs. On the Punnett Square tab you choose Monohybrid or Dihybrid and type each parent's alleles, and the calculator shows the cross and the expected ratios. The other tabs cover related work: Hardy-Weinberg handles population-level allele frequencies, the Codon Table translates mRNA to amino acids, and the Reference tab lists the laws of inheritance and classic ratios.

On the Punnett Square tab, you enter each parent's genotype as a pair of letters. For a monohybrid cross, the calculator shows the 2 by 2 square, the genotype ratios (for example AA 1/4, Aa 2/4, aa 1/4 with percentages) and the phenotype ratios (Dominant or Recessive). For a dihybrid cross, it shows the cross (for example AaBb × AaBb) and tells you how many of the 16 offspring fall into each phenotype class, with the percentage.

The calculator is free and opens in your browser. You do not need an account. StudyScope Labs has other core tools that are also free to use without an account.

How do you set up a Punnett square?

  1. Write each parent's genotype with a capital letter for the dominant allele and a lower-case letter for the recessive one. For example, VV (homozygous dominant), Vv (heterozygous), or vv (homozygous recessive).
  2. Split each parent's alleles into the gametes it can make. Put one parent's gametes along the top of the grid and the other's down the side.
  3. Fill each box with the allele from its row and its column. Each box is one possible offspring genotype.
  4. Count the boxes to get the genotype ratio. If you know which allele is dominant, group the boxes into the phenotype ratio.
  5. Check your answer in the Genetics Calculator. Type the same alleles into the calculator and compare its square and ratios with yours.

How do you read the results?

Aa × Aa gives a genotype ratio of 1:2:1 (one homozygous dominant, two heterozygous, one homozygous recessive) and a phenotype ratio of 3:1 (three with the dominant trait, one with the recessive). You can see these same ratios on the Reference tab of the Genetics Calculator.

These ratios are expected values from probability. They do not promise what any one family or litter will have. Real counts get close only with large sample sizes. Small families can differ from the expected ratio.

A test cross helps you find out whether an organism with the dominant trait is homozygous or heterozygous. Cross it with a homozygous recessive organism. If all the offspring show the dominant trait, it is homozygous dominant. If about half show the recessive trait, it is heterozygous. Try Aa × aa in the calculator to see the 1:1 ratio.

In a dihybrid cross, AaBb × AaBb gives a 9:3:3:1 phenotype ratio when the two genes assort independently. The calculator labels the four phenotype classes A_-B_, A_-bb, aa-B_, and aa-bb, but genes that sit close together on one chromosome do not follow the 9:3:3:1 pattern.

Once a cross involves more than two genes, the Punnett square grid gets very large. A cross with four genes would need a 16 × 16 grid with 256 boxes. In those cases the forked-line and probability methods are easier than drawing the square.

What can't the calculator do?

The calculator's Phenotype Ratios label every result as Dominant or Recessive, so it assumes one allele fully masks the other. This is called complete dominance. If a gene shows incomplete dominance or codominance instead, use the genotype ratio from the calculator. With incomplete dominance, the phenotype ratio is 1:2:1 (the same as the genotype ratio), and you can see this on the Reference tab.

Sex-linked (X-linked) crosses are not in the calculator. For traits on the X chromosome, draw the square by hand with X and Y chromosomes, because males have only one X-linked allele. Reciprocal crosses do not give the same offspring ratios for X-linked traits.

The Ontario Grade 11 Biology curriculum for University Preparation (SBI3U), checked October 1, 2026, expects students to use the Punnett square method for monohybrid crosses, incomplete dominance, codominance, dihybrid crosses and sex-linked genes. The calculator covers monohybrid and dihybrid crosses, so practise incomplete dominance, codominance and sex-linked crosses by hand. StudyScope also offers science tutoring. For a study habit to try, work the square on paper first, then use the calculator to check; how to prepare for exams covers practice before a test.

The examples here are classroom problems, such as pea plants. If you have a question about an inherited condition in a real family, ask a family doctor.

Frequently asked questions

Is the Genetics Calculator free? Do I need an account?

Yes, it is free, and you do not need an account. It runs in your browser. All core StudyScope Labs tools work without an account or installation.

Can it do dihybrid crosses?

Yes. Choose Dihybrid, type two genes for each parent (for example Aa and Bb), and it shows how many of the 16 possible offspring fall in each phenotype class. AaBb × AaBb gives the classic 9:3:3:1 ratio.

Does it do sex-linked Punnett squares?

No. The calculator handles monohybrid and dihybrid crosses. For X-linked traits, draw the square by hand with X and Y chromosomes, since males carry only one copy of an X-linked gene.

What does a 3:1 ratio mean?

In a cross of two heterozygotes (Aa × Aa), you expect about three offspring with the dominant trait for every one with the recessive trait. It is a probability, so small families or samples can differ.

What is the Hardy-Weinberg tab for?

It uses the equation p² + 2pq + q² = 1 to turn one allele or phenotype frequency into the expected genotype frequencies in a population. It assumes a large population with no mutation, migration or selection.

Sources and date checked

  1. Genetics Calculator (opens in a new tab)StudyScope Labs, checked
  2. All Tools directory (opens in a new tab)StudyScope Labs, checked
  3. Genetics Calculator in use (opens in a new tab)StudyScope Labs, checked
  4. Labs pricing page and About (opens in a new tab)StudyScope Labs, checked
  5. The Ontario Curriculum, Grades 11 and 12: Science (Revised 2008) (opens in a new tab)Ontario Ministry of Education, checked
  6. Biology 2e, section 12.2 Characteristics and Traits (opens in a new tab)OpenStax, Rice University, checked
  7. Biology 2e, section 12.3 Laws of Inheritance (opens in a new tab)OpenStax, Rice University, checked
  8. Biology 2e, section 19.1 Population Evolution (opens in a new tab)OpenStax, Rice University, checked