Instructions
Average Density
Look up the density of each of the bodies in the solar system.
Using the inner solar system as an example: the density of the sun is 1.4; Mercury is 5.4; Venus is 5.2; the Earth is 5.5; and Mars is 3.9; with all measured in grams per cubic centimeter.
Add them all. For the densities of the inner solar system in the example:
(1.4 + 5.4 + 5.2 + 5.5 + 3.9) = 21.4 g / cm^3.
Divide by the number of objects. This is the average density of all the objects in your selected sample.
So, for the inner solar system, the average density is: 21.4 / 5 = 4.3 g / cm^3.
Weighted Average Density
Look up the mass and radius of each body in the solar system.
Using the inner solar system as an example once again, the sun has a mass of 1,989,000 and a radius of 695,980. Mercury has a mass of .3 and a radius of 2440. Venus has a mass of 4.9 and a radius of 6052. Earth has a mass of 6.0 and a radius of 6371. Mars has a mass of 0.6 and a radius of 3390. The mass is in units of 10^24 kg and the radius is in kilometers.
Add up the total mass. For the example, 1,989,000 + .3 + 4.9 + 6.0 + 0.6 = 1,989,011.8 x 10^24 kg, which equals 1,989,011.8 x 10^27 g.
Calculate the volume of each body and add up the total volume. Volume = (4/3) * Pi * Radius^3.
The volumes for the inner solar system example are sun = 1,412,145,200; Mercury = 61; Venus = 928; Earth = 1083; and Mars = 163 with all given in 10^24 cm^3. The total is 1,412,147,400 x 10^24 cm^3.
Divide the mass by the volume. This would be the density of an object that was formed by shoving everything together in one giant blob: 1.989,011.8 * 10^27 g / 1,412,147,400 * 10^24 cm^3 = 1.4 g/cm^3. This is the same as the sun alone which makes sense because adding the planets into the sun is like tossing a couple pebbles into the sea.
Overall Mass Density
Look up the masses of each of the objects in the solar system and add them together. Again take as an example the inner solar system with masses in units of 10^27 g: Sun=1,989,000; Mercury=0.3; Venus=4.9; Earth=6.0; and Mars=0.6 for a total of 1,989,011.8 * 10^27 g.
Calculate the overall volume of the solar system. For the volume of the inner solar system, use a giant sphere all contained within the diameter of the orbit of Mars. The radius of Mars' orbit is 228 million kilometers. A sphere with that radius has a volume of 5 * 10^40 cubic centimeters.
Take the total mass and divide by the overall volume of the solar system.
This would be the density of an object created by mashing all the individual objects together, but then spreading the resulting glob out to fill all the space in the solar system.
To finish the example:
1,989,011.8 * 10^27 g / 5 x 10^40 cm^3 = 0.00000004 g / cm^3.
This is an indication of just how empty the solar system is. This is more than 30,000 times less dense than air at the surface of the Earth.