PM2.5 and O3 are significant threats to the health of residents and modern residents spend more than 80% of their time indoors, so quantifying indoor exposure of residents has a positive influence on formulating policies and improving health indicators. Analysis of monitoring data shows a consistent decrease in the annual average concentration of outdoor PM2.5 in Beijing from 90.1 to 30.4μg/m3, and the equivalent human exposure concentration also declined from 55.2 to 18.6μg/m3 modified by infiltration factors from 2014 to 2022, while during the peak season, the average value of O3-8h concentration in Beijing has consistently remained between 159.3 and 225.3μg/m3; the equivalent human exposure concentration remained between 64.7 and 92.3μg/m3 modified by infiltration factors from 2014 to 2023. The equivalent exposure concentration is calculated by weighting the concentration of indoor and outdoor pollutants, the proportion of indoor and outdoor activity time of the population, and the permeability coefficient of outdoor pollutants into the room, so as to quantify the actual concentration of pollutants exposed to the human body in a certain time. Previous studies have primarily focused on the impact of annual changes in pollutant concentrations on health estimates, often neglecting indoor concentrations and behavior patterns. This limitation should be addressed. Therefore, this study utilized equivalent human exposure concentration and AirQ + , the authoritative software released by the World Health Organization (WHO), to evaluate quantitatively the impact of PM2.5 and O3 on the health of Beijing residents by combining pollutant concentration, annual population, and mortality of various diseases and other indicators to enhance the credibility of the study. The number of deaths related to PM2.5 has decreased from 28,182 people in 2014 to 10,250 people in 2022 (age ≥ 30). The number of premature deaths in 2022 was only 36.4 percent of that in 2014 and was decreasing by 1992 per year. The number of deaths related to O3 varies between 550 and 3358 people. Lowering PM2.5 and O3 concentrations can effectively reduce natural premature death as well as cardiovascular and respiratory diseases caused by air pollution. The government should persist in enhancing the regulation of PM2.5 and accord significance to the oversight of O3. Concurrently, there is a need to reinforce the cooperative regulation addressing both PM2.5 and O3.