A downhole heat exchanger, also called a borehole heat exchanger, is a heat exchanger installed inside a vertical or inclined borehole. It is used to capture or dissipate heat to or from the ground.