AbstractPlants with nitrogen‐fixing bacteria, such as legumes with rhizobia, can tap the atmospheric nitrogen pool to obtain resources for defense compounds. Cyanogenesis, a nitrogen‐based plant defense against herbivores, increases in response to rhizobial colonization, but depends on plant genotype. Here, we tested whether genotypic differences in host plant cyanogenesis influence symbiotic reliance on nitrogen‐fixing rhizobia. Using thin, clear soil containers, we counted nodules on live root systems of distinct high (HC) and low (LC) lima bean (Phaseolus lunatus) cyanotypes across the duration of an eight‐week study. We measured changes in cyanogenic potential (HCNp) and protein content to reveal quantitative interactions between nodule number and both leaf traits. High cyanogenic plants maintained consistently twice as many nodules as LC plants. Including both cyanotypes, nodule number correlated positively with HCNp, but negatively with foliar protein content. However, within‐cyanotype interactions between nodule number and plant traits were not significant except for foliar protein in HC plants, which decreased with increasing nodule number. Our results imply that while genotypes with higher levels of nitrogen‐based defense invest more in the rhizobial partner, the costs involved in maintaining the symbiosis may cause resource allocation constraints in the plants' primary nitrogen metabolism.