Researchers have uncovered the genomic basis of sex determination in Nepenthes mirabilis, the only pitcher plant native to China, identifying an XX/XY sex chromosome system and molecular markers that can distinguish male from female plants long before they flower.