Solar Density Calculator
Mass, Volume & Density Relationships
Discover how the Sun's density is calculated from its mass and radius using this interactive visualization. Students learn that density equals mass divided by volume, where volume depends on the cube of radius. By adjusting stellar parameters, observe how changes in mass or size dramatically affect density. This simulation demonstrates why the Sun, despite being gaseous plasma, has density comparable to water due to gravitational compression—a fundamental astrophysics concept essential for understanding stellar structure and evolution.
Solar Mass (×10³⁰ kg)
2.0
Solar Radius (×10⁸ m)
7.0
ρ = M / V | V = (4/3)πr³
Calculated Results
Density:
1408 kg/m³
Comparison: The Sun's density (~1400 kg/m³) is similar to water (1000 kg/m³). Despite being a hot plasma, gravitational compression creates this surprisingly high density.



