High-temperature geothermal resources are increasingly being explored as an alternative to coal and natural gas for space heating. In light of the growing demand for energy conservation and emission reduction, it is crucial to conduct a comprehensive evaluation of geothermal energy according to environmental impact and energy cost. Based on geothermal heating systems in Xi'an, China, this study develops a model involving the life cycle assessment (LCA) method to assess the borehole heat exchanger (BHE) in heating systems, encompassing carbon intensity (C intensity ). The response surface method was employed to optimize the drilling depth, operating flow, and pipe diameter ratio, which influences carbon intensity. The findings revealed that the minimum C intensity is 24.11 g(CO2)& sdot;kWh-1, corresponding to a 4000 m burial depth, 20 m 3 h- 1 flow rate, and 0.54 diameter ratio. However, these results diverge from the minimum levelized cost of energy (LCOE) of $7.84/GJ, with 3912.8 m, 34.32 m 3 h- 1 , and 0.64. A dual-objective optimization indicates the allocation of weights to the objective functions influences the optimal drilling depth (the optimal value is between 3920.51 m and 3921.62 m) and operating flow rate (ranging from 28.8 to 31.4 m 3 h- 1 ). The optimal outcomes for LCOE and C intensity are contingent upon the decision-makers' weight allocation.