How much deep the hole is to be bored in geothermal power plant?

There are some very deep sources of radiogenic heat with geothermal power potential, like the Cooper Basin in Australia which lies 4.2 kilometres or over 2.5 miles underground. In other places in the world heat is harvested very close to the surface like The Geysers, a geothermal field in California.