We show that differences in the reproductive development of honey bee workers are associated with locus-specific changes to abundance of messenger RNA. Using a cross-fostering field experiment to control for differences related to age and environment, we compared the gene expression profiles of functionally sterile workers (wild-type) and those from a mutant strain in which workers are reproductively active (anarchist). Among the set of three genes that are significantly differentially expressed are two major royal jelly proteins that are up-regulated in wild-type heads. This discovery is consistent with sterile workers synthesizing royal jelly as food for developing brood. Likewise, the relative underexpression of these two royal jellies in anarchist workers is consistent with these workers' characteristic avoidance of alloparental behaviour, in favour of selfish egg-laying. Overall, there is a trend for the most differentially expressed genes to be up-regulated in wild-type workers. This pattern suggests that functional sterility in honey bee workers may generally involve the expression of a suite of genes that effectively 'switch' ovaries off, and that selfish reproduction in honey bee workers, though rare, is the default developmental pathway that results when ovary activation is not suppressed.