Ventilation may lead to a deterioration in indoor air quality in urban environments located close to roads. Understanding the differences in the chemical compositions of size-resolved particulate matter (PM) in indoor air and outdoor air could aid in assessing the health impacts of air in these settings and establishing relevant regulation policies. In this study, indoor and outdoor size-resolved PM was collected from an office in Beijing in summer (between 5 and 25 July 2020) and winter (between 5 and 31 January 2021). Its chemical components, including sulfate, nitrate, ammonium, chlorine, organic matter (OM), elemental carbon (EC), crustal materials (CM), and heavy metals (HM), were analyzed. The mean levels of indoor and outdoor PM2.1 and PM9 were found to be much higher than those in the guidelines for PM2.5 and PM10 outlined by the National Ambient Air Quality Standard. Moreover, the levels of PM2.1 and PM2.1–9 mass were higher outdoors than they were indoors. The size distributions of mass concentrations were shown to be bimodal, peaking at 0.43–0.65 μm and 4.7–5.8 μm, respectively. The most abundant chemicals were OM, nitrate, and sulfate for PM2.1 and OM, CM, and nitrate for PM2.1–9. We found higher percentages of sulfate, nitrate, ammonium, EC, and HM in smaller-size fractions of PM. Additionally, positive matrix factorization showed that biomass burning, secondary inorganic aerosol, coal combustion, dust, traffic, and industrial pollution were the main sources of PM during the study period. The greatest non-carcinogenic and carcinogenic hazards were found at 0.43–0.65 μm in summer and 2.1–3.3 μm in winter. Our results indicate that size-resolved PM of ambient origin may infiltrate buildings near roads to varying degrees, resulting in negative health effects.