Objective: The goal of the research is to identify the various architectural typologies of traditional and newly constructed residential buildings in the historic city of Masouleh. Out of the 564 existing structures in the historic city, 119 historical residential buildings have been examined through field surveys. To understand the spaces and their functions within the residential buildings, interviews were conducted with the residents. To better comprehend the differences in spatial enclosure and hierarchy between traditional and newly constructed residential buildings in Masouleh, the spatial and visual analysis software Depthmap Version 10 was used. Method: The authors investigated 119 traditional and new houses in Masouleh by using historical sources, library studies and field surveys and implementing descriptive-comparative methods and visual and spatial network analysis software (Depthmap 10) to identify the types of residential building architecture. Results: In the architecture of newly constructed residential buildings in Masouleh, spaces such as Choghom, Someh, door threshold decorations, internal niches, fireplaces, Mefrag, storage rooms, Mālband, towers, and the spatial hierarchy transitioning from public to private areas have been eliminated. Transparency and spatial expansion have increased in the architecture of newly constructed buildings. In the structural framework of newly built residential buildings in Masuleh, materials such as cement, bricks, and rebar have been used. Conclusions: The research indicates that traditional Masouleh residential buildings are classified into horizontally and vertically expanded types. Modern residential buildings represent the newest typology in Masouleh’s historic fabric. From a spatial organization perspective, traditional types include elements like entrance, corridor, somue, mal-band, storage, staircase, mafaragh, tower, hall, telarpish, bariyeh, lon, bedroom, bathroom, and utilization of ground depth. These spaces adhere to a public-to-private hierarchy: the ground floor includes storage, corridor, bathroom, and entrance; upper floors comprise choghum, somue, staircase, bathroom, kitchen, reception, hall, telarpish, and bedroom. Conversely, modern buildings lack this hierarchy; guests enter the reception area directly on the ground floor with visibility to the kitchen, and upper floors provide access to reception, kitchen, and bedrooms. Spaces like corridors, storage, mal-band, choghum, and somue have been omitted, with designs aligning with modern urban patterns.