Density is mass divided by volume, and its standard SI unit is the kilogram per cubic meter (kg/m³). In everyday lab work you are more likely to see grams per cubic centimeter (g/cm³) or grams per milliliter (g/mL), which happen to be numerically identical for most practical purposes. How density gets measured, though, depends enormously on what you are measuring: a block of steel, a sample of crude oil, a handful of porous charcoal, a single living cell, or an entire star each call for fundamentally different techniques, some of which reach astonishing levels of precision.
The Common Units and Why There Are So Many
Because density is a derived quantity (mass ÷ volume), any valid mass unit paired with any valid volume unit produces a legitimate density unit. The SI combination is kg/m³, and that is what you will find in engineering references and physics textbooks. Water at room temperature, for instance, sits close to 1,000 kg/m³. In chemistry and materials science, g/cm³ is far more popular because the numbers are smaller and more intuitive: water comes out to about 1.00 g/cm³, iron to roughly 7.87 g/cm³, and gold to around 19.3 g/cm³.
For liquids, g/mL is essentially interchangeable with g/cm³, since one milliliter equals one cubic centimeter. In petroleum and brewing industries, you will also encounter specific gravity, which is not a unit at all but a dimensionless ratio comparing a substance’s density to that of water at a reference temperature. A specific gravity of 0.82 simply means the liquid is 82% as dense as water. The American Petroleum Institute uses its own scale, degrees API, which inverts the relationship so that lighter oils get higher numbers. These are all different ways of expressing the same underlying property.
Gases add another wrinkle. Because gas density changes dramatically with temperature and pressure, values are typically reported at standard conditions, often 0 °C and 1 atmosphere, or sometimes 15 °C or 25 °C depending on the industry. The units are usually kg/m³ or g/L (which are numerically the same). Air at sea level and 20 °C, for example, has a density near 1.2 kg/m³, making it roughly 800 times less dense than water.
The Simplest Approach: Weigh It and Measure Its Volume
The most intuitive way to find density is to weigh an object, measure its volume, and divide. For a regularly shaped object like a machined cylinder or a rectangular block, you can measure the dimensions with calipers and calculate the volume geometrically. For irregularly shaped objects, the classic method is fluid displacement: submerge the object in water and see how much the water level rises. This goes back to the Archimedes legend, and while the story about the bathtub is probably embellished, the principle is real and still used.
The laboratory refinement of this idea is hydrostatic weighing. You weigh the solid in air, then weigh it again while it is submerged in a liquid of known density (usually water or a fluorocarbon). The difference in apparent weight tells you the buoyant force, which tells you the displaced volume. Dividing the air weight by that volume gives you the density. National metrology labs use hydrostatic weighing with single-crystal silicon spheres as density standards, achieving precision down to a few parts in a hundred million for relative density differences between samples.1Measurement Science and Technology. Precision density measurements of solid materials by hydrostatic weighing For everyday lab work the method is simpler and less precise, but it remains one of the most accessible ways to measure a solid’s density without specialized equipment.
Liquid Density With Pycnometers and Hydrometers
A pycnometer is a small glass flask with a precisely known volume. You fill it with the liquid in question, weigh it, subtract the weight of the empty flask, and divide by the volume. The technique is straightforward but demands careful temperature control, because liquid volume changes with temperature. A study of oil density measurement using a glass pycnometer demonstrated uncertainties as low as roughly 33 parts per million when temperature effects were modeled with a cubic fit.2Measurement. Application of statistics to oil density measurement That level of accuracy is more than sufficient for most industrial and research applications involving liquids.
Hydrometers offer an even simpler approach. A hydrometer is a sealed glass tube with a weighted bulb at the bottom. You drop it into the liquid and read the density off a calibrated scale at the point where the liquid surface crosses the stem. Denser liquids support more of the hydrometer’s weight, so it floats higher; less dense liquids let it sink deeper. Hydrometers are widely used in the brewing, dairy, and petroleum industries. They typically cover the liquid density range from about 500 to 2,000 kg/m³. For high-resolution hydrometers with scale divisions of 0.1 kg/m³, the relative measurement uncertainty can be brought down to about 12 parts per million through careful calibration using hydrostatic weighing methods.3IOP Publishing. Calibration of hydrometers
Digital density meters, which measure the resonant frequency of a vibrating U-tube filled with the sample, have largely replaced manual pycnometers and hydrometers in high-throughput settings. The tube vibrates faster when it contains a less dense liquid and slower when the liquid is denser, and the instrument converts the frequency to a density reading. These devices can measure to five or six decimal places and handle tiny sample volumes, which is why you find them in pharmaceutical labs and wine analysis.
Gas Pycnometry for Porous and Powdered Materials
Some materials do not lend themselves to simple weighing-and-displacement. Powders, foams, activated carbons, and porous catalysts have internal void spaces that water cannot easily penetrate, so submerging them gives you the wrong volume. Gas pycnometry solves this by using a gas, typically helium, to probe the material’s true solid volume. Helium atoms are small enough to enter nearly every open pore, so the measured volume excludes those pores and gives you what is called the skeletal density: the density of the solid framework itself, ignoring air-filled voids.
The instrument works by expanding helium from a chamber of known volume into a second chamber containing the sample, then measuring the resulting pressure change. From the pressure drop, you can calculate how much volume the solid actually occupies. Helium pycnometry is the standard choice for skeletal density measurements of porous materials, though careful interpretation of the raw data matters because moisture, outgassing, and incomplete pore access can all skew results.4PubMed Central. Understanding Material Characteristics through Signature Traits from Helium Pycnometry
One practical example: researchers measuring biochar, a charcoal-like material made by heating biomass, found skeletal densities ranging from about 1.34 to 1.96 g/cm³ depending on how hot the biomass was heated during production. Higher temperatures drove off more volatile matter and left a denser carbon skeleton.5Biomass and Bioenergy. New approaches to measuring biochar density and porosity Helium pycnometry has also been applied to highly porous crystalline frameworks used in gas storage and filtration, where distinguishing the density of the framework itself from the apparent density of the whole crystal (including its empty channels) is critical for engineering applications.6PubMed. Using Helium Pycnometry to Study the Apparent Densities of Metal-Organic Frameworks
Worth noting: for the same material, you can report multiple kinds of density. Skeletal density ignores all internal pores. Envelope density includes internal pores but excludes spaces between particles. Bulk density includes everything, pores and inter-particle gaps alike. A single powder sample might have a skeletal density of 2.5 g/cm³, an envelope density of 1.8 g/cm³, and a bulk density of 1.0 g/cm³. Which one you care about depends on your application.
How Temperature and Pressure Change Density
Density is not a fixed number for any substance. It shifts with temperature and pressure, and if you ignore those shifts you can introduce meaningful errors. Most materials expand when heated, which lowers their density. Gases are especially sensitive: heating air from 0 °C to 100 °C at constant pressure cuts its density by roughly a quarter.
Water is famously weird in this regard. Most liquids get steadily denser as they cool, but water reaches its maximum density around 4 °C and then gets less dense as it cools further toward freezing. This anomaly is why ice floats and why lakes freeze from the top down rather than the bottom up. Molecular simulations have shown that this density maximum arises from the way water molecules arrange their hydrogen bonds: near 4 °C, the structure retains tight coordination at short range but collapses at intermediate distances, packing molecules more efficiently than either warmer or colder water manages.7PubMed Central. Understanding the density maximum of water with machine-learned potentials The practical consequence is that any density measurement of water or an aqueous solution needs to specify the temperature, or the number is ambiguous.
Pressure effects are small for solids and liquids under everyday conditions but become significant at industrial or geological scales. Compressing a gas obviously increases its density, and the relationship between pressure, temperature, and density is captured by the gas compressibility factor, which accounts for how real gases deviate from ideal behavior. Measurements on natural gas and condensate gas samples at pressures up to 116 megapascals (over a thousand times atmospheric pressure) showed that the compressibility factor climbs with increasing pressure, though the temperature dependence flips direction depending on whether you are above or below roughly 45 to 50 MPa.8ScienceDirect (The Journal of Chemical Thermodynamics). Measurement and calculation of gas compressibility factor for condensate gas and natural gas under pressure up to 116 MPa For deep oil and gas reservoirs, getting these corrections right directly affects how much fuel a company estimates is underground.
Non-Contact Methods for Industrial and Field Use
Many real-world density measurements cannot involve placing a sample on a balance. Soil scientists studying density variation across a field, process engineers monitoring a slurry flowing through a pipe, and geologists analyzing core samples all need approaches that work in place, quickly, and often without touching the sample at all.
Gamma-ray attenuation is one such technique. A radioactive source emits gamma rays through the material, and a detector on the other side measures how many get through. Denser material absorbs more radiation, so the transmitted intensity drops in a predictable way. This principle has been used for decades in soil science to measure bulk density without digging up and drying samples. One study showed that gamma-ray attenuation measurements of soil density agreed well with the traditional gravimetric method (digging up a known volume of soil and weighing it after drying) and could successfully capture the spatial variability of density across a field.9Annals of Nuclear Energy. Gamma-ray attenuation method as an efficient tool to investigate soil bulk density spatial variability The same principle has been adapted to measure sediment density in runoff water, using a dual-probe transmission setup.10Soil Science Society of America Journal. Measurement of Sediment Density by Attenuation of Transmitted Gamma Rays
Ultrasonic sensors offer another non-contact route, especially for liquids flowing through pipes. The basic idea is that when a sound wave hits the boundary between a sensor wedge and the liquid, the fraction that reflects back depends on the liquid’s density and the speed of sound within it. By measuring the reflection coefficient at multiple angles, you can extract both the density and the sound speed simultaneously. One design uses six transducers mounted on a plastic wedge in contact with the liquid or slurry, and by analyzing reflections at two angles, determines density in real time without interrupting the flow.11Ultrasonics. On-line ultrasonic density sensor for process control of liquids and slurries Variations on this technique have been developed specifically for extreme environments, such as high temperatures or corrosive fluids, where inserting a hydrometer or drawing a sample is impractical.12PubMed Central. Ultrasonic Technique for Density Measurement of Liquids in Extreme Conditions
The World’s Most Precise Density Standards
At the top of the precision pyramid sit the national metrology institutes, which maintain primary density standards. The object of choice for this work is a one-kilogram sphere of ultra-pure single-crystal silicon, polished to near-perfect roundness. Its mass is compared against the mass standard (traceable to the definition of the kilogram), and its volume is measured by bouncing laser light off the surface using optical interferometry to determine the diameter with extraordinary accuracy. The density that results from dividing that mass by that volume is directly traceable to SI base units, with a relative combined standard uncertainty that has been driven down to about one part in ten million.13Metrologia. Present state of the solid and liquid density standards
Silicon is the material of choice because its crystal structure is extremely uniform and well-characterized, it can be grown in large single crystals of exceptional purity, and it can be machined and polished into near-perfect spheres. These silicon spheres serve as transfer standards: once their density is known to extraordinary precision, they can be used to calibrate other density-measuring instruments and reference liquids. Multiple national labs, including those in Japan and South Korea, have conducted international comparisons of their silicon sphere measurements to ensure consistency. One such comparison involved independently measuring the volume of the same one-kilogram sphere, confirming agreement between labs.14Measurement. International comparison of volume measurement for a 1 kg silicon sphere between KRISS and NMIJ Japan’s National Metrology Institute has continued refining its primary density standard by determining the absolute densities of new silicon spheres with improved measurement techniques.15Metrologia. Absolute measurement of the density of silicon spheres to improve the primary density standard of NMIJ
The precision frontier keeps advancing. Differential density measurements, which compare two samples rather than measuring each absolutely, have achieved combined standard uncertainties of a few parts in a hundred million using hydrostatic weighing and flotation techniques.16Metrologia. Special issue on density This kind of precision may sound academic, but it matters for semiconductor manufacturing, where tiny density variations in silicon wafers can signal impurity levels that affect chip performance.
Measuring Density Under Extreme Conditions
Some of the most interesting density questions arise where everyday instruments cannot go. Deep inside Earth’s mantle, in the cores of gas giant planets, or inside nuclear reactors, materials experience pressures and temperatures far beyond what a standard lab setup can handle. Researchers have developed specialized techniques to measure density in these regimes.
One approach uses X-ray absorption combined with synchrotron radiation, the intense X-ray beams generated by particle accelerators. A sample is squeezed in a high-pressure press while being heated, and the density is determined from how the sample absorbs the transmitted X-rays. This method has successfully measured the density of both solid and liquid bismuth at pressures up to one gigapascal and temperatures up to 750 K, using a ruby cylinder as a container to maintain the sample’s shape under compression.17PubMed. Density measurements of liquid under high pressure and high temperature These measurements help geophysicists build models of what is happening hundreds of kilometers below Earth’s surface, where the density of molten rock and metal controls convection patterns and, ultimately, plate tectonics.
Density at the Scale of Single Cells
At the opposite end of the size spectrum, biologists and biomedical engineers sometimes need to know the density of individual living cells. This is not just a curiosity: cell density can change during the cell cycle, in response to disease, or when cells encounter drugs. Detecting those changes could help diagnose conditions or sort cells for research.
The challenge is that single cells are tiny and their density is very close to that of the surrounding fluid, so conventional techniques fall short. A device called a suspended microchannel resonator (SMR) solves this by weighing each cell as it flows through a vibrating microfluidic channel. The cell’s mass shifts the resonant frequency of the channel by a minuscule but measurable amount. By weighing the same cell in two fluids of different densities, researchers can calculate the cell’s individual mass, volume, and density. This technique processes roughly 500 cells per hour with a density precision of about 0.001 g/mL.18PubMed Central. Measuring single-cell density
A more advanced version, the dual suspended microchannel resonator, uses two resonators connected by a serpentine fluidic channel. The cell is weighed in one fluid at the first resonator, carried through the channel into a second fluid of different density, and weighed again at the second resonator. This gives mass, volume, and density from a single pass through the device, improving throughput and precision.19PubMed Central. Measuring single cell mass, volume, and density with dual suspended microchannel resonators The technology is still mostly a research tool, but it has opened up new questions about how density varies among cells within the same population and whether density shifts could serve as an early marker of cellular changes.
Density in Astronomy
Density measurement is not limited to objects you can hold. Astronomers routinely estimate the density of stars and planets, though obviously they cannot put a star on a balance. For stars with transiting exoplanets (planets that cross in front of them as seen from Earth), the shape and timing of the brightness dip during a transit encode information about the star’s density. By modeling the transit light curve carefully, researchers can extract stellar density with fractional uncertainties below five percent for a large fraction of target stars, reaching precision comparable to asteroseismology, a technique that infers stellar properties from the star’s own oscillation frequencies. One analysis of Kepler mission data found that transit-derived densities were more precise than existing literature values for half of the target stars, with a typical improvement factor of about 2.3.20The Astronomical Journal. Know the Planet, Know the Star: Precise Stellar Densities from Kepler Transit Light Curves
Knowing a star’s density matters because it feeds directly into estimates of the orbiting planet’s size and composition. If your stellar density is off, your planet radius is off, and you cannot reliably say whether a planet is rocky, icy, or gaseous. At an even grander scale, cosmologists talk about the mean density of the universe itself, a number on the order of a few hydrogen atoms per cubic meter, which determines whether the universe will expand forever. The units are the same (kg/m³), but the measurement techniques bear no resemblance to a pycnometer on a lab bench. The gap between a polished silicon sphere and the average density of the cosmos is a reminder that density, for all its conceptual simplicity, spans one of the widest ranges of any physical quantity we bother to measure.