Abstract Sarcophaga peregrina (Robineau-Desvoidy, 1830), a synanthropic flesh fly species found in different parts of the world, is of medical and forensic importance. Traditional methods of inferring developmental age rely on the life stage of insects and morphological changes. However, once the larvae reach the pupal and adult stage, morphological changes would become barely visible, so that the classic method would be invalid. Here, we studied the cuticular hydrocarbon profile of S. peregrina of the whole life cycle from larval stage to adult stage by GC–MS. Sixty-three compounds with carbon chain length ranging from 8 to 36 were detected, which could be categorized into four classes: n-alkanes, branched alkanes, alkenes, and unknowns. As developmental increased, branched alkanes dominant, and the content of high-molecular-weight hydrocarbons is variable, especially for 2-methyl C19, DiMethyl C21, docosane (C22), and tricosane (C23). This study shows that the composition of CHC could be used to determine the developmental age of S. peregrina and aid in postmortem interval estimations in forensic science.