A pure substance has the same density at a given temperature and pressure because its density is fixed by two things that do not vary: the mass of its atoms or molecules and the spacing between them in its current phase. Change either the identity of the particles or the spacing, and you no longer have the same pure substance under the same conditions.
Density is mass divided by volume. For a pure element or compound, every particle has an identical mass, and at a fixed temperature and pressure the equilibrium spacing between particles is identical too. So the ratio stays constant, and that constancy is what makes density a reliable identifying property.
Particles of identical mass and fixed spacing
Start with the definition at the particle level. Density equals the mass of one particle multiplied by how many particles fit in a unit volume. For a pure substance, the first number is a fixed property of the element or molecule. Carbon atoms are always about 12 atomic mass units each; water molecules are always about 18.
The second number, the number of particles per unit volume, depends on how closely they pack. In a solid, particles sit in a crystal lattice with fixed bond lengths. In a liquid, they touch but slide past one another, so the average spacing is set by the balance between cohesive forces and thermal motion. At a given temperature, that balance settles at one equilibrium spacing, not a random one.
Temperature and pressure shift the spacing, which is why density changes with conditions. Heat a metal and its lattice vibrations grow, so the average spacing rises and density falls. Squeeze a gas and you force the same number of particles into less volume, so density rises. Neither change breaks the rule: under stated fixed conditions, a pure substance returns to one characteristic spacing and one characteristic density.
A plain way to hold onto this: density is a fingerprint that depends only on what the particles are and how far apart they sit right now.
How much the fingerprint varies across materials
The numbers make the constancy and the variation both concrete. At room temperature and standard pressure, pure water has a density near 1.00 g/cm³. Aluminum sits around 2.70 g/cm³, iron near 7.87 g/cm³, and lead about 11.3 g/cm³. These are not close values; density separates elements by factors, not fractions.
The variation is partly driven by atomic mass and partly by packing. Osmium, among the densest elements, reaches roughly 22.6 g/cm³ because its atoms are heavy and pack efficiently. Lithium, a light metal, is only about 0.53 g/cm³ and floats on water. Two elements can share a crystal structure and still differ widely in density if their atoms differ in mass.
Temperature moves these figures by small amounts in solids and liquids. Iron expands by roughly 11 to 13 parts per million per degree Celsius near room temperature, so heating it by 100 °C lowers its density by under 1 percent. That is small but measurable, which is why reference tables specify the temperature at which a density was recorded.
Where the rule bends at the edges
The word "pure" carries a hidden condition: one substance, one phase, fixed temperature and pressure. Relax any of these and the simple statement needs qualification.
Water is the classic counterintuitive case. Its density is not lowest at its freezing point but peaks near 4 °C at about 1.000 g/cm³, because the hydrogen-bond network rearranges as it warms from 0 °C. Below 4 °C, water expands as it cools, and ice is less dense than liquid water at roughly 0.92 g/cm³. Ice floats because of this, and it is a genuine exception to the intuition that colder means denser.
Allotropes and crystal forms complicate identity further. Pure carbon exists as graphite at about 2.2 g/cm³ and as diamond at about 3.5 g/cm³; both are pure carbon, but the bonding arrangement fixes different spacings. The same element can therefore have more than one density, decided by structure rather than composition.
Gases bend the rule hardest because pressure matters so much. The density of a gas at fixed temperature is proportional to pressure, so doubling the pressure roughly doubles the density. That is still deterministic for a pure gas, but the density is only meaningful when the pressure is stated.
What density does not tell you
Several common inferences go wrong because density is a ratio, not a full description.
Mistaking density for a measure of purity. A mixture can coincidentally match the density of a pure substance, so a single density value never proves purity on its own. Assuming equal density means equal substance. Different substances can share a density at one temperature, so density narrows candidates rather than identifying them. Treating density as fixed across all conditions. The value in a table applies to a stated temperature and pressure, and it shifts outside those conditions. Expecting heavier atoms to always mean denser material. Packing efficiency can override atomic mass, so the heavier element is not automatically the denser one. Ignoring phase. The same pure substance has very different densities as a solid, liquid, and gas, so a density figure is meaningless without its phase. Using volume alone to compare samples. A larger sample of the same pure substance has more mass and more volume in the same proportion, so its density is unchanged.
Building on density in practice
Density's reliability under fixed conditions is exactly why it is used for identification and quality checks. Several concrete actions follow from the mechanism.
Measure density at a stated temperature, because the number only means something with that condition attached. For liquids, use a calibrated hydrometer or a measured mass and volume and record the temperature alongside the result.
Compare a measured density against a reference value at the same temperature and pressure. A close match supports identity; a clear mismatch flags either a different substance or a mixture.
Use density to estimate mass or volume when one is unknown. If you know the density and the volume of a pure material, mass follows directly, which is useful for inventory and shipping.
Watch for the water anomaly near 4 °C and around freezing. When working with water near 0 °C, expect density changes with temperature to run in the opposite direction from most liquids.
Treat a single density value as one clue among several. Pair it with melting point, boiling point, or spectroscopy before concluding what a substance is.
Why the constancy has limits
The rule holds best for pure substances under fixed conditions, and it weakens in predictable ways. Mixtures such as alloys, seawater, and air have densities that depend on composition, so they are not covered. Near phase boundaries, small temperature changes can cause large density changes, especially in gases and at the water anomaly. Very high pressures compress solids and liquids measurably, so reference densities recorded at ordinary pressure no longer apply.
There is also a reporting caveat professionals handle carefully. A density value is only as good as its stated temperature, pressure, and phase, and tables that omit those details invite errors. The underlying science is stable; the discipline is in recording conditions.
For any high-stakes use of density, such as material certification, safety-critical storage, or medical and engineering decisions, treat this article as general educational information rather than a professional determination. It is not a diagnosis, treatment plan, legal opinion, or investment recommendation, and it promises no specific outcome. Consult a qualified local professional, and for immediate danger contact local emergency services.