Home / Science / Molecular and cell biology / Genetics / Punnett square and pedigree probabilityTool #202

Punnett square calculator: genotype and phenotype ratios, the branch method, family chances and carrier risk

Draw a Punnett square for 1 to 4 genes (complete, incomplete and codominant dominance, ABO blood groups, X-linked traits) and get the genotype and phenotype ratios as exact fractions. Use the branch method for up to 6 genes, the binomial rule for several children, and a Bayes table for carrier risk in a family. For learning, not genetic counselling.

Keep it one tap away for everyday use.

Bookmark Punnett square and pedigree probability?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

  1. Parents
  2. Square
  3. Ratios
  4. Chances
Nothing is uploadedWorks offline once open

For learning only. This page works out textbook chances from the rules of Mendelian inheritance. It is not genetic counselling or a medical test: real families have new mutations, linked genes, reduced penetrance and test results this page does not know about. Talk to a genetic counsellor or doctor about a real family.

The cross

Each gene: a letter, how its alleles act, and the two parents' genotypes. Phenotype names are optional (separate them with commas). Genes are taken to sort independently (not linked).

Several children

Each child is a new, independent draw, so the chances for a family follow the binomial rule: C(n, k) × pk × (1 − p)n − k.

Type p as 1/4, 0.25, 25 % or 1 in 4. Up to 40 children.

Carrier risk from a family tree

Two unaffected partners who are not related to each other. Pick what is known about each, then how many unaffected children they already have. Each child of two carriers has a 1 in 4 chance of being affected.

A typed chance such as 1/50 is a made-up example, not a figure for any real condition or population. Ask a genetics service for real numbers.

Bayes table

Prior: chance before looking at the children. Conditional: chance of these unaffected children if that is true. Joint = prior × conditional. Posterior = joint ÷ the sum of the joints.

Report

The cross, the ratios, your branch-method question, the family chances and the carrier risk in one file.

Download

What it does

A Punnett square lists every egg one parent can make against every sperm the other can make, so each box is an equally likely child. This page draws the square for you, counts the boxes and turns them into exact fractions, then goes further than a square can:

  • Up to 4 genes in a square (16 × 16 boxes), and up to 6 genes by the branch method.
  • Six ways a gene can act. Complete dominance (A_ looks the same as AA), incomplete dominance (Aa is in between, like pink flowers), codominance (both alleles show, written C¹C²), ABO blood groups (Iᴬ and Iᴮ codominant, i recessive), and X-linked recessive or X-linked dominant traits, where the father passes his X to daughters and his Y to sons, so the tables split children into females and males.
  • Ratios. The phenotype ratio in its usual form (9 : 3 : 3 : 1), plus tables of every phenotype and genotype with the fraction, the number of boxes and the percentage. Tap a row to light up its boxes in the square.
  • Branch method. Each gene on its own, then the product rule, with the working shown, for any child you describe: a genotype or a look for each gene, and a sex when there is an X-linked gene.
  • Several children. The binomial rule for “exactly k of n children”, at least k, at most k, none and at least one.
  • Carrier risk. A Bayes table for an autosomal recessive condition (two unaffected partners and their unaffected children) or an X-linked recessive one (a woman and her unaffected sons).

How to use it

  1. Parents. Pick an example or set the number of genes. For each gene choose a letter, how its alleles act, and the mother’s and father’s genotypes. Type phenotype names separated by commas if you like (for example Yellow, Green).
  2. Square. Read the eggs down the side and the sperm across the top. Each box is one equally likely child.
  3. Ratios. Read the phenotype and genotype tables, or download them as CSV.
  4. Chances. Describe one child in the branch method, use that chance (or a phenotype, or a typed one) for several children, and try the carrier risk calculator. The Image, PDF and Word buttons save everything as a report.

Worked example

The page opens with Mendel’s two pea genes: seed colour (A, yellow over green) and seed shape (B, round over wrinkled), both parents AaBb. Each parent makes four eggs or sperm, AB, Ab, aB and ab, so the square has 16 boxes. The page shows Phenotypes 9 : 3 : 3 : 1: yellow and round 9/16, yellow and wrinkled 3/16, green and round 3/16, green and wrinkled 1/16, from 9 genotypes in the ratio 1 : 2 : 1 : 2 : 4 : 2 : 1 : 2 : 1. The branch method gives the green, wrinkled child as 1/4 × 1/4 = 1/16.

