In cooperatively breeding species, the fitness consequences of producing sons or daughters depend upon the fitness impacts of positive (repayment hypothesis) and negative (local competition hypothesis) social interactions among relatives. In this study, we examine brood sex allocation in relation to the predictions of both the repayment and the local competition hypotheses in the cooperatively breeding long-tailed tit Aegithalos caudatus. At the population level, we found that annual brood sex ratio was negatively related to the number of male survivors across years, as predicted by the local competition hypothesis. At an individual level, in contrast to predictions of the repayment hypothesis, there was no evidence for facultative control of brood sex ratio. However, immigrant females produced a greater proportion of sons than resident females, a result consistent with both hypotheses. We conclude that female long-tailed tits make adaptive decisions about brood sex allocation.