PurposeThis paper investigates the optimization of window design factors (WDFs) in hospital buildings, particularly in government hospitals within the arid climate of the Qassim region, with the aim of achieving a better cooling load reduction. Continuous monitoring of the hospital ward section is crucial due to patients' needs, requiring optimal indoor air quality and cooling load.Design/methodology/approachThe study identifies the optimal conditions for WDF design to mitigate cooling load, including window-to-wall ratio (WWR), window orientation (WO), room size and U-value (thermal properties), effectively reduce energy consumption in terms of sensible cooling load (MWh/m2) and comply with local codes. Data collection involved a smart weather station, while the Integrated Environmental Solution Virtual Environment (IESVE) software facilitated the simulation process.FindingsKey findings reveal that larger patient rooms were about 40% more energy-efficient than smaller rooms. The northern orientation showed lower energy consumption, and specific WWRs and glazing U-values significantly affected energy loads. In an analysis of U-value changes in energy performance based on the Saudi Building Code (SBC), the presented values did not meet the minimum energy consumption standards. For a valid 40% WWR with a thermal permeability of 2.89, 0.181 MWh/m2 was consumed, while for an invalid 100% WWR with the same permeability but facing the north, 0.156 MWh/m2 was consumed, which is considered an invalid practice. It is vital to follow prescribed standards to ensure energy efficiency and avoid unnecessary costs.Originality/valueFocus lies in emphasizing the significance of adhering to prescribed standards, such as SBC, to guarantee energy efficiency and prevent unwarranted expenses. Additionally, the authors highlight the crucial role of optimizing glazing properties and allocating the WWR appropriately to achieve energy-efficient building design, accounting for diverse orientations and climatic conditions.