PurposeThis study aimed to evaluate the quality of the educational environment in Tehran University of Medical Sciences across different medical specialties and its correlation with residents’ burnout. Materials and methodsThis cross-sectional study was conducted at Tehran University of Medical Sciences among residents drawn from three largest teaching hospitals affiliated. The Maslach Burnout Inventory and Postgraduate Hospital Educational Environment Measure (PHEEM) questionnaire were used to collect data through web-based, as well as paper-and pencil questionnaires. The data was analyzed using SPSS. ResultsA total of 221 residents completed the survey, with a response rate of 82%. Burnout was reported by 67.4% of medical residents. The total PHEEM score had a negative correlation with emotional exhaustion (r = - 0.57, P < 0.001), depersonalization (r = - 0.40, P < 0.001), and a positive one with personal accomplishment (r = 0.42, P < 0.001). Perception of social support significantly predicted burnout subscales (P < 0.05). PHEEM subscales also explained a small proportion of variance in emotional exhaustion (R = 0.55, R2 = 0.308, P < .001). Clinical learning environment independent of personal characteristics was associated with residents' burnout according to multivariate regression analysis [OR = 0.567 (0.170–0.883), P = 0.012]. ConclusionClinical learning environment independent of personal characteristics was associated with residents' burnout in Iran. We suggest some initiatives to be introduced ranging from improving the clinical environments, reduce workloads and provide social support to all residents as well as encouraging them to involve in other extracurricular activities like music and physical exercise.