All the power the world needs could be provided by alternative energy sources within 20-40 years if the political will could be found, according to Stanford researchers. Note that they do not include nuclear energy in their calculations.
Part of their technique is to include ‘externalities’ of hydrocarbon fuels in their cost estimates, such as health costs of pollution.