A geothermal system is most cost effective when installed in a new building or when an existing HVAC system is near the end of its useful life.