Shallow geothermal energy, by an earth-to-air heat exchanger (EAHE), is utilized to cool buildings with minimal energy usage. Significant parameters affecting the heat exchanger's performance must be investigated to obtain a suitable design. Shallow geothermal energy, by an earth-to-air heat exchanger (EAHE), is utilized to cool buildings with minimal energy usage. Significant parameters affecting the heat exchanger's performance must be investigated to obtain a suitable design. This article numerically and experimentally investigates the effect of pipe diameter, pipe length, inlet air temperature, soil temperature, airflow velocity, and soil thermal conductivity on the performance of the heat exchanger under hot and dry climate conditions. The soil temperature distribution was measured from the surface to a depth of 7 m in the city of Karbala (center of Iraq) in the summer season. The experimental test for EAHE was carried out in water-saturated soil and ambient air temperatures of 41 ºC, 45 ºC, and 49.5 ºC at four different velocities. The percentage drop in the EAHE outlet air temperature at 9 m/s was 28.3%, 25.5%, and 19.5%, respectively. Also, the three-dimensional model was created, and the simulation results were compared with the experimental results, which were in good agreement. An equation for the outlet air temperature was found as a function of pipe diameter and length, ambient air temperature, soil temperature around the pipe, and soil thermal conductivity. The resulted equation were compared with the current experimental results and experimental results of reported data inliterature. As a result, a very good agreement was observed. The results showed that the parameter L (length of the pipe) causes the strongest nonlinear behavior in the equation. For the cases considered, at diameters 75 and 100 mm, an approximate linear behavior for the length required to achieve a specific outlet temperature was observed. It can be concluded from the results that changing the soil type from dry one (k=0.5 W/m K) to saturated one (case of Karbala city, k=1.5 W/m K) resulted about 25% reduction in the length of the pipe. Also, the results showed that at an air velocity of 7m/s, the length required to obtain 26 ºC at the outlet of EAHE is 62.1 m which is 55% higher than the case of 29 ºC (39.9m).