Punnett Square Calculator
A Punnett square is just a multiplication table for gametes: list the alleles each parent can hand on, cross every combination, and count what comes out. This calculator does that for one gene up to four, and then answers the three questions the squares themselves cannot — how the risk moves once you know the family already has affected or unaffected children, which probability belongs to sons and which to daughters when the gene is on the X chromosome, and what the ratios become when two genes sit close enough on one chromosome that they no longer sort independently. Every answer is exact Mendelian arithmetic over whole zygote classes, printed as a percentage per pregnancy and as the ratio it came from.
The square works because a parent does not pass on a genotype, only one allele of it. A person who is Aa gives A to half their conceptions and a to the other half, and nothing about the rest of their body changes that split. Put the two parents’ possibilities against each other and every cell of the grid is one equally likely zygote — four cells for one gene, sixteen for two genes that assort independently, sixty-four for three. Counting cells is the entire method, and the Genetics collection keeps that counting visible instead of hiding it behind a phenotype label.
What the grid does not do is reason about a family you already have. Ask "what is the chance our third child is affected" and the answer is still the same 25%, because conceptions have no memory — but ask "what is the chance at least one of our three children is affected" and it becomes 57.8%, because there are now three independent draws to consider. Those two numbers are both correct and they answer different questions, which is exactly why genetic counseling quotes one and worried parents hear the other.
Conditioning changes the arithmetic a third time. If you already know a person does not have a recessive condition, the aa cell is no longer in the running: the denominator drops from four to three, and the carrier probability for an unaffected sibling becomes 2/3 rather than the intuitive 1/2. Push the same idea onto parents rather than children and you get a Bayesian update — a couple with one in a hundred prior chance of both being carriers who have two healthy children have moved to about 0.57%, because each healthy birth multiplies the odds by 3/4. The step-by-step guide walks both of those derivations slowly.
Two more situations break the square as textbooks draw it. Genes on the same chromosome do not sort independently, so the four offspring classes are no longer equal: their sizes are set by a single recombination fraction, and the deviation from 1:1:1:1 is how mapping distances in centiMorgans were measured long before sequencing. And a gene on the X chromosome makes sex part of the equation, because a son inherits his X only from his mother and his father’s X never reaches a son at all. Both are handled here as their own modes, with the ratios split by sex rather than averaged over children.
Punnett Square Calculator
How to use the punnett square calculator
Pick what you want: offspring ratios from a cross, risk across several children, probability given a known phenotype, an X-linked cross, or a linked-gene cross.
In ratio mode, choose the number of genes and set each parent’s genotype at each gene from the AA / Aa / aa selectors.
Set dominance — complete, incomplete or codominant. Only the phenotype labels change; the genotype arithmetic is identical.
Read the result: the primary card is the most likely phenotype, and the table underneath lists every genotype class with its exact count out of 4, 16, 64 or 256.
For a family, enter the number of children and at least how many are affected; the cards give the per-child figure, the at-least-one figure and the probability nobody is affected.
For a conditional question, choose whether you are asking about a person whose phenotype you know, or about parents given healthy children — the second one wants a prior carrier probability.
For an X-linked cross, set the mother’s two X chromosomes and the father’s one; results are reported within sons, within daughters and across all pregnancies.
For linked genes, choose the phase (coupling or repulsion), the second parent and the recombination frequency — from your own counts or from a published map.
Press Calculate. Everything runs in your browser, and the method card states which assumption each number rests on.
Punnett Square formula
Variables and units
| Symbol | Meaning | Unit |
|---|---|---|
| L | Number of genes assumed to assort independently | genes |
| q | Probability one child falls in the class you asked about | % |
| n | Children in the family | children |
| j | How many of those n you are asking about | children |
| C(n,k) | Number of birth orders giving k affected among n | — |
| k | Healthy children already observed (Bayesian question) | children |
| r | Recombination frequency between the two linked loci | % (0 to under 50) |
| prior | Carrier probability before the children are counted | % |
How punnett square is calculated
- Split each parent into the alleles they can transmit — one of two per gene, equally likely.
- Form every combination: 4 zygotes for one gene, 16 for two, 64 for three, 256 for four.
- Collapse the zygotes into genotype classes, then into phenotype classes using the dominance rule you chose.
- If the question is about a family, take the per-child probability and expand it as a binomial over the number of children.
- If a phenotype is already known, delete the incompatible zygotes and renormalize over what survives.
- If the genes are linked, replace the equal gamete probabilities with (1−r)/2 for parental and r/2 for recombinant types.
Worked laboratory examples
Example 1 — Two carriers, one pregnancy
Given: Both parents Aa · complete dominance · the condition is the recessive phenotype
- Each parent transmits the recessive allele to half their conceptions: ½ × ½ = ¼.
- So 25% of pregnancies are affected, 50% carry one copy and 25% carry none.
- The phenotype ratio is 3 unaffected : 1 affected — a statement about one pregnancy, not about a family.
Result: 25% affected per pregnancy
Example 2 — The same couple with three children
Given: Both parents Aa · q = 25% per child · three children
- P(none affected) = 0.75³ = 42.19%.
- P(at least one affected) = 1 − 42.19% = 57.81%.
- The per-child risk never moved; the family risk is a different question, and the honest way to say it is both numbers together.
Result: 57.81% that at least one of three is affected
Example 3 — An unaffected sibling’s carrier risk (the 2/3 rule)
Given: Both parents Aa · the person is known unaffected
- The four zygote classes are AA, Aa, Aa, aa; observing no disease deletes aa, leaving three.
- Two of those three are heterozygous, so P(carrier | unaffected) = 2/3 = 66.67%.
- Had you used the pre-birth 1/2 you would be understating a real cousin’s carrier risk by a third.
Result: 66.67% carrier probability
Example 4 — Healthy children as evidence about the parents
Given: Prior that both parents are carriers: 1% · two children, both unaffected
- A carrier couple has an unaffected child with probability 3/4, so two give (3/4)² = 0.5625.
- Posterior = 0.01 × 0.5625 ÷ (0.01 × 0.5625 + 0.99) = 0.565%.
- Risk to the next pregnancy = 0.565% × ¼ = 0.141% — the couple who were "unlikely" are now merely "very unlikely".
Result: 0.565% that both are carriers; 0.141% risk to the next child
Example 5 — A carrier mother and an unaffected father (X-linked)
Given: Mother XᴺXᶜ · Father XᴺY · recessive X-linked condition
- Sons receive the maternal X and the paternal Y: half of them get the disease copy, so 50% of sons are affected.
- Daughters receive the father’s normal X on top of a maternal X: none are affected, half are carriers.
- Across all pregnancies, 25% of children are affected — the same fact as "50% of sons", counted differently.
Result: 50% of sons affected; 0% of daughters affected; 25% of all children
Example 6 — Two linked genes in coupling, testcrossed
Given: Heterozygote in coupling (AB / ab) · testcross partner ab / ab · recombination frequency r = 20%
- Parental gametes AB and ab are (1 − 0.20)/2 = 40% each; recombinant Ab and aB are 0.20/2 = 10% each.
- A testcross shows those gametes directly as offspring phenotypes: 40 : 40 : 10 : 10.
- Recombinant offspring are 20% of the progeny, which is a map distance of 20 centiMorgans.
Result: 20% recombinants, map distance 20 cM
Want the reasoning behind the numbers? Read How to Read a Punnett Square.
How to interpret the result
The primary card is the single most likely phenotype class, and the table under it is the whole distribution — every genotype, its zygote count out of the grid, and its percentage. Read the two together: a 56.25% top class in a dihybrid cross is nine of sixteen zygotes, and if you expected 75% you were probably thinking of a single gene. Percentages are per pregnancy; they say nothing about what a particular family of three will look like.
Where the number comes from changes how much weight it can carry. A ratio out of four is exact Mendelian bookkeeping, so its only uncertainty is whether your genotypes are right. A family figure inherits the per-child q plus the assumption that births are independent. A carrier probability given healthy children inherits the prior you typed in — that input is the soft part of the calculation, and a population frequency and a pedigree-derived number can differ by ten-fold for the same couple.
The X-linked mode deliberately quotes risks within each sex. "Half the sons" and "a quarter of children" are the same outcome counted over different denominators, and mixing them up is how a family ends up reassuring itself with the wrong number. The card labeled "any child affected" is the pregnancy-level figure; the son and daughter cards answer the question a person of that sex is actually asking. An affected son of an unaffected couple is evidence about his mother’s chromosomes, which is why the notes name which parent each risk came from.
In linkage mode the ratio itself is the measurement. Deviation from 1:1:1:1 in a testcross is what a recombination fraction means in practice, so the map distance printed here is 100·r by definition — and it is only honest while r is small enough that double crossovers stay rare. At r near 50% the classes become indistinguishable from independent assortment and the calculator says so instead of reporting a linkage nobody can see. If you need the physical order of features on a molecule rather than the genetic distance between them, that is a restriction map, and the restriction site finder works from the sequence itself.
Assumptions
- Genes in ratio, family and conditional modes assort independently — one gene per chromosome, or far enough apart on one to behave as if.
- Every zygote class survives and is observed: no prenatal lethality, no differential viability, no scoring error.
- One dominance rule applies per gene and is applied the same way to every gene in the cross.
- Allele transmission is 50/50; no meiotic drive, and no sex-ratio distortion in the X-linked mode.
- In the Bayesian question, the alternative to "both carriers" is assumed to produce no affected child.
Limitations
- Single-gene inheritance only: polygenic traits, mitochondrial inheritance, imprinting and repeat expansions need a different model.
- Recessive X-linked only. X-linked dominant conditions and skewed X-inactivation change the daughter risks.
- Map distance from recombination underestimates physical distance once double crossovers matter, and r = 50% is refused outright.
- No population genetics. Allele and genotype frequencies across a population are a different question from a cross between two known parents.
- Probabilities per pregnancy, not predictions for a family: three unaffected children from a carrier couple is a 42% event, not a refutation.
Common mistakes
- Reading a 25% risk as "one in four of my children will be affected" — it is one in four of each pregnancy.
- Quoting P(carrier) = 1/2 for an unaffected sibling of an affected person, instead of the conditioned 2/3.
- Averaging sons and daughters together in an X-linked cross, which hides both the 50% son risk and the zero daughter risk.
- Applying 9:3:3:1 to two genes on the same chromosome, then treating the shortfall as experimental error.
- Turning a recombination frequency into a physical distance in base pairs without saying so.
- Switching dominance and genotype: "dominant" describes the phenotype of a heterozygote, not how common the allele is.
- Reporting the phenotype ratio as if it were the genotype ratio whenever the heterozygote is not identifiable.
FAQ
How do you use a Punnett square?
What is the difference between genotype and phenotype ratio?
If both parents are carriers, is the risk 25% each pregnancy or 25% overall?
Why is an unaffected sibling’s carrier risk 2/3 and not 1/2?
Does a boy get color blindness from his mother or his father?
What if my two genes are on the same chromosome?
Can this tell me whether my child will have a genetic condition?
Is there a Hardy-Weinberg calculator here?
Scientific Sources
- StatPearls — Genetics: Inheritance Patterns (autosomal, X-linked and mitochondrial patterns and their risks to offspring) · Tier 1 source
- Wikipedia — Punnett square (the square construction and its gamete assumptions) · Tier 3 source
- Wikipedia — Test cross (why a homozygous recessive partner reads gametes straight off the offspring) · Tier 3 source
- Wikipedia — Genetic linkage (recombination fraction, coupling and repulsion, centiMorgans) · Tier 3 source
External links open in a new tab and carry rel="nofollow". We cite primary references (NIST, NIH/NCBI, peer-reviewed papers) and established manufacturer technical documentation (NEB, Thermo Fisher, Promega, IDT). Calculated results are estimates; your protocol and manufacturer guidance take precedence.
Last reviewed: 2026-10 · Method version: 1.0