Under Several children, with p = 1/4 (an affected child of two carriers) and 4 children, the chance that exactly 1 is affected is 4 × 1/4 × (3/4)³ = 27/64 (42.19 %), and at least one is 175/256 (68.36 %).

Under Carrier risk, both partners have an affected brother or sister, so each has a 2/3 chance of being a carrier. Before their children are counted, the chance that a child is affected is 2/3 × 2/3 × 1/4 = 1/9. They already have one unaffected child, which makes it a little less likely that both are carriers: the Bayes table gives both carriers 3/8, each partner 5/8, and the next child affected 3/32 (1 in 11). Switch to X-linked (recessive): a woman whose mother is a carrier (1/2) and who has two unaffected sons is a carrier with chance 1/5.

Tips

  • Use a test cross (Aa × aa, in the examples) to see why a 1 : 1 result tells you a parent was heterozygous.
  • For many genes, skip the square and use the branch method: it gives the same fractions with far less work.
  • The genes are taken to sort independently. Genes close together on a chromosome are linked and do not follow these ratios.

FAQ

Is this genetic counselling? No. It works out textbook chances only. Real families can have new mutations, incomplete penetrance, linked genes and test results this page cannot use. Talk to a genetic counsellor or doctor about a real family.

Why are boys and girls listed separately? With an X-linked gene the father gives his X to every daughter and his Y to every son, so the chances differ by sex.

Can I enter a population carrier chance? Yes, choose Type a chance. The 1/50 already there is a made-up example; ask a genetics service for a real figure.

Where the numbers come from

  • The square, the ratios, the branch method, the binomial chances and the Bayes tables are written by fibub from the standard rules of Mendelian inheritance and checked in the tests against an independent brute-force Python version (300 random crosses, 0 differences) and classic textbook results worked by hand (9:3:3:1, 27:9:9:9:3:3:3:1, 1/9 and 3/32 for two partners with affected siblings, 1/5 for an X-linked carrier with two unaffected sons).
  • The example crosses use letters and trait names only (Mendel's yellow/green and round/wrinkled peas are general textbook knowledge). The typed carrier chance 1/50 is made up and editable; it is not a figure for any real condition or population.
  • Nothing you enter is stored or sent anywhere.

Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

Last updated 2026-11-09.

Related tools

Pairwise sequence alignment #172 Align two DNA or protein sequences end to end (global), with free end gaps (semi-global) or by their best-matching stretch (local), with affine gap scores you can set. See the score, identity, similarity and gaps, the alignment in blocks, and a dot plot. Runs in your browser. DNA sequence tools #163 Paste a DNA or RNA sequence or open a FASTA file. Get the length and GC content, the reverse complement, the protein in any of the six reading frames, every open reading frame above a length you choose drawn on a map, and a codon usage table. Runs in your browser; your sequence never leaves the device. Primer checker #167 Check a PCR primer pair before you order it. Get the length, GC %, melting temperature by three simple formulas, the G/C clamp, runs and repeats, the longest hairpin, self- and cross-dimers with a picture of the worst one, and, with a template, every binding site and the product size. Mendelian chi-square test #203 Check whether the offspring of a cross fit a Mendelian ratio such as 3:1, 1:2:1, 9:3:3:1, 9:3:4, 12:3:1, 15:1, 1:1, 1:1:1:1 or your own. Get expected counts, chi-square, degrees of freedom, the p-value, which classes drive the result, a warning for small expected counts, and an exact binomial or multinomial test. Linkage map calculator #204 Convert recombination frequencies to map distances with the Haldane and Kosambi mapping functions (and back), order loci and draw a linkage map from a table of pairwise recombination frequencies, and solve a three-point testcross: gene order, recombination frequencies, coefficient of coincidence and interference. Runs in your browser. Pedigree drawing tool #205 Type or paste a family table, or add relatives with buttons, and get a pedigree drawn with the standard NSGC symbols: affected, carrier, deceased, proband, twins, adoption and consanguinity, with generation numbers. Checks for loops, missing parents and sex conflicts. Download SVG or PNG. Nothing leaves your device.