Graphic explaining how a solar flare is formed. Some background from NASA: The distance of the Sun from the Earth is approximately 93 million miles. At this distance, light travels from the Sun to Earth in about 8 minutes and 19 seconds. The Sun has a diameter of about 865,000 miles, about 109 times that of Earth. Its mass, about 330,000 times that of Earth, accounts for about 99.86% of the total mass of the Solar System. About three quarters of the Sun's mass consists of hydrogen, while the rest is mostly helium, NASA says.