Through the research on the traditional houses and modern rural houses in the Ningqiang area of southern Shaanxi, it is found that the traditional rural houses generally use the storage space under the roof of the slope for summer heat insulation. However, the roof design is generally lack of climate adaptability, and the roof function is "Alienation", the lack of a combination of natural, ecological focus on the overall design. Contemporary rural housing in the early construction of the general use of the flat roof, the latter due to heat insulation, rainfall and other spontaneous demand in the original flat roof plus slope roof. In this paper, the thermal insulation space under the roof roof is selected from the aspects of the thermal insulation space height and the insulation space of the insulation space. And quantitative analysis, based on the improvement of thermal insulation performance, the quantitative method for the slope roof insulation design to provide the necessary data support, summed up the southern Shaanxi Ningqiang slope roof space optimization design strategy. It is of practical significance to the space reconstruction of existing buildings and the spatial design of new farm houses.