We therefore can calculate that the total energy the sun has to burn is around 1.3 x 1044 Joules. Dividing 3.8 x 1026 Watts (the rate at which the sun is giving off energy) into this number gives an approximate value of 10 billion years for the sun's lifetime.