What Density Measures
Density answers a narrow question: how much mass is packed into a given volume? Divide one by the other and the answer carries units, such as kilograms per cubic meter or grams per cubic centimeter. A steel bolt and a foam block can be the same size and behave completely differently in water because their densities differ, not because their weights do.
Mass and volume are both extensive properties, meaning they grow when you take a larger sample. Density is intensive: it describes the material rather than the piece you happen to be holding. Cut a copper bar in half and each half has half the mass and half the volume, so the ratio stays near 8,960 kg/m³. That stability is what makes density useful for identifying a substance.
For a sense of scale, dry air near sea level is about 1.2 kg/m³, fresh water about 1,000, granite about 2,700, iron about 7,870, and gold about 19,300. Ordinary materials therefore span roughly four orders of magnitude, which is why even a small discrepancy in a reported density can be meaningful.
The calculator above solves the equation in either direction. Choose the tab for the quantity you are missing, enter the other two, and pick a unit for each field independently. Conversions happen before the arithmetic, so entering a mass in pounds with a volume in cubic feet works exactly as well as an all-metric calculation.
The Density Equation and Its Rearrangements
ρ = m / V
In this expression ρ (rho) is density, m is mass, and V is volume. The two other forms follow directly by algebra and are the ones you use when density is already known:
- m = ρ × V when you need the mass of a known volume
- V = m ÷ ρ when you need the volume a given mass will occupy
A worked example makes the unit handling concrete. An aluminum block measuring 5.0 cm by 4.0 cm by 2.0 cm has a volume of 40 cm³. On a balance it reads 108 g. Dividing 108 g by 40 cm³ gives 2.7 g/cm³, which is the familiar density of aluminum stated in smaller units. Multiply by 1,000 and the same material reports 2,700 kg/m³.
Now reverse it. A 250 mL sample of clear liquid weighs 197 g. Since 250 mL equals 250 cm³, the density is 197 ÷ 250 = 0.788 g/cm³, or 788 kg/m³. That is close to ethanol at 789 kg/m³, and far enough from water at 998 kg/m³ to rule water out.
Keep the arithmetic honest with significant figures. A volume read from a graduated cylinder to the nearest 1 mL limits the answer to about three digits, so reporting 0.78821 g/cm³ implies precision the glassware cannot deliver. Round the result to match the least precise measurement you used.
Density Units and Conversion Factors
The SI unit is the kilogram per cubic meter, but laboratory work, engineering drawings, and American trade practice all use other units. The table lists the factor that converts each unit into kg/m³, so multiplying a reading by the factor gives the SI value.
| Unit |
Equivalent in kg/m³ |
| kilogram per cubic meter (kg/m³) | 1 |
| kilogram per cubic centimeter (kg/cm³) | 1,000,000 |
| gram per cubic meter (g/m³) | 0.001 |
| gram per cubic centimeter (g/cm³) | 1,000 |
| kilogram per liter (kg/L) | 1,000 |
| gram per liter (g/L) | 1 |
| gram per milliliter (g/mL) | 1,000 |
| metric ton per cubic meter (t/m³) | 1,000 |
| pound per cubic inch (lb/in³) | 27,680 |
| pound per cubic foot (lb/ft³) | 16.018 |
| pound per cubic yard (lb/yd³) | 0.5933 |
| pound per US gallon (lb/gal) | 119.83 |
| pound per imperial gallon (lb/gal) | 99.78 |
| ounce per cubic inch (oz/in³) | 1,730 |
Three equalities cover most day-to-day conversions. One gram per cubic centimeter is exactly 1,000 kg/m³ and also exactly 1 kg/L, because a milliliter and a cubic centimeter are the same volume. One pound per cubic foot is 16.018 kg/m³, a factor worth remembering because US insulation, concrete, and soil data are often published that way.
Watch the prefixes. A kilogram per cubic meter and a gram per cubic centimeter differ by a factor of a thousand, not by a factor of ten, and the mistake is easy to make when a value is copied from a table without its heading. Writing the units next to every number during a calculation catches most of these slips before they reach a final answer.
Specific volume is the reciprocal of density and appears in some engineering texts. A density of 800 kg/m³ corresponds to a specific volume of 0.00125 m³/kg. The two describe the same material; only the convention differs.
Reference Densities for Common Materials
Typical values are gathered below for quick comparison. Unless noted, solids and liquids are at about 20 °C and gases at 15 °C and one atmosphere. Metals vary with alloy and temper, woods vary with moisture and species, and plastics vary with grade, so treat these as reference points rather than specifications.
| Material |
Density (kg/m³) |
| Air, sea level, 15 °C | 1.225 |
| Silica aerogel (typical) | 3 to 100 |
| Cork | 240 |
| Oak, kiln dried | 750 |
| Ethanol | 789 |
| Gasoline | 720 to 775 |
| Ice at 0 °C | 917 |
| Water at 20 °C | 998 |
| Water at 4 °C | 1,000 |
| Seawater | 1,025 |
| Concrete | 2,400 |
| Aluminum | 2,700 |
| Granite | 2,700 |
| Steel | 7,850 |
| Iron | 7,874 |
| Copper | 8,960 |
| Lead | 11,340 |
| Mercury | 13,534 |
| Tungsten | 19,250 |
| Gold | 19,300 |
| Platinum | 21,450 |
| Earth, mean | 5,513 |
Two pairs in that table cause most of the confusion. Aluminum and granite share a density near 2,700 kg/m³ despite having nothing else in common, so a density match is not an identification on its own. Steel and iron sit close together as well, which is why alloy composition usually has to be confirmed by another method.
Porosity explains the spread in light solids. Cork and aerogel are mostly trapped air, so their bulk density depends on how much solid material surrounds the voids. The same distinction applies to soil, where bulk density includes pore space and particle density does not. When a specification says only "density," check which of the two it means.
Gases are the most sensitive to conditions. Air at 0 °C and one atmosphere is 1.293 kg/m³, at 20 °C it is 1.204, and at 30 °C it drops to 1.164. A table entry without a stated temperature is therefore only approximate.
Measuring Mass and Volume, Then Dividing
Every density measurement reduces to two operations: find the mass, find the volume, divide. The difficulty lies entirely in doing each of those accurately and consistently.
Weigh the Sample
A digital balance is the usual tool. Place an empty container on the pan, press tare so the display returns to zero, then add the sample. Taring subtracts the container mass automatically and is more reliable than weighing the container separately, because it removes any chance of subtracting the wrong number. Record the reading with the precision the balance actually provides, not with every digit it displays.
Find the Volume
For a regularly shaped object, measure the dimensions and apply a geometric formula. A rectangular block is length times width times height; a cylinder is π times radius squared times height. Take each dimension more than once and average, because a caliper reading taken at a slight angle can be short by a fraction of a millimeter, which becomes a noticeable error in a small volume.
For an irregular solid, use displacement. Fill a graduated cylinder with enough water to cover the object, read the level with your eye level with the meniscus, then slide the object in without splashing and read again. The difference between the two readings is the volume of the solid, provided the object sinks and does not absorb water.
For a liquid, either read its volume directly in a graduated vessel or weigh it in a container of known volume. A volumetric flask is calibrated to hold an exact volume at a stated temperature, while a graduated cylinder is calibrated to deliver an approximate one, so the flask gives the better result when precision matters.
Divide and Check
Suppose the cylinder reads 50.0 mL before the sample is added and 62.5 mL afterward, so the volume is 12.5 cm³. If the sample weighs 33.4 g, the density is 33.4 ÷ 12.5 = 2.67 g/cm³. Comparing that with the table points to aluminum, and a second measurement on a different piece of the same stock would confirm it.
Finally, sanity-check the magnitude. A metal that reports 0.9 g/cm³ is not a metal, and a clear liquid that reports 2.0 g/cm³ is not water. If the number is off by a factor of 1,000, a prefix or a unit label is almost always the reason.
Why Density Changes: Temperature, Pressure, and Composition
Density is a property of a material at a particular state, not an eternal constant. Four influences account for nearly all of the variation you will encounter.
Temperature
Heating a substance usually makes it expand, so the same mass occupies more space and the density falls. The size of the effect depends on the material. Aluminum expands about 0.007% in volume per degree Celsius, so a 20 °C rise changes its density by roughly 0.14%, which is small but measurable. Gases change far more: air loses about 0.34% of its density for each degree Celsius near room temperature.
Water is the famous exception near its freezing point. It reaches its maximum density at about 4 °C and becomes less dense as it cools further, which is why ice floats and why a pond freezes from the surface downward rather than from the bottom up. Between 4 °C and 100 °C the ordinary rule returns and density decreases as temperature rises.
Pressure
Compressing a material reduces its volume and raises its density. Gases respond strongly because the space between molecules is large; doubling the absolute pressure roughly halves the volume and doubles the density. Liquids and solids resist compression, so the effect is negligible in everyday conditions but must be considered at the pressures found in deep water or hydraulic systems.
Composition and Alloying
Adding a heavier element to a metal generally raises its density, and adding a lighter one lowers it. Brass sits between copper and zinc in proportion to the mix, and the density of an alloy is close to a weighted average of its components when no phase change occurs. In solutions, dissolved solids usually increase density: seawater is about 2.5% denser than fresh water at the same temperature because of dissolved salts.
Porosity and Moisture
A porous solid has a bulk density that counts the voids as part of its volume, and a skeletal density that does not. Wood also changes with moisture content, since absorbed water adds mass without adding much volume. Building specifications normally state the moisture condition along with the density for exactly this reason.
Where Density Shows Up in Practice
Density is one of the few physical properties that is cheap to measure and directly useful, which is why it appears in so many industries.
Shipping and Displacement
A vessel floats by displacing a weight of water equal to its own weight. Load too much cargo and the hull sinks deeper until the reserve of buoyancy is gone, which is the logic behind the load line marked on a ship's side. Naval architects calculate displacement from the underwater volume of the hull and the density of the water it operates in, and because seawater is denser than fresh water, a ship rides slightly higher in the ocean than in a river.
Food and Beverage
Density and its relative form are routine quality measurements in food production. Milk near 1,030 kg/m³ is denser than water because of dissolved solids, and added water lowers that figure, which made density a traditional check for adulteration. Brewers and winemakers follow the density of fermenting liquid as sugar converts to alcohol, since the mixture becomes less dense as the reaction proceeds. Sugar content in juice is now normally read on a refractometer in degrees Brix, where one degree corresponds to 1 g of sucrose per 100 g of solution.
Body Composition
Fat tissue is less dense than lean tissue, so the density of a whole body carries information about its composition. Hydrostatic weighing compares weight in air with weight submerged, and air displacement plethysmography measures body volume in a sealed chamber. The two-compartment model converts body density to a fat percentage with an equation of the form 495 ÷ ρ − 450, where ρ is expressed in g/cm³; a density of 1.05 g/cm³ corresponds to roughly 21% body fat. The assumptions behind that model are the reason the estimate is a range rather than an exact figure.
Quality Control and Materials Identification
A production part with internal voids, the wrong alloy, or the wrong filler content will usually show a density outside its specification, so a density check is a fast screening test. Jewelers use the same principle: fine gold is 19.3 g/cm³, and an 18-karat yellow alloy falls around 15.5 to 15.9 g/cm³. A reading well below the expected value suggests plating over a lighter core or a hollow item.
Getting a Reliable Measurement
The formula is trivial; the measurement is where accuracy is won or lost. These practices cover most of the gap between a rough number and a defensible one.
Calibrate and Match Your Glassware
Check the balance against a certified mass, and use volumetric glassware at the temperature at which it was calibrated. A flask marked "TC 20 °C" holds its stated volume at 20 °C and slightly more when warm. For routine work, a class A flask and a balance readable to 0.001 g are enough to reach four significant figures on a liquid sample of a few tens of milliliters.
Record the Temperature
Attach a temperature to every density value you report. Reference tables assume a specific temperature, usually 20 °C for liquids and 0 °C or 15 °C for gases, and comparing a measurement at 30 °C with a table value at 20 °C introduces an error that has nothing to do with your technique. For water between 20 °C and 25 °C the change is only about 0.1%, but for a volatile solvent or any gas it can be several percent.
Correct for Air Buoyancy
Air pushes up on everything placed on a balance, so the reading is slightly lower than the true mass. The effect is about 0.1% for a sample as dense as water and larger for low-density materials. For routine work it can be ignored; for reference-grade measurements it is corrected using the density of the air at the time of weighing and the density of the calibration weights.
Remove Trapped Air
Bubbles cling to irregular solids and to the walls of a container, and each one adds volume without adding mass, which lowers the calculated density. Tap the vessel, stir gently with a thin rod, or add a drop of wetting agent when the sample is a powder. For porous solids, evacuating the container or boiling the sample briefly under water displaces air from open pores.
Repeat and Report Uncertainty
Three independent measurements, each starting from a fresh weighing, give you a mean and a spread. If the spread is larger than the resolution of your instruments suggests, something in the procedure is unstable and should be found rather than averaged away. Report the result with an uncertainty that reflects the weakest step, following the approach described in the JCGM guide to expressing uncertainty.
Errors That Skew Density Results
Most wrong density values come from a short list of mistakes. Each one produces a recognizably wrong answer, which makes them easy to catch once you know the pattern.
Mixing Mass and Volume Units
Mass in grams with volume in cubic meters understates the answer by a factor of one million, and mass in kilograms with volume in cubic centimeters overstates it by the same factor. Convert both quantities to a consistent system before dividing, or let the calculator do it and then check the magnitude of the result against the material table.
Forgetting to Tare the Container
Weighing a liquid in a beaker without subtracting the beaker's mass adds that mass to the sample, inflating the density. Taring the empty container on the balance avoids the arithmetic entirely. Failing to re-tare after switching containers is the same error in a different disguise.
Using Bulk Volume for a Porous Solid
A measurement that includes the air between grains gives bulk density, while a measurement that excludes it gives particle or skeletal density. Sand, soil, powders, and foams differ substantially between the two, and quoting the wrong one can be off by tens of percent. State which definition you used.
Reading the Meniscus Carelessly
Water wets glass and forms a concave surface, so the correct reading is at the bottom of the curve with your eye level with it. Reading the top of the meniscus on a 50 mL cylinder can shift the volume by a milliliter or more. Mercury behaves oppositely and is read at the top of its convex surface.
Comparing Values at Different Temperatures
Taking the density of water as 1,000 kg/m³ and comparing it with a room-temperature measurement at 998 kg/m³ makes a correct result look wrong. Both numbers are right; only their reference temperatures differ. Quote the temperature alongside the value.
Treating Specific Gravity as Density
Specific gravity is a ratio and has no units, so a reading of 1.03 from a hydrometer does not mean 1.03 kg/m³ or 1.03 g/cm³. Multiplying by the density of the reference liquid at the stated temperature gives the density. Battery electrolyte at a specific gravity of 1.265, for example, corresponds to about 1,265 kg/m³.
Density Versus Specific Gravity
The two quantities are related closely enough that the terms are often used interchangeably in trade, but they are not the same measurement and they behave differently in calculations.
Definition and Units
Density is an absolute value: mass per unit volume, expressed in kg/m³, g/cm³, or lb/ft³. Specific gravity is a dimensionless ratio, the density of a material divided by the density of a reference material at a stated temperature. For liquids and solids the reference is almost always water, and by convention the water value is taken at 4 °C, where it is essentially 1,000 kg/m³. For gases the reference is usually air or hydrogen.
SG = ρ sample ÷ ρ reference
Because the ratio divides one set of units by another, the units cancel. That is why a specific gravity reading of 2.5 can be reported without any unit at all: it means the material is 2.5 times as dense as water, or 2,500 kg/m³.
Where Each Is Used
Density appears wherever a real volume and a real mass meet: structural design, shipping, metering, and material specifications. Specific gravity appears wherever a quick comparison is more useful than an absolute number. Hydrometers, which float at a depth determined by buoyancy, are calibrated directly in specific gravity, so the reading requires no arithmetic. That convenience is why battery electrolyte, antifreeze, urine, brewing wort, and drilling mud are all commonly reported that way.
Related Scales
Several industries use scales derived from specific gravity. The petroleum industry uses API gravity, calculated as 141.5 divided by specific gravity minus 131.5, so that lighter crude oils carry higher API numbers. Brewing and winemaking use Plato and Brix scales tied to sugar concentration, and older saccharometers read specific gravity directly. Baume scales serve a similar purpose in other trades. All of them can be converted back to density once the reference temperature is known.
Practical Conversion
To move from specific gravity to density, multiply by the reference density at the measurement temperature. A sample with a specific gravity of 19.3 relative to water at 4 °C has a density of 19,300 kg/m³, which is the value for fine gold. To go the other way, divide density by the reference density. Keep the reference temperature consistent, because the density of water changes by about 0.3% between 4 °C and 25 °C, and that difference matters in metrology even though it does not matter in most workshops.
Summary
Density is mass divided by volume, expressed in units that pair a mass with a volume. The arithmetic is simple, but the result is only as good as the two measurements behind it, which is why the choice of glassware, the temperature of the sample, and the presence of trapped air matter more than the division itself.
This calculator accepts any two of density, mass, and volume in a wide range of units and returns the third. It is useful for checking a laboratory result, estimating the mass of a known volume of material, or working out how large a container needs to be for a given weight. Use the reference table above to judge whether a result is plausible, and check the temperature whenever the material is a gas or a volatile liquid.
Related tools on this site cover the rest of the workflow: the volume calculator for regular and irregular shapes, the mass calculator for unit conversions, the surface area calculator for objects whose dimensions you already know, and the body fat calculator if you are working with body composition rather than materials.
Buoyancy: Floating, Sinking, and Neutral Depth
Buoyancy is the reason a density comparison turns into a prediction about motion. A fluid pushes up on any submerged object with a force equal to the weight of the fluid the object displaces, a relationship stated by Archimedes and still the basis of every flotation calculation.
Archimedes' Principle in Practice
Submerge a 100 cm³ block and it displaces 100 cm³ of water, which weighs about 0.098 N. If the block itself weighs more than that, it sinks; if it weighs less, the water supports it and the block floats with part of its volume above the surface. For a floating object the fraction below the waterline equals the ratio of the object's density to the fluid's density.
That ratio gives concrete numbers. Ice at 917 kg/m³ floating in seawater at about 1,025 kg/m³ sits roughly 89% submerged, which is why only about a tenth of an iceberg is visible. The same ice in fresh water sits at 92% submerged, a difference that matters to anyone navigating or towing in cold water.
Why Steel Ships Float
Solid steel at 7,850 kg/m³ sinks immediately, but a hull is mostly empty space. The average density of the whole vessel, steel plus the air inside it, is well below that of water, so the ship floats. When water enters the hull, that average density rises and the reserve of buoyancy falls. The load line painted on the side exists to keep the average density within safe limits as cargo and fuel change.
Submarines and Balloons
A submarine adjusts its average density rather than its shape. Flooding ballast tanks adds water mass and sends it down; blowing the tanks with compressed air pushes the water out and brings it back up. A depth is held by trimming to neutral buoyancy, where the average density of the boat matches the surrounding water.
A hot air balloon uses the same idea with a much lower fluid density. Heating the air inside the envelope reduces its density relative to the cooler air outside, and once the average density of the balloon, basket, and passengers falls below that of the surrounding air, the balloon rises. The pilot controls altitude by adding or venting heat.
Everyday Consequences
The same principle explains why a hydrometer settles deeper in a thin liquid than in a dense one, why a life jacket keeps a head above water, and why a diver can adjust depth with a buoyancy compensator. It also explains why an object feels lighter in water: the apparent loss of weight equals the weight of the displaced fluid, not the weight of the object.
Laboratory Methods by Sample Type
Method choice follows from the sample. A machined metal cube, a volatile solvent, and a jar of powder each need a different approach, and each has a characteristic accuracy.
Solids
Regular solids are measured geometrically: calipers or a micrometer for the dimensions, a balance for the mass. This is the most accurate route for a simple shape because both quantities can be read directly. Irregular solids usually go by water displacement in a graduated cylinder, which is quick but limited by the cylinder's scale. A pycnometer, a small flask of precisely known volume, gives better results because it replaces the cylinder reading with a weighing.
Liquids
A hydrometer is the fastest option: float it in the sample and read the scale at the surface. Accuracy is modest, typically a few units in the third decimal place of specific gravity. A pycnometer improves on that by weighing a known volume. The best routine precision comes from an oscillating U-tube densitometer, which measures the resonant frequency of a small glass tube filled with the sample; the frequency depends on the mass inside the tube, so it tracks density directly. These instruments are standard in pharmaceutical, petrochemical, and beverage laboratories.
Gases
Because gases are compressible, a density value is meaningless without temperature and pressure. For many purposes the ideal gas law is enough: ρ = pM ÷ (RT), with pressure in pascals, molar mass in kg/mol, the gas constant at 8.314 J/(mol·K), and temperature in kelvin. For measurement rather than calculation, a gas pycnometer or a density balance is used, and both must be thermostatted.
Powders and Porous Solids
A gas pycnometer fills the open pores with helium and measures the displaced volume, giving the skeletal density rather than the bulk density. Envelope density, which includes the pores, is measured by coating the sample or by mercury intrusion. Reporting which volume was measured is essential; the numbers differ by the porosity of the material.
| Method |
Best for |
Typical uncertainty |
| Dimensions plus balance | Regular solids | 0.1 to 1% |
| Water displacement | Irregular solids | 0.5 to 2% |
| Pycnometer | Liquids, powders | 0.01 to 0.1% |
| Hydrometer | Quick liquid checks | 0.1 to 0.5% |
| Oscillating U-tube | Liquids and gases | better than 0.01% |
| Gas pycnometer | Porous solids | 0.1 to 0.5% |
Density Across Solids, Liquids, and Gases
The state of matter sets the distance between molecules, and that distance sets the density. Solids pack molecules closely, liquids pack them loosely but still in contact, and gases leave most of the volume empty.
Solids
Crystalline metals are dense because their atoms stack in repeating lattices with little wasted space. Iron at 7,874 kg/m³ and tungsten at 19,250 kg/m³ are typical. The exceptions are solids built around empty space: cork, foam, pumice, and aerogel. Silica aerogel, sometimes called frozen smoke, is a solid network that is mostly air, with densities from about 3 to 100 kg/m³ for ordinary grades; laboratory graphene aerogels have been made below 1 kg/m³. These are solids by structure and nearly gases by density.
Liquids
Liquids are typically 5 to 15% less dense than their solid form, because the molecules have more freedom to move and take up slightly more room. Water inverts that pattern: ice at 917 kg/m³ is less dense than water at 1,000 kg/m³ because the hydrogen-bonded crystal holds an open structure. Mercury, the densest common liquid at 13,534 kg/m³, is a metal that happens to melt at −39 °C, which is why a small vial of it feels unexpectedly heavy.
Gases
Gases are hundreds to thousands of times less dense than liquids under ordinary conditions. Air at sea level and 15 °C is 1.225 kg/m³, roughly 800 times less dense than water. Because gas density is proportional to pressure and inversely proportional to absolute temperature, it changes continuously with weather and altitude; air at the top of a mountain is about 30% less dense than at sea level for the same temperature.
Changes of State
Melting typically reduces density by a few percent, and boiling reduces it by orders of magnitude. At 100 °C and one atmosphere, saturated steam is 0.598 kg/m³ while liquid water is 958 kg/m³, a ratio of about 1,600. That expansion is what makes steam engines work: a small mass of water becomes a large volume of gas capable of pushing a piston. The same principle explains why a sealed container of liquid heated past its boiling point is dangerous.
These differences also drive separation processes. Distillation exploits boiling points, but centrifugation and flotation exploit density directly, spinning or floating one phase away from another. In a settling tank, the denser phase sinks and the lighter phase rises, and the speed of that separation depends on the density difference and the viscosity of the continuous phase.