Average and central density
The mean solar density is about 1.4 g/cm³, but the core is far denser, approximately 150 g/cm³. Gravity compresses the interior while pressure and temperature support it against collapse.
Density by layer
Density generally decreases with distance from the center. The photosphere is much less dense than the interior, and the corona is extremely tenuous despite its very high temperature.
Hydrostatic equilibrium
The inward gravitational force is balanced by an outward pressure gradient. Density, temperature and composition govern nuclear reaction rates and the transport of energy. Solar oscillations provide information about these internal profiles.
Related articles
Scientific sources
NASA — The Sun · NOAA — Space Weather Scales
Current space weather conditions · 12-day report · Parameter charts