Density Calculator kg/m³: Formula & How to Use
- Specific gravity
- Result
- Mass
- 1000 kg
- You entered
- Volume
- 2 m³
- You entered
A density calculator in kg/m³ works out how much mass is packed into a given volume, and you get the result in kilograms per cubic meter. You enter the mass in kilograms and the volume in cubic meters (or other units the calculator converts), and it returns the density. This page explains the formula, a worked example, and how to avoid the common unit mistakes that ruin most density calculations.
Formula
The density formula is one of the simplest in physics:
� = m / V
Where:
- � (rho) is the density in kilograms per cubic meter (kg/m³)
- m is the mass in kilograms (kg)
- V is the volume in cubic meters (m³)
This is the standard SI definition. In everyday life you often see density in grams per cubic centimeter (g/cm³) or kilograms per liter (kg/L). Because 1 m³ = 1,000,000 cm³ and 1 kg = 1,000 g, a density of 1 g/cm³ equals 1,000 kg/m³. Water at 4°C has a density of about 1,000 kg/m³, which is why the number 1,000 appears so often in density work.
Worked Example
Using the default values from the calculator above: mass = 1,000 kg, volume = 2 m³.
- Write down the formula: � = m / V
- Plug in the numbers: � = 1,000 kg / 2 m³
- Divide: � = 500 kg/m³
The calculator shows 500.00 kg/m³ for the density, and a specific gravity of 0.500 (since 500 / 1000 = 0.5). That means the material is half as dense as water, so it would float.
When to Use a Density Calculator
You reach for a density calculator whenever you have a known mass and volume and need to identify a material, check purity, or design something that must float or sink. Common real uses:
- Identifying an unknown metal or plastic by comparing its calculated density to published tables.
- Checking if a liquid is the expected concentration (for example, battery acid or antifreeze) by measuring a known volume and weighing it.
- Converting between mass and volume for shipping or storage when you know the material’s density.
- Engineering calculations for buoyancy, pressure, or flow where density is an input.
In each case, the calculator gives you the density in kg/m³, which you then compare to reference values. Most engineering handbooks list densities in kg/m³, so using this unit avoids conversion errors.
How to Measure Mass and Volume Correctly
The accuracy of your density result depends entirely on how well you measure the two inputs.
Mass: Use a calibrated scale. For solids, weigh the object directly. For liquids, weigh an empty container, then weigh the container with the liquid, and subtract. This is called the tare method. Make sure the scale is on a level surface and zeroed before each measurement.
Volume: This is where most errors happen.
- For a regularly shaped solid (cube, sphere, cylinder), measure dimensions with calipers and use the geometric formula.
- For irregular solids, use water displacement: record the water level in a graduated cylinder, submerge the object, and read the new level. The difference is the volume.
- For liquids, use a volumetric flask or graduated cylinder. Read the bottom of the meniscus at eye level.
Temperature matters for liquids and gases. Most materials expand when heated, so the same mass takes up more volume and the density drops. If you need a precise value, note the temperature and compare to density tables at that temperature.
Common Mistakes and How to Avoid Them
The number one mistake in density calculations is mixing up units. A mass in grams with a volume in cubic meters, or a volume in liters with a mass in kilograms, will give you a result that is off by a factor of 1,000 or more. Always convert everything to the same unit system before dividing.
Other frequent errors:
- Forgetting to subtract the container mass when weighing a liquid.
- Reading the meniscus at the top instead of the bottom for a liquid.
- Using the diameter instead of the radius in a cylinder or sphere volume formula.
- Confusing density with specific gravity. Specific gravity is a dimensionless number (density divided by the density of water), so it has no units. The calculator above gives both, so you can see the difference.
- Rounding too early. If you round the volume to one significant figure and the mass to another, your density could be off by 10% or more. Keep extra digits until the final step.
Another misconception: density is not the same as weight. An object with a small mass but a tiny volume can have a very high density. Conversely, a large, light object like a foam block has low density. The calculator only cares about the ratio, not the size.
Limits of the Formula
The simple � = m/V formula assumes the material is uniform, meaning the same throughout. Most homogeneous solids and well-mixed liquids qualify, but there are exceptions:
- Foams, sponges, and other porous materials have a bulk density (including air pockets) that differs from the solid material’s true density.
- Soils, gravel, and powders have a bulk density that depends on how tightly they are packed. The same mass of flour can occupy different volumes depending on whether it is sifted or settled.
- Gases are highly compressible. Their density changes dramatically with pressure and temperature, so the formula only works for a specific set of conditions.
- Some materials, like wood, vary naturally. The density of a piece of oak depends on its moisture content and where it grew.
For these cases, you are really calculating an average density for that particular sample, not a universal material property. That is fine for most practical purposes, but do not expect the result to match a published table exactly if your sample is not uniform.
Converting to Other Density Units
Even though the calculator outputs kg/m³, you may need a different unit for a specific application. Here are the most common conversions:
- To get g/cm³, divide the kg/m³ value by 1,000. Example: 2,700 kg/m³ ÷ 1,000 = 2.7 g/cm³ (aluminum).
- To get kg/L, divide by 1,000 as well, because 1 L = 0.001 m³. So 2,700 kg/m³ = 2.7 kg/L.
- To get lb/ft³, multiply the kg/m³ value by 0.062428. Example: 1,000 kg/m³ × 0.062428 = 62.428 lb/ft³ (water).
- To get lb/gal (US), multiply kg/m³ by 0.008345. Water is about 8.345 lb/gal.
If you are working in imperial units, it is often easier to convert your mass and volume to metric first, calculate the density in kg/m³, then convert the final result. That way you only deal with one conversion factor instead of several.
Frequently Asked Questions
What is the density of water in kg/m³?
Pure water at 4°C has a density of approximately 1,000 kg/m³. At room temperature (about 20°C), it is slightly less, around 998 kg/m³. The difference is small but matters for precise scientific work.
How do I calculate density from specific gravity?
Multiply the specific gravity by 1,000 kg/m³. For example, a specific gravity of 1.5 means the material has a density of 1.5 × 1,000 = 1,500 kg/m³. Specific gravity is just a ratio, so it has no units.
Can I use this calculator for gases?
Yes, but you must know the mass and volume of the gas at a specific temperature and pressure. Gases are compressible, so their density changes with conditions. For air at sea level and 15°C, the density is about 1.225 kg/m³.
Why is my calculated density different from a published table?
Most likely because of temperature, impurities, or measurement error. Published densities are usually for pure materials at a stated temperature. Your sample may not be pure, or it may be warmer or cooler than the reference condition.
What is the difference between density and specific weight?
Density is mass per unit volume (kg/m³). Specific weight is weight per unit volume (N/m³). To get specific weight, multiply density by the acceleration due to gravity (about 9.81 m/s² on Earth). The calculator gives density, not specific weight.
How does temperature affect density?
Most materials expand when heated, so the same mass occupies a larger volume and density decreases. Water is an exception between 0°C and 4°C, where it contracts as it warms, reaching its maximum density at 4°C. For gases, the effect is much larger than for solids or liquids.
Related
Formula used
in m | Mass | kg | 1000 | 0 in v | Volume | m³ | 2 | 0 out d | Density | kg/m³ | m / v | 2 out sg | Specific gravity | - | (m / v) / 1000 | 3
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.