Congenital adrenal hyperplasia (CAH) is characterized by impaired adrenal cortisol production. Hydrocortisone (synthetic cortisol) is the drug-of-choice for cortisol replacement therapy, aiming to mimic physiological cortisol circadian rhythm. The hypothalamic-pituitary-adrenal (HPA) axis controls cortisol production through the pituitary adrenocorticotropic hormone (ACTH) and feedback mechanisms. The aim of this study was to quantify key mechanisms involved in the HPA axis activity regulation and their interaction with hydrocortisone therapy. Data from 30 healthy volunteers was leveraged: Endogenous ACTH and cortisol concentrations without any intervention as well as cortisol concentrations measured after dexamethasone suppression and single dose administration of (i) 0.5–10 mg hydrocortisone as granules, (ii) 20 mg hydrocortisone as granules and intravenous bolus. A stepwise model development workflow was used: A newly developed model for endogenous ACTH and cortisol was merged with a refined hydrocortisone pharmacokinetic model. The joint model was used to simulate ACTH and cortisol trajectories in CAH patients with varying degrees of enzyme deficiency, with or without hydrocortisone administration, and healthy individuals. Time-dependent ACTH-driven endogenous cortisol production and cortisol-mediated feedback inhibition of ACTH secretion processes were quantified and implemented in the model. Comparison of simulated ACTH and cortisol trajectories between CAH patients and healthy individuals showed the importance of administering hydrocortisone before morning ACTH secretion peak time to suppress ACTH overproduction observed in untreated CAH patients. The developed framework allowed to gain insights on the physiological mechanisms of the HPA axis regulation, its perturbations in CAH and interaction with hydrocortisone administration, paving the way towards cortisol replacement therapy optimization.