Density Calculator: Formula, Uses & Examples
The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.
A density calculator computes density (�) from mass and volume using the standard formula � = m / V. You enter the mass and volume of a substance (in any consistent units), and the calculator returns the density, often with the option to convert between g/cm³, kg/m³, and other units. This article explains the formula, how to use it correctly, common mistakes, and why density matters across science and industry.
Formula
The density formula is:
� = m / V
- � (rho) – density, typically in g/cm³ or kg/m³
- m – mass, in grams or kilograms
- V – volume, in cubic centimeters or cubic meters
If you use grams and cubic centimeters, density comes out in g/cm³. To convert to kg/m³, multiply by 1000 (since 1 g/cm³ = 1000 kg/m³).
Worked Example
Using the default inputs: mass = 50 g, volume = 20 cm³.
- Write the formula: � = m / V
- Plug in the numbers: � = 50 g / 20 cm³
- Divide: 50 ÷ 20 = 2.5
- Result: � = 2.5 g/cm³
To get kg/m³: 2.5 g/cm³ × 1000 = 2500 kg/m³. The calculator shows both values.
When to Use a Density Calculator
Density is a fundamental physical property. You might need it for:
- Identifying materials – pure substances have characteristic densities (e.g., water ≈ 1 g/cm³, aluminum ≈ 2.7 g/cm³).
- Quality control – checking if a metal part is solid or has internal voids.
- Buoyancy problems – predicting whether an object floats in a fluid.
- Converting mass to volume – for shipping, storage, or recipe scaling.
- Geology and soil science – determining porosity or composition of rocks.
How to Measure Mass and Volume
Accurate density starts with accurate inputs.
- Mass: Use a balance or scale. For liquids, weigh the container first, then subtract it (tare).
- Regular solids: Measure dimensions with calipers and compute volume (e.g., cube: side³, cylinder: πr²h).
- Irregular solids: Use water displacement – the volume of water displaced equals the object’s volume.
- Liquids: Use a graduated cylinder or volumetric flask for precise volume.
Common Mistakes and How to Avoid Them
- Unit mismatch: Mixing grams with liters or kg with cm³ gives wrong results. Always convert to a consistent system (e.g., g and cm³, or kg and m³).
- Forgetting temperature: Density changes with temperature – most substances expand when heated, so their density decreases. Always note the temperature if precision matters.
- Rounding too early: Round only the final answer, not intermediate steps.
- Confusing mass and weight: Weight is a force (mass × gravity). On Earth, 1 kg weighs about 9.8 N, but density uses mass, not weight.
Limitations of the Simple Formula
The simple � = m / V assumes a uniform substance. Real materials can have:
- Porosity – air pockets lower bulk density.
- Heterogeneity – mixtures have an average density that depends on composition.
- Anisotropy – some materials (wood, crystals) have different densities in different directions.
For gases, density depends strongly on pressure and temperature. The ideal gas law (� = PM/RT) is more appropriate than the simple mass/volume formula.
Density vs. Specific Gravity
Specific gravity (SG) is the ratio of a substance’s density to the density of water (at 4°C, where water is most dense). It is dimensionless. For example, SG = 2.5 means the substance is 2.5 times as dense as water. Specific gravity is often used in hydrometers for battery acid, antifreeze, and urine testing.
Frequently Asked Questions
How do I convert g/cm³ to kg/m³?
Multiply by 1000. 1 g/cm³ = 1000 kg/m³. For example, 2.5 g/cm³ = 2500 kg/m³.
What is the density of water?
At 4°C, pure water has a density of 1.000 g/cm³ (or 1000 kg/m³). At room temperature (20°C), it is about 0.998 g/cm³.
Can density be used to identify a substance?
Yes, but with caution. Many substances share similar densities, so density alone is not definitive. It is often combined with other properties like melting point or refractive index.
Why does ice float on water?
Ice has a density of about 0.92 g/cm³, less than liquid water (1.0 g/cm³). Less dense objects float in denser fluids.
What if my object is hollow?
The simple formula gives the bulk density, which includes the air inside. If you need the material’s true density, you must measure only the solid material’s volume (e.g., by crushing or using a gas pycnometer).
Does density change with gravity?
No. Density is mass divided by volume, neither of which depends on gravity. An object has the same density on the Moon as on Earth, though its weight differs.
Related
Formula used
in m | Mass | g | 50 | 0 in V | Volume | cm³ | 20 | 0 out rho | Density | g/cm³ | m / V | 2 out rho_kg | Density | kg/m³ | (m / 1000) / (V / 1000000) | 0
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.