<p>The density of matter depends not only on its composition, but also on temperature and pressure.  It's not meaningful to say that substance <em>A</em> is denser than substance <em>B</em> without specifying the conditions under which the comparison is being made.</p>

<p>For a simple everyday example, at room temperature (and pressure) water is significantly denser than air.  But heat them both above 100 &deg;C, and the water evaporates and actually becomes considerably <em>less</em> dense than air, even at the same temperature and pressure.</p>

<p>(By the <a href="https://en.wikipedia.org/wiki/Ideal_gas_law" rel="nofollow noreferrer">ideal gas law</a>, the density of different gases at a given temperature and pressure is approximately proportional to their average molecular mass.  The molecular mass of water is only about half that of diatomic oxygen and nitrogen, which are the main components of air on Earth, and thus water vapor is <a href="https://chemistry.stackexchange.com/questions/16055/why-do-we-use-helium-in-balloons/16059#16059">only about half as dense</a> as air at the same temperature and pressure.)</p>

<p>The surface temperature of Mercury is less than 1000 &deg;C (and the interior temperature should not be much greater), and it mostly consists of metals and silicate minerals (i.e. rock) that are solid or liquid at those temperatures.  The Sun's temperature, meanwhile, is over 5000 &deg;C at the surface (photosphere), and a <em>lot</em> hotter deeper inside.  If you could heat Mercury up to the same temperature as the Sun, most of the rocks and metals it consists of would evaporate, and would become a lot less dense.  So a lot of the density difference simply comes down to the fact that Mercury is a lot cooler than the Sun, and thus able to stay solid.</p>

<p>Another reason why the Sun is less dense than Mercury is that the Sun contains a lot of lightweight hydrogen gas (which has both a very low molecular weight and a very low evaporation point), while Mercury has almost no hydrogen at all.  The main reason for this is that the Sun's heat and the solar wind have effectively blown away any hydrogen and other volatile low-density substances that Mercury might once have had (or that might've existed in its general area while the solar system was forming).</p>

<p>The Sun itself can retain hydrogen due to its enormous gravity (but even so, it loses about one billion kilograms of it per second; that's basically what the <a href="https://en.wikipedia.org/wiki/Solar_wind" rel="nofollow noreferrer">solar wind</a> I mentioned above mostly is).  Mercury, however, is much smaller, and thus its gravity isn't strong enough to hold onto its own hydrogen so close to the Sun.</p>

<p>(Basically the same thing happened to Venus, Earth and Mars, which is why these inner planets didn't turn into huge balls of hydrogen gas like Jupiter and Saturn did.  However, Earth and Venus were both big enough, and located far enough from the Sun, that they could hang on to other slightly less volatile substances <a href="https://en.wikipedia.org/wiki/Atmosphere_of_Earth#Evolution_of_Earth.27s_atmosphere" rel="nofollow noreferrer">like water and air</a>.  Mars is located even further from the Sun, but is also a lot smaller than Earth, which is the main reason why it today has <a href="https://en.wikipedia.org/wiki/Atmosphere_of_Mars" rel="nofollow noreferrer">only a very thin atmosphere</a> of carbon dioxide, and very little if any water.)</p>

CC BY-SA 3.0
2016-05-19T15:00:46.507Z
Excellent unique point about the hydrogen being blown away by the solar wind. Because one would indeed expect the solar system  during formation behaving along the lines of a single entity like a planet: lighter elements should tend to be on the outside, and hence the sun being composed of more heavy elements. Or maybe all bodies should be of similar composition. The solar system cannot be understood without understanding its history.
Peter - Reinstate Monica
CC BY-SA 3.0
2016-05-16T18:43:46.443Z
2016-05-16T18:43:46.443Z
2017-04-13T12:57:06.147Z
Ilmari Karonen
<p>The sun isn't the same density all the way through.</p>

<p>According to MSFC's <a href="http://solarscience.msfc.nasa.gov/interior.shtml" rel="noreferrer">solar interior page</a>, the core density at the centre of the sun is a whopping 150,000 kg/m$^3$. Surrounding it the radiative zone is around 20,000 - 200 kg/m$^3$ (already less dense than water). Eventually at the edge is the convective zone - the density at the part that we see is much less dense than our own air...</p>

<p>So although the Sun's average density isn't very remarkable, the core is the densest place in the solar system.</p>

<p><a href="https://i.sstatic.net/wcfNB.png" rel="noreferrer"><img src="https://i.sstatic.net/wcfNB.png" alt="Sun - cross section view"></a>(Sun cross section from <a href="https://en.wikipedia.org/wiki/File:Sun_poster.svg" rel="noreferrer">Wikipedia.org</a>)</p>

CC BY-SA 3.0
2016-05-16T16:38:01.283Z
This is another good point. I considered mentioning it myself, but I decided instead to explain why the average density was so low.
called2voyage
CC BY-SA 3.0
2016-05-16T23:12:07.917Z
@Nayuki: _"the high temperature further decreases the temperature"_
Lightness Races in Orbit
CC BY-SA 3.0
2016-05-16T23:33:35.620Z
Additional note: Outside of the sun's core, most of the outer shells are simply hot hydrogen gas. We know that hydrogen is less dense than the materials in solid planets, and the high temperature further decreases the density.
Nayuki
CC BY-SA 3.0
2016-05-17T12:51:02.997Z
@Nayuki: Wow, you can't just go from "It's hydrogen" to "it's less dense than rock". That's nonsense. Hydrogen under standard conditions (1atm, 293K) is less dense than air. Hydrogen under conditions outside of the core is still much denser than air. See Andy's answer. Dare to follow the links.
AtmosphericPrisonEscape
CC BY-SA 3.0
2016-05-17T13:44:16.550Z
I'm not sure if this actually answers either of two questions
kd88
CC BY-SA 3.0
2016-05-16T16:25:17.797Z
2016-05-17T15:00:45.883Z
2016-05-17T15:00:45.883Z
Andy
<p>Fusion inside of a star affects the sun's density (which does not happen with a planet). It produces an outward pressure that balances against the attraction of gravity, thereby reducing the density as long as the star is burning. Once a star the mass of the sun is no longer able to sustain fusion, what is left is a white dwarf which is in fact much denser than Mercury.</p>

CC BY-SA 4.0
2023-01-13T13:39:35.210Z
Comments are not for extended discussion; this conversation has been [moved to chat](https://chat.stackexchange.com/rooms/142023/discussion-on-answer-by-called2voyage-why-is-the-suns-density-less-than-the-inn).
called2voyage
CC BY-SA 3.0
2016-05-16T15:10:24.827Z
2016-05-19T14:40:01.203Z
2016-05-19T14:40:01.203Z
called2voyage
<p>I'd say the most important answer is because <strong>the volume of stars is counted differently than for (inner) planets</strong>.<br>For the former, most of the gas surrounding the dense core is counted. The latter don't have significant enough amounts of it.</p>

<p>This is even more pronounced with larger stars.<br>
<a href="https://en.wikipedia.org/wiki/VY_Canis_Majoris#Controversy" rel="noreferrer">VY Canis Majoris</a>: "With an average density of 0.000005 to 0.000010 kg/m3, the star is <em>a hundred thousand times less dense than the atmosphere of Earth</em> (air) at sea level. It is also undergoing strong mass loss with the outer layers of the star <em>no longer gravitationally bound</em>"<br>
Yeah, <strong>less density than the air outside the ISS</strong>, and still a part of the star's volume.<br>
<a href="https://i.sstatic.net/0Nevk.jpg" rel="noreferrer"><img src="https://i.sstatic.net/0Nevk.jpg" alt="enter image description here"></a> The star is farting gas like nobody's business, and a huge part of that still counts into its diameter. The Sun is no different.</p>

<p>Obviously we're <strong>not using the same metric</strong>, so there is <strong>no point comparing the values</strong>.</p>

CC BY-SA 3.0
2016-05-17T15:13:49.073Z
You make an excellent point -- what we see as 'the sun' in visible light (the photosphere) would've been considered atmosphere on a planet, and not have counted as part of the volume for computing the density of the planet.
Joe
CC BY-SA 3.0
2016-05-17T07:43:29.297Z
2017-04-24T14:56:58.383Z
2017-04-24T14:56:58.383Z
kaay
<p>All the other answers address the density of the sun, but I feel that none of them actually addresses the OP's misconception. OP seems to think denser material should sink, but this is not the case. Thus Pluto is denser than Uranus, but orbits further out. There is nothing strange about this.</p>

<p>The reason is that orbital energy is conserved indefinitely unless there is some kind of interaction. A planet feels "weightless" just like an astronaut in a space station, because it is in freefall towards the centre of mass of the solar system. Unless it interacts with another body, <strong>matter, regardless of its density, will continue to orbit at the same distance from the centre of mass of the solar system</strong>, as a consequence of conservation of energy.</p>

<p>Density only becomes an issue when objects come into physical contact, and a body receives a push from another body.</p>

<p>Thus <strong>in an orbiting spacecraft, dense objects just float around "weightlessly" and do not "fall" to the "bottom."</strong> Both the air and the objects in the spaceship are experiencing gravity, but they are falling at the same rate, so they do not push each other.</p>

<p><strong>When the spacecraft is on the ground</strong>, the Earth's surface pushes up on the spacecraft, and prevents it from accelerating towards the centre of the earth. Under these circumstances, <strong>the denser objects, if unconstrained, will fall towards the floor of the spacecraft, displacing the less dense air</strong>. When they hit the floor, they receive a push from it, preventing their continued fall.</p>

<p><strong>In space objects do not push each other by physical contact, so density makes no difference.</strong> A trillion tons of iron and a trillion tons of silica may have different volumes, but they have the same mass, therefore so long as their interactions with the rest of the solar system are purely gravitational, both will behave identically.</p>

<p><strong>On the other hand, matter that has coalesced into a planet, sun, or moon will become stratified by density. In the case of a moon or rocky planet this is almost entirely due to the denser materials sinking and forcing the more voluminous ones to rise.</strong> In the case of the sun or a gas giant the core will also be denser due to compression. In addition to contact forces, friction is also present. Note also that <strong>friction is necessary for orbital decay</strong>: without it satellites will orbit at the same height indefinitely.</p>

CC BY-SA 3.0
2016-05-17T11:29:40.013Z
2016-05-17T22:07:53.123Z
2016-05-17T22:07:53.123Z
Level River St
<p>Simple answer. The sun is mostly hydrogen with an atomic weight of 1. Mercury is mostly (70%) metal such as iron (with an atomic weight of 55). Iron has a head start on density. For hydrogen to equal iron in density, 55 hydrogen atoms would have to be compressed in the space of a single iron atom. This happens in the core of the sun, but not in the entire sun.</p>

CC BY-SA 3.0
2016-05-18T16:40:47.270Z
2016-05-18T16:40:47.270Z
Russell Hankins
<p>The density of the Sun is $1410~\frac{\text{kg}}{\text{m}^{3}}$ and Mercury's is $5430~\frac{\text{kg}}{\text{m}^{3}}$, but shouldn't the Sun be denser? Because when the Solar System was forming, there was a big disk of debris, and depending on the density of the debris it went closer or further from the centre, which then formed the planets, but the Sun is in the centre, and it's less dense than Mercury, why?</p>

<solar-system><the-sun><mercury><density>
Why is the Sun's density less than the inner planets?
user11830
# Why is the Sun's density less than the inner planets?

(Asked by: username_0 on 2016-05-16)

The density of the Sun is $1410~\frac{\text{kg}}{\text{m}^{3}}$ and Mercury's is $5430~\frac{\text{kg}}{\text{m}^{3}}$, but shouldn't the Sun be denser? Because when the Solar System was forming, there was a big disk of debris, and depending on the density of the debris it went closer or further from the centre, which then formed the planets, but the Sun is in the centre, and it's less dense than Mercury, why?

**Tags:** solar-system, the-sun, mercury, density


---

## 6 answers

### Answer by username_3 on 2016-05-16. Score: 47

The sun isn't the same density all the way through.

According to MSFC's [solar interior page](http://solarscience.msfc.nasa.gov/interior.shtml), the core density at the centre of the sun is a whopping 150,000 kg/m$^3$. Surrounding it the radiative zone is around 20,000 - 200 kg/m$^3$ (already less dense than water). Eventually at the edge is the convective zone - the density at the part that we see is much less dense than our own air...

So although the Sun's average density isn't very remarkable, the core is the densest place in the solar system.

[![Sun - cross section view](https://i.sstatic.net/wcfNB.png)](https://i.sstatic.net/wcfNB.png)(Sun cross section from [Wikipedia.org](https://en.wikipedia.org/wiki/File:Sun_poster.svg))

> **Comments:**
> **username_4**: This is another good point. I considered mentioning it myself, but I decided instead to explain why the average density was so low.  
> **username_5**: @username_6: _"the high temperature further decreases the temperature"_  
> **username_6**: Additional note: Outside of the sun's core, most of the outer shells are simply hot hydrogen gas. We know that hydrogen is less dense than the materials in solid planets, and the high temperature further decreases the density.  
> **username_7**: @username_6: Wow, you can't just go from "It's hydrogen" to "it's less dense than rock". That's nonsense. Hydrogen under standard conditions (1atm, 293K) is less dense than air. Hydrogen under conditions outside of the core is still much denser than air. See username_3's answer. Dare to follow the links.  
> **username_8**: I'm not sure if this actually answers either of two questions  

---

### Answer by username_4 on 2016-05-16. Score: 32

Fusion inside of a star affects the sun's density (which does not happen with a planet). It produces an outward pressure that balances against the attraction of gravity, thereby reducing the density as long as the star is burning. Once a star the mass of the sun is no longer able to sustain fusion, what is left is a white dwarf which is in fact much denser than Mercury.

> **Comments:**
> **username_4**: Comments are not for extended discussion; this conversation has been [moved to chat](https://chat.stackexchange.com/rooms/142023/discussion-on-answer-by-username_4-why-is-the-suns-density-less-than-the-inn).  

---

### Answer by username_1 on 2016-05-16. Score: 23

The density of matter depends not only on its composition, but also on temperature and pressure. It's not meaningful to say that substance *A* is denser than substance *B* without specifying the conditions under which the comparison is being made.

For a simple everyday example, at room temperature (and pressure) water is significantly denser than air. But heat them both above 100 °C, and the water evaporates and actually becomes considerably *less* dense than air, even at the same temperature and pressure.

(By the [ideal gas law](https://en.wikipedia.org/wiki/Ideal_gas_law), the density of different gases at a given temperature and pressure is approximately proportional to their average molecular mass. The molecular mass of water is only about half that of diatomic oxygen and nitrogen, which are the main components of air on Earth, and thus water vapor is [only about half as dense](https://chemistry.stackexchange.com/questions/16055/why-do-we-use-helium-in-balloons/16059#16059) as air at the same temperature and pressure.)

The surface temperature of Mercury is less than 1000 °C (and the interior temperature should not be much greater), and it mostly consists of metals and silicate minerals (i.e. rock) that are solid or liquid at those temperatures. The Sun's temperature, meanwhile, is over 5000 °C at the surface (photosphere), and a *lot* hotter deeper inside. If you could heat Mercury up to the same temperature as the Sun, most of the rocks and metals it consists of would evaporate, and would become a lot less dense. So a lot of the density difference simply comes down to the fact that Mercury is a lot cooler than the Sun, and thus able to stay solid.

Another reason why the Sun is less dense than Mercury is that the Sun contains a lot of lightweight hydrogen gas (which has both a very low molecular weight and a very low evaporation point), while Mercury has almost no hydrogen at all. The main reason for this is that the Sun's heat and the solar wind have effectively blown away any hydrogen and other volatile low-density substances that Mercury might once have had (or that might've existed in its general area while the solar system was forming).

The Sun itself can retain hydrogen due to its enormous gravity (but even so, it loses about one billion kilograms of it per second; that's basically what the [solar wind](https://en.wikipedia.org/wiki/Solar_wind) I mentioned above mostly is). Mercury, however, is much smaller, and thus its gravity isn't strong enough to hold onto its own hydrogen so close to the Sun.

(Basically the same thing happened to Venus, Earth and Mars, which is why these inner planets didn't turn into huge balls of hydrogen gas like Jupiter and Saturn did. However, Earth and Venus were both big enough, and located far enough from the Sun, that they could hang on to other slightly less volatile substances [like water and air](https://en.wikipedia.org/wiki/Atmosphere_of_Earth#Evolution_of_Earth.27s_atmosphere). Mars is located even further from the Sun, but is also a lot smaller than Earth, which is the main reason why it today has [only a very thin atmosphere](https://en.wikipedia.org/wiki/Atmosphere_of_Mars) of carbon dioxide, and very little if any water.)

> **Comments:**
> **username_2**: Excellent unique point about the hydrogen being blown away by the solar wind. Because one would indeed expect the solar system  during formation behaving along the lines of a single entity like a planet: lighter elements should tend to be on the outside, and hence the sun being composed of more heavy elements. Or maybe all bodies should be of similar composition. The solar system cannot be understood without understanding its history.  

---

### Answer by username_9 on 2016-05-17. Score: 15

I'd say the most important answer is because **the volume of stars is counted differently than for (inner) planets**.  
For the former, most of the gas surrounding the dense core is counted. The latter don't have significant enough amounts of it.

This is even more pronounced with larger stars.  
[VY Canis Majoris](https://en.wikipedia.org/wiki/VY_Canis_Majoris#Controversy): "With an average density of 0.000005 to 0.000010 kg/m3, the star is *a hundred thousand times less dense than the atmosphere of Earth* (air) at sea username_11. It is also undergoing strong mass loss with the outer layers of the star *no longer gravitationally bound*"  
Yeah, **less density than the air outside the ISS**, and still a part of the star's volume.  
[![enter image description here](https://i.sstatic.net/0Nevk.jpg)](https://i.sstatic.net/0Nevk.jpg) The star is farting gas like nobody's business, and a huge part of that still counts into its diameter. The Sun is no different.

Obviously we're **not using the same metric**, so there is **no point comparing the values**.

> **Comments:**
> **username_10**: You make an excellent point -- what we see as 'the sun' in visible light (the photosphere) would've been considered atmosphere on a planet, and not have counted as part of the volume for computing the density of the planet.  

---

### Answer by username_11 on 2016-05-17. Score: 5

All the other answers address the density of the sun, but I feel that none of them actually addresses the OP's misconception. OP seems to think denser material should sink, but this is not the case. Thus Pluto is denser than Uranus, but orbits further out. There is nothing strange about this.

The reason is that orbital energy is conserved indefinitely unless there is some kind of interaction. A planet feels "weightless" just like an astronaut in a space station, because it is in freefall towards the centre of mass of the solar system. Unless it interacts with another body, **matter, regardless of its density, will continue to username_5 at the same distance from the centre of mass of the solar system**, as a consequence of conservation of energy.

Density only becomes an issue when objects come into physical contact, and a body receives a push from another body.

Thus **in an orbiting spacecraft, dense objects just float around "weightlessly" and do not "fall" to the "bottom."** Both the air and the objects in the spaceship are experiencing gravity, but they are falling at the same rate, so they do not push each other.

**When the spacecraft is on the ground**, the Earth's surface pushes up on the spacecraft, and prevents it from accelerating towards the centre of the earth. Under these circumstances, **the denser objects, if unconstrained, will fall towards the floor of the spacecraft, displacing the less dense air**. When they hit the floor, they receive a push from it, preventing their continued fall.

**In space objects do not push each other by physical contact, so density makes no difference.** A trillion tons of iron and a trillion tons of silica may have different volumes, but they have the same mass, therefore so long as their interactions with the rest of the solar system are purely gravitational, both will behave identically.

**On the other hand, matter that has coalesced into a planet, sun, or moon will become stratified by density. In the case of a moon or rocky planet this is almost entirely due to the denser materials sinking and forcing the more voluminous ones to rise.** In the case of the sun or a gas giant the core will also be denser due to compression. In addition to contact forces, friction is also present. Note also that **friction is necessary for orbital decay**: without it satellites will username_5 at the same height indefinitely.


---

### Answer by username_12 on 2016-05-18. Score: 3

Simple answer. The sun is mostly hydrogen with an atomic weight of 1. Mercury is mostly (70%) metal such as iron (with an atomic weight of 55). Iron has a head start on density. For hydrogen to equal iron in density, 55 hydrogen atoms would have to be compressed in the space of a single iron atom. This happens in the core of the sun, but not in the entire sun.


---

