Chemical defences in animals are both incredibly widespread and highly diverse. Yet despite the important role they play in mediating interactions between predators and prey, extensive differences in the amounts and types of chemical compounds can exist between individuals, even within species and populations. Here we investigate the potential role of environment and development on the chemical defences of warningly coloured butterfly species from the tribe Heliconiini, which can both synthesize and sequester cyanogenic glycosides (CGs). We reared 5 Heliconiini species in captivity, each on a single species-specific host plant as larvae, and compared them to individuals collected in the wild to ascertain whether the variation in CG content observed in the field might be the result of differences in host plant availability. Three of these species were reared as larvae on the same host plant, Passiflora riparia, to further test how species, sex, and age affected the type and amount of different defensive CGs, and how they affected the ratio of synthesized to sequestered compounds. Then, focusing on the generalist species Heliconius numata, we specifically explored variation in chemical profiles as a result of the host plant consumed by caterpillars and their brood line, using rearing experiments carried out on two naturally co-occurring host plants with differing CG profiles. Our results show significant differences in both the amount of synthesized and sequestered compounds between butterflies reared in captivity and those collected in the field. We also found a significant effect of species and an effect of sex in some, but not all, species. We show that chemical defences in H. numata continue to increase throughout their life, likely because of continued biosynthesis, and we suggest that variation in the amount of synthesized CGs in this species does not appear to stem from larval host plants, although this warrants further study. Interestingly, we detected a significant effect of brood lines, consistent with heritability influencing CG concentrations in H. numata. Altogether, our results point to multiple factors resulting in chemical defence variation in Heliconiini butterflies and highlight the overlooked effect of synthesis capabilities, which may be genetically determined to some extent.