The Sun is a normal G2 star that contains over 99% of the mass in the Solar System. It has a diameter of 1.39 million km and a surface temperature of 5,800 K. Energy is created in the Sun's core through nuclear fusion and radiates outward through convection and radiation zones to the surface. The Sun's 11-year activity cycle causes variations in sunspots, flares, and other magnetic phenomena. In the future, the Sun will expand into a red giant after exhausting its hydrogen fuel supply over many billions of years.