We identified key developmental time windows in which TrkB inhibition contributes to long-term obesity of both male and female mice, which stems from sexually dimorphic neuropeptide expression in the hypothalamus of genes known to regulate whole-body energy balance. Here, NTRK2 is linked to obesity disorder.