For almost everything, a warmer substance is less dense and a colder one is denser. Heat makes matter take up more room while its weight stays the same. How strong the effect is depends on whether you’re dealing with a gas, a liquid, or a solid, and water breaks the rule just above freezing. This small shift in density is what lifts hot-air balloons and moves winds and deep ocean currents.
Why Heat Spreads Particles Apart
Density is how much mass is packed into a given space: mass divided by volume.1Sketchy. Properties of Ideal Gases – Free Sketchy MCAT Lesson If the same amount of material spreads into more space, its density falls. Heating doesn’t add or remove any matter, so the mass stays put while the volume changes.
Temperature is essentially a measure of how much energy of motion the particles have, so as it rises, the atoms move faster and end up farther apart.2Laboratory of Atomistic and Molecular Mechanics. How Is Density Affected by Temperature? A heated structure grows larger.2Laboratory of Atomistic and Molecular Mechanics. How Is Density Affected by Temperature?
The same cause works in all three states, even though the particles move differently. In a liquid, particles slide past one another while staying in contact, and faster motion jostles them apart a little, so the liquid takes up slightly more room. In a gas, particles fly freely and rarely collide, so faster motion carries them farther apart and the gas fills more space if nothing holds it back.
Solids are a bit subtler. Atoms in a solid don’t wander; they vibrate in place, and the vibrations get bigger as it heats.2Laboratory of Atomistic and Molecular Mechanics. How Is Density Affected by Temperature? But atoms push back much harder when squeezed close than they pull when stretched apart.2Laboratory of Atomistic and Molecular Mechanics. How Is Density Affected by Temperature? So as the vibrations grow, the atoms spend more time farther apart than closer together, and the average spacing grows.2Laboratory of Atomistic and Molecular Mechanics. How Is Density Affected by Temperature? Even a rigid metal bar gets slightly longer and less dense when hot.
Heat doesn’t make things lighter: a kilogram of metal stays a kilogram. When people call hot air “lighter,” they mean a given volume of it weighs less.
Gases Change Far More Than Liquids and Solids
For a gas, density equals its molar mass times pressure, divided by a constant times temperature.1Sketchy. Properties of Ideal Gases – Free Sketchy MCAT Lesson At steady pressure, that means doubling the absolute temperature halves the gas’s density. The temperature that counts is measured from absolute zero, in kelvins, not in Celsius or Fahrenheit. Warming air from 0°C (273 K) to 30°C (303 K) cuts its density by about a tenth.
Celsius numbers mislead: going from 10°C to 20°C looks like doubling, but in kelvins it’s 283 to 293, so air density drops only about 3.5%. Add about 273 to a Celsius reading before comparing.
Pressure works the opposite way: in the same rule, higher pressure raises gas density while higher temperature lowers it.1Sketchy. Properties of Ideal Gases – Free Sketchy MCAT Lesson So air in a sealed, rigid container keeps the same density when heated. It can’t expand, so the volume and the mass are unchanged. The hotter particles hit the walls harder and more often, which shows up as higher pressure. That’s why a sealed can left in a hot car or a fire is dangerous. Air in an open room is different: it can drift outward as it warms, so the warmed air does become less dense than the cooler air around it.
Liquids and solids expand only slightly. Their particles are already packed closely and held by strong attractions, so heating changes their density by fractions of a percent over everyday temperature ranges. In a gas, particles are mostly separated by empty space, which leaves a lot of room to spread.
You can see the effect everywhere.3Physical Review B. Untangling high-temperature thermal expansion and lattice thermal conductivity behavior of vanadium using machine-learned molecular dynamics Bridges and railways have gaps so steel can grow on hot days. A stuck metal jar lid loosens under hot water because the metal expands more than the glass. The liquid in a thermometer rises because it expands as it warms. Power lines sag more in summer heat.
Water and Other Exceptions to the Rule
Water is densest at about 4°C; below that it expands again as it cools. When water freezes, its molecules lock into an open pattern, so ice is about 9% less dense than liquid water. That’s why ice floats and lakes freeze from the top down. Water near 4°C settles at the bottom of a lake in winter, and the ice on top insulates it, letting fish survive below.
The same expansion explains why a frozen water bottle can split. The bottle has no room for the extra volume, and the pressure cracks glass or bulges plastic. Leave space at the top when freezing liquids.
A few materials shrink when warmed. Some solids actually contract when heated, a rare behavior.4PubMed. Negative thermal expansion and associated anomalous physical properties: review of the lattice dynamics theoretical foundation In these materials, rigid groups of atoms twist as they vibrate and pull the structure inward.4PubMed. Negative thermal expansion and associated anomalous physical properties: review of the lattice dynamics theoretical foundation
Melting itself is a sudden density jump, separate from the gradual change with temperature. Most substances get noticeably less dense when they melt.5International Journal of Heat and Mass Transfer. Influence of density change during melting inside a cavity: Theoretical scaling laws and numerical analysis Going the other way, wax and many solids shrink as they solidify, which is why a candle top can sink in the middle.
Warm Rises, Cool Sinks
Warm air has lower density than cool air, but it doesn’t rise on its own.6National Weather Service. Parcel Theory Gravity pulls the cooler, denser air down, and it spreads under and pushes the warm air upward.6National Weather Service. Parcel Theory This upward push on something less dense than its surroundings is called buoyancy.7Wikipedia. Atmospheric convection
Hot-air balloons use this directly. A burner heats the air inside, making it less dense than the air outside.8large.stanford.edu. Physics of Hot-Air Balloons The lift equals the balloon’s volume times the density difference between outside and inside air, minus the weight of the envelope.9Renewable Energy. Hot air balloon engine When that lift beats the total weight, the balloon rises; when it falls short, it sinks.8large.stanford.edu. Physics of Hot-Air Balloons
On a hot day, the outside air is already less dense, so the gap between inside and outside shrinks. The burner must heat the inside air even more for the same lift, which is one reason balloon flights are often scheduled for cool mornings.
You can watch the same process at home. Water at the bottom of a pot heats and rises, and cooler water sinks to replace it. Radiators warm a room as heated air rises and cool air flows in near the floor. Smoke and steam curl upward for the same reason.
How Temperature-Driven Density Moves Weather and Oceans
Warmer, less dense air rises while cooler, denser air sinks, carrying heat and moisture upward.7Wikipedia. Atmospheric convection This mixes the lowest layer of the atmosphere and deepens it during the day.7Wikipedia. Atmospheric convection Sunny afternoons often bring puffy clouds or thunderstorms as heated air climbs.
Sea breezes work on the same principle. Land heats faster than water during the day, so air over the land warms, becomes less dense, and rises. Cooler, denser air over the sea flows in to replace it. At night the pattern can reverse.
In the ocean, density depends on both temperature and saltiness, and it decides whether water sinks or floats.10NASA Salinity. How Is Density Affected by Temperature? Colder water is denser, and saltier water is denser. Warm, fresh river water floats on top of cold, salty seawater. Melting ice adds fresh water, which makes surface water less dense, while rain and runoff lower saltiness and evaporation raises it.
These density differences drive a slow, global deep-ocean circulation, separate from wind-driven currents and tides.11pik-potsdam.de. The Thermohaline Ocean Circulation Near the poles, water gets very cold and sea ice forms, leaving salt behind in the water around it.12National Ocean Service. Thermohaline Circulation – Currents That cold, salty water becomes dense, sinks, and starts the deep currents often called the global conveyor belt.12National Ocean Service. Thermohaline Circulation – Currents
When Pressure Changes the Picture
Squeezing a substance pushes particles closer, raising density, the opposite of heating. That’s why the air in a car tire is denser than the outside air even at a similar temperature. Pumping squeezes more air into the same fixed volume, so the mass per volume inside rises, and the higher pressure is why air rushes out when the valve opens. Pumping also warms the air a little, but the added mass far outweighs that small warming effect.
Mountain air shows pressure working the other way. Air pressure drops with altitude, and lower pressure means lower air density even if it’s cold. Each breath holds less oxygen, and planes and balloons get less lift.

