Learn density

What Is Density? Definition, Formula, and Examples

Density describes mass per unit volume. It explains why some materials feel heavy for their size, why ice floats, and why hot air balloons rise.

Density is one of the most important ideas in science because it connects two things we measure constantly: mass and volume. Mass tells you how much matter an object contains. Volume tells you how much space that object occupies. Density combines them into one ratio so you can compare substances that look similar in size but behave very differently in the real world.

In everyday life, density answers questions that feel intuitive even before you know the formal definition. Why does a steel bar feel so much heavier than a same-sized block of wood? Why does oil float on water? Why do cargo costs depend on how tightly material is packed? Why can a ship made of steel still float? All of those questions come back to density, which is why the topic appears in physics, chemistry, geology, medicine, materials science, and logistics.

The density formula

The formal definition is simple: density equals mass divided by volume. Written with the usual scientific symbol, the equation is ρ = m / V. The Greek letter rho (ρ) stands for density, m stands for mass, and V stands for volume.

This relationship is powerful because it can be rearranged without changing the physics. If you know density and volume, you can solve for mass. If you know density and mass, you can solve for volume. That is exactly what the main calculator on this site does. If you want the full derivation and worked equations, open the density formula guide.

  • Density: ρ = m / V
  • Mass: m = ρ × V
  • Volume: V = m / ρ

Units of density

Density is always written as a mass unit divided by a volume unit. In SI, the standard format is kilograms per cubic meter (kg/m³). In chemistry and classroom work, grams per cubic centimeter (g/cm³) is common because the numbers are convenient. In industry and U.S. reference tables, you may also see pounds per cubic foot (lb/ft³).

UnitTypical useEquivalent
kg/m³Engineering, physics, fluids, constructionSI base reporting unit
g/cm³Chemistry, materials science, labs1 g/cm³ = 1000 kg/m³
kg/LLiquids and tank sizing1 kg/L = 1000 kg/m³
lb/ft³U.S. construction and HVACImperial bulk-density format

A good density workflow keeps the physical value fixed while changing the reporting format. That is why the calculator and the density units guide place so much emphasis on conversions. Wrong units are the fastest way to get a correct-looking answer that is physically wrong.

How density changes with temperature

Temperature changes density because temperature changes volume. Most materials expand when heated. If mass stays the same but volume gets larger, density goes down. Gases are the most sensitive because they are highly compressible. Warm air is less dense than cool air, which is why hot-air balloons rise and why weather systems are strongly linked to density-driven pressure differences.

Liquids also change with temperature, but not as dramatically as gases. Water is the most famous example because it behaves in an unusual way. Instead of becoming steadily denser as it cools all the way to freezing, fresh water reaches maximum density near 4°C and then becomes less dense as it turns to ice. That is why ice floats instead of sinking.

Solids usually change density only a little with temperature, but the change still matters in precision engineering, metrology, and material specification work. Even when the shift is small, it can affect fit, buoyancy, calibration, or reported performance.

Density vs. weight vs. mass

These terms are often confused, but they are not interchangeable. Mass tells you how much matter an object contains. Weight is the force of gravity acting on that mass. Density compares mass to volume. An object can have a large mass and therefore a large weight, but still have a low density if that mass is spread across a very large volume.

This distinction matters when comparing materials or explaining buoyancy. A massive ship can weigh far more than a small steel bolt, but the ship can still float because the average density of the entire ship is lower than water. The bolt is much smaller, but its mass is concentrated into a compact shape, so its density stays high and it sinks.

Real-world examples of density

Why ice floats on water

Ice is less dense than liquid water, so it floats. That single fact shapes lakes, rivers, climate patterns, and ecosystems. If ice were denser than water, lakes would freeze from the bottom up, which would completely change cold-weather environments.

Why hot-air balloons rise

Heating air reduces its density. The balloon still contains air, but that air is lighter for the same volume than the cooler surrounding air, so the overall system rises.

Why ships made of steel can float

Steel itself is denser than water, but a ship is not a solid block of steel. The hull encloses a large volume of air, so the average density of the full ship is lower than the density of the water it displaces.

Why oil floats on water

Most oils are less dense than water, so they rise to the top when the two liquids are mixed. This is a simple but powerful example of how density determines layering in fluids.

How to measure density in a lab

For a regular solid, measure mass on a balance, then measure dimensions and calculate volume from geometry. For a rectangular block, multiply length × width × height. For a cylinder, use π × r² × h. Once you have mass and volume, divide mass by volume and report the result with the correct unit.

For irregular solids, use water displacement. Fill a graduated cylinder with water and record the starting volume. Submerge the object fully, record the new volume, and use the increase as the object's volume. This method comes directly from Archimedes' principle and is widely used in education and practical lab settings.

In professional settings, density can also be measured indirectly with hydrometers, pycnometers, densitometers, or process-control sensors. The principle stays the same: determine mass, determine volume, and compare the two accurately.

Loading calculator...

See where the result sits

Enter two values to animate the result.

Density results unlock a nearest-material match, a float-versus-sink preview in water, and a spectrum marker that runs from hydrogen to osmium.

FAQ

Quick follow-up answers

What is density in simple words?

Density tells you how much mass is packed into a certain amount of space. A bowling ball and a foam ball can be the same size, but the bowling ball contains much more mass in the same volume, so it is denser. The idea is simple, but it explains why materials feel heavy or light for their size and why some substances float while others sink.

Is density the same as weight?

No. Weight is the force gravity applies to an object, while density is a ratio of mass to volume. A large object can weigh more overall but still have a lower density than a smaller object if it spreads that mass across much more space. That distinction matters in physics, material selection, and everyday comparisons.

Why does ice float on water?

Ice floats because its density is lower than liquid water. As water freezes, its crystal structure opens up and occupies more volume. The same mass spread across more space means a lower density, so the frozen water rises above the denser liquid water.

Does density change with temperature?

Yes. Most substances become less dense as temperature rises because they expand. Gases are especially sensitive, liquids change more moderately, and solids often change only slightly. Water is a special case because it reaches maximum density near 4°C before becoming less dense again as it freezes.

How do you measure density in a lab?

First measure mass with a balance. Then measure volume with geometry for regular shapes or water displacement for irregular ones. Finally, divide mass by volume and attach the proper unit. That process is simple enough for classrooms but important enough for chemistry labs, geology work, and industrial quality control.