This study conducts a comprehensive analysis of the presence of heavy metals, including zinc (Zn), lead (Pb), copper (Cu), chromium (Cr), and arsenic (As), in the dust found inside educational buildings and the top layer of soil in different areas of Vilnius. The study focuses on the analysis of topsoil samples gathered between 2011 and 2023, with a specific emphasis on dust samples obtained from 24 schools in 2022. The research reveals significant variations in the concentrations of heavy metals, providing a clear understanding of the complex relationship between sources of urban pollution, environmental processes, and the correlation between soil and dust contamination by heavy metals. Indoor dust in schools shows unique contamination patterns in contrast to topsoil, suggesting distinctive sources of indoor pollution, while there are some general similarities. This finding emphasizes similarities and distinctions between soil and dust in educational environments. The study utilizes advanced statistical methods such as Pearson correlation, Principal Component Analysis (PCA), and hierarchical clustering to examine the distribution and characteristics of these metals. This study distinguishes itself by examining indoor dust in educational facilities and topsoil in Vilnius, providing crucial insights into the relationship between these two environmental matrices.