The Sun is warmest far away from its surface
The Sun’s surface, the photosphere, is a toasty 6,000°C, but its outer atmosphere, the corona, can get 10+ million °C, particularly when solar eruptions occur. The Solar Dynamics Observatory (SDO) space telescope studies the Sun in several wavelengths, which capture the radiation from specific layers of its atmosphere. These are SDO recordings from the Sun’s surface to the upper layer of its atmosphere. Scientists do not yet fully understand why the temperature rises in the Sun’s atmosphere, but magnetic forces probably play a role.