On this page
This question usually comes in one of two forms: "A gene on the X chromosome has four alleles. How many genotypes are possible?" or "How many of those genotypes are possible in males?" The answer depends on which sex the question asks about, and most wrong answers come from forgetting that one detail.
Below is the derivation in three lines, then four NEET-UG-style questions you can try before reading the solutions.
Why do males and females have different numbers of genotypes?
Females are XX, so they carry two copies of every X-linked gene. Males are XY, and the Y has no matching copy, so a male has exactly one allele of each X-linked gene.
Rather than homozygous or heterozygous, males are called hemizygous for X-linked genes, as this genetics text on X-linked inheritance explains. The same page lists three female genotypes and two male genotypes for a two-allele eye-colour gene in fruit flies, which is the n = 2 case of everything below.
For the crosses themselves, see our guide to solving X-linked crosses for colour blindness and haemophilia.
How many genotypes does an X-linked gene with n alleles have?
Females: n(n+1)/2. A female carries two alleles chosen from n, where repeats are allowed and order does not matter. There are n homozygotes (both alleles the same) and n(n−1)/2 heterozygotes (two different alleles), which add up to n(n+1)/2.
The general formula for the number of genotypes with n alleles is n(n+1)/2, as given in Vasisth, Limbalkar and Sharma's chapter on multiple alleles (IntechOpen, 2023). That formula applies to any gene with two copies, which is why it works for autosomes and for females here.
Males: n. A male has one X, so his genotype is simply whichever allele sits on it: X¹Y, X²Y and so on, one genotype per allele.
Whole population: n(n+1)/2 + n, which simplifies to n(n+3)/2.
The autosomal version, where everyone gets n(n+1)/2, is covered with a real three-allele gene in our post on ABO blood group inheritance and multiple alleles.
How do you solve questions with 2, 3 and 4 alleles?
Question 1, two alleles (n = 2). An X-linked gene has two alleles, X¹ and X². How many genotypes are possible in the population?
Females: 2 × 3 ÷ 2 = 3, namely X¹X¹, X¹X², X²X²
Males: 2, namely X¹Y, X²Y
Total: 3 + 2 = 5
Question 2, three alleles (n = 3). An X-linked gene has three alleles. How many genotypes are possible in females and in males respectively? (a) 6 and 3 (b) 9 and 3 (c) 6 and 6 (d) 3 and 3
Females: 3 × 4 ÷ 2 = 6, namely X¹X¹, X²X², X³X³, X¹X², X¹X³, X²X³
Males: 3, namely X¹Y, X²Y, X³Y
Answer: (a). Option (c) is the trap: it applies the two-copy formula to males.
Question 3, four alleles (n = 4). An X-linked gene has four alleles. What is the total number of genotypes possible in the population? (a) 10 (b) 14 (c) 16 (d) 20
Females: 4 × 5 ÷ 2 = 10
Males: 4
Answer: (b) 14
Each wrong option is a specific mistake. 10 counts females only, as if the gene were autosomal. 16 is 4², which counts X¹X² and X²X¹ separately. 20 uses n(n+1)/2 for both sexes.
Question 4, working backwards. An X-linked gene gives 9 genotypes in the population. How many alleles does it have?
Set n(n+3)/2 = 9, so n² + 3n − 18 = 0.
Factorise: (n + 6)(n − 3) = 0.
Alleles cannot be negative, so n = 3. Check: 6 + 3 = 9.
What mistakes cost marks on these questions?
Check these before you mark an answer:
Underline the group the question asks about: females, males, or the whole population.
Check where the gene sits. Autosomal means n(n+1)/2 for everyone; X-linked means splitting by sex.
Never count X¹X² and X²X¹ as two genotypes.
Do not square n. Squaring counts ordered pairs, which is the wrong question.
Keep the small cases in your head: n = 2 gives 3, 2 and 5; n = 3 gives 6, 3 and 9; n = 4 gives 10, 4 and 14; n = 5 gives 15, 5 and 20.
The same reasoning handles a gene found only on the Y chromosome: only males carry it, one copy each, so n alleles give n genotypes, all in males. For counting gametes rather than genotypes, see our explainer on how many gametes and genotypes a trihybrid makes.
If you get the count right but lose marks on the cross that follows, the Fermi Problem Library has worked problems with a step-by-step solver that explains the reasoning rather than printing an answer. If words like hemizygous or multiple alleles still feel shaky, the Fermi Concept Library gives each concept its own lesson and shows where it sits in the map of biology.
Try Question 3 again tomorrow without looking. If you can explain why 16 and 20 are wrong, you have it.



