The Sun is a G-type main-sequence star (G2V), informally called a yellow dwarf, though its light is actually white. Roughly three-quarters of the Sun's mass consists of hydrogen (~73%) the rest is mostly helium (~25%), with much smaller quantities of heavier elements, including oxygen, carbon, neon, and iron. Its mass is about 330,000 times that of Earth, making up about 99.86% of the total mass of the Solar System. Its diameter is about 1,391,400 km ( 864,600 mi 4.64 ls), 109 times that of Earth or 4 lunar distances. From Earth, it is on average 1 AU ( 1.496 ×10 8 km) or about 8 light-minutes away. The Sun moves around the Galactic Center of the Milky Way, at a distance of 26,660 light-years. The Sun behaves dynamically as a magneto- alternator rather than a dynamo.
Part of this internal energy gets emitted from the surface as light, ultraviolet, and infrared radiation, providing most of the energy for life on Earth. It is a massive, hot ball of plasma, and it is inflated and heated by energy produced by nuclear fusion reactions at its core. The Sun is the star at the center of the Solar System.