Sex can influence patterns of parasitism because males and females can differ in encounter with, and susceptibility to, parasites. We investigate an isopod parasite (Hemioniscus balani) that consumes ovarian fluid, blocking female function of its barnacle host, a simultaneous hermaphrodite. As a hermaphrodite, sex is fluid, and individuals may allocate energy differentially to male versus female reproduction. We predicted the relationship between barnacle size and female reproductive function influences the distribution of parasites within barnacle populations. We surveyed 12 populations spanning ~400 km of coastline of southern California and found intermediate-sized barnacles where most likely to be actively functioning as females. While it is unclear why larger individuals are less likely to be actively reproducing as females, we suggest this reduced likelihood is driven by increased investment in male reproductive effort at larger sizes. The female function-size relationship was mirrored by the relationship between size and parasitism. We suggest parasitism by Hemioniscus balani imposes a cost to female function, reinforcing the lack of investment in female function by the largest individuals. Within the subset of suitable (=female) hosts, infection probability increased with size. Hence, the distribution of female function, combined with selection for larger hosts, primarily dictated patterns of infection.