Geothermal structures are widely utilized to satisfy the heating and cooling demands of buildings, providing a promising alternative to the escalating scarcity of energy. As two types of geothermal heat exchangers, energy piles and borehole heat exchangers exhibit different efficiencies in extracting geothermal energy. This paper examines the thermal performance of an energy pile and a borehole heat exchanger under heating and cooling conditions through field tests, introducing the heat exchange rate per unit pipe length (q0) as a metric. Furthermore, a three-dimensional heat transfer numerical model was developed and validated. The parametric analysis was subsequently conducted to investigate the sensitivity of heat exchange efficiency to five parameters, including flow rate, inlet temperature, pipe diameter, soil thermal conductivity, and soil temperature. The results showed that the heat transfer efficiency of the borehole heat exchanger was 42.2 % and 48.7 % lower than that of the energy pile under the heating and cooling conditions, respectively. Moreover, the heat transfer efficiency of the energy pile and borehole heat exchanger is most sensitive to inlet temperature, with the latter showing greater sensitivity to pipe diameter. This study provides valuable insights into optimizing the design and operation of energy piles and borehole heat exchangers to meet the growing energy demands of buildings.