Density Calculator: Mass & Volume to Density
- Specific gravity
- Result
- Mass
- 500 kg
- You entered
- Volume
- 0.25 m³
- You entered
This density calculator works out density from mass and volume (or mass and dimensions), giving you the result in kg/m³, g/cm³, or any unit you choose. Enter the mass and volume of a material, and you get back its density instantly, with the formula and a worked example below. It is the standard � = m/V calculation used in physics, engineering, and materials science.
Formula
The density formula is the fundamental relationship between mass and volume:
� = m / V
Where:
- � (rho) is the density, measured in kilograms per cubic metre (kg/m³) or grams per cubic centimetre (g/cm³).
- m is the mass, measured in kilograms (kg) or grams (g).
- V is the volume, measured in cubic metres (m³) or cubic centimetres (cm³).
For solids with regular shapes, volume can be calculated from dimensions (e.g., length × width × height for a rectangular block). The calculator above uses mass and volume directly, but you can enter a volume you have computed separately.
Worked Example
Using the default values from the calculator: mass = 500 kg, volume = 0.25 m³.
- Write down the formula: � = m / V
- Substitute the values: � = 500 kg / 0.25 m³
- Divide: � = 2000 kg/m³
- The specific gravity (relative to water) is 2000 / 1000 = 2.00
The calculator gives the same result: density = 2000.00 kg/m³, specific gravity = 2.00.
When to Use a Density Calculator
Density calculations appear in many practical situations:
- Material identification: Compare a measured density to known values (e.g., aluminium ≈ 2700 kg/m³, water ≈ 1000 kg/m³).
- Quality control: Check if a batch of material meets specifications by testing its density.
- Buoyancy problems: Determine if an object floats or sinks by comparing its density to the fluid.
- Engineering design: Calculate the mass of a component from its volume and material density, or vice versa.
- Earth science: Estimate the density of soil, rock, or other geological samples.
In each case, the calculator saves time and reduces arithmetic errors, especially when dealing with unit conversions.
How to Choose the Right Units
Density is expressed in many unit systems. The most common are:
- SI: kg/m³ (standard) or g/cm³ (often used for solids and liquids).
- Imperial: lb/ft³ (pounds per cubic foot) or lb/in³.
To convert between them, remember: 1 g/cm³ = 1000 kg/m³ = 62.4 lb/ft³. The calculator above uses kg/m³ as the default output, but you can input mass in grams and volume in cm³ to get g/cm³ directly (just divide the result by 1000 if you want kg/m³).
Common Mistakes and Misconceptions
One frequent error is mixing units. For example, entering mass in grams but volume in cubic metres gives a density that is off by a factor of 1,000,000. Always convert to a consistent unit system first.
Another misconception is that density is the same as weight. Density is mass per unit volume, while weight is the force of gravity on an object. An object with the same density as water will float, but its weight depends on its total mass.
Also, density changes with temperature and pressure for most materials. The calculator assumes a fixed temperature and pressure; for precise work, you must account for these conditions.
Limits of the Formula
The � = m/V formula assumes a homogeneous material—that the density is uniform throughout. For porous or composite materials, the calculated density is an average, not a local value.
For irregularly shaped objects, volume must be measured by water displacement (Archimedes’ principle) rather than from dimensions. The calculator cannot handle that automatically; you would enter the displaced volume as the volume input.
For gases, density varies strongly with pressure and temperature, so the simple formula only gives a snapshot at one condition. Use the ideal gas law for more accurate gas density calculations.
Frequently Asked Questions
How do I calculate density from weight and volume? Weight is a force, not mass. To get density, divide mass (not weight) by volume. If you have weight in newtons, divide by gravitational acceleration (9.81 m/s²) to get mass in kilograms first.
What is the density of water? Pure water has a density of approximately 1000 kg/m³ (1 g/cm³) at 4°C. This is the reference point for specific gravity, so a material with a specific gravity of 2.0 is twice as dense as water.
Can I use this calculator for liquids and gases? Yes, the formula works for any substance. For gases, remember that density changes with temperature and pressure, so the result is only valid at the conditions you assume. For liquids, temperature also matters, but less dramatically.
Why does my result seem too high or too low? Check your units. A common mistake is entering volume in litres (1 L = 0.001 m³) but mass in kg. That gives a density 1000 times too large. Always convert litres to m³ (divide by 1000) before calculating.
What is specific gravity and how is it different from density? Specific gravity is the ratio of a material’s density to that of water (at 4°C). It is dimensionless—no units. Density has units, while specific gravity is just a number. For example, gold has a density of 19,300 kg/m³ and a specific gravity of 19.3.
Related
Formula used
in m | Mass | kg | 500 | 0 in v | Volume | m³ | 0.25 | 0 out density | Density | kg/m³ | m / v | 2 out specific_gravity | Specific gravity | - | (m / v) / 1000 | 2
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.