Diet-related factors are of great significance in the regulation of hypothalamic-pituitary-adrenal (HPA) and hypothalamic-pituitary-gonad (HPG) axes. In this study, we aimed to investigate the effects of chronic exposure to a high fat diet (HFD), fructose or sucralose on the endocrine functions. Male, Sprague-Dawley rats received a normal chow diet, HFD, 10% fructose or 0.02% sucralose for 10 weeks. Behavioral changes were assessed by open field (OFT) and elevated plus-maze (EPM) tests at week 8. H&E staining was used to observe pathological changes in adrenal cortex, testis and perirenal adipose tissue. Serum hormone concentrations were quantified via enzyme-linked immunosorbent assay (ELISA). The mRNA expression levels of genes along the HPA and HPG axes were determined using real-time PCR. All types of dietary interventions increased body weight and disturbed metabolic homeostasis, with anxiogenic phenotype in behavioral tests and damage to cell morphology of adrenal cortex and testis being observed. Along the HPA axis, significantly increased corticotropin releasing hormone (CRH), adrenocorticotropic hormone (ACTH) and corticosterone (CORT) concentrations were observed in the HFD or 0.02% sucralose group. For HPG axis, gonadotropin-releasing hormone (GnRH) and estradiol (E2) concentrations were significantly increased in all dietary intervention groups, while decreased concentrations of follicle-stimulating hormone (FSH) and testosterone (T) were also detected. Moreover, transcriptional profiles of genes involved in the synthesis of hormones and corresponding hormone receptors were significantly altered. Long-term consumption of HFD, fructose or sucralose manifested deleterious effects on endocrine system and resulted in the dysregulation of HPA and HPG axes.