The prediction of energy consumption on a national or regional scale has become extremely important to researchers in recent years, especially in the light of the rate of depletion of primary energy sources combined with the rate of increase in the demand of the same resources on a global scale. The present paper deals with a simple machine learning based approach, using regression, for accurate prediction of energy consumption using the fossil fuel and energy consumption data of India as a representative country.