Density Calculator
Solve density, mass, or volume with independent units, clear formulas, and a cuboid volume helper.
Solve the density relationship
5 kg/m³
ρ = m ÷ V
Substitution: 10 kg ÷ 2 m³
Calculate a rectangular volume
For a rectangular prism, volume is length × width × height. Use the same unit for each dimension.
For an irregular object, water displacement may estimate volume if the object does not absorb, dissolve in, or react with water.
How to calculate density
Density describes mass per unit of volume. Choose the value you want to solve for, enter the other two, and select the unit for each one. The calculator converts through SI units before showing the result and substitution.
ρ = m ÷ V · m = ρ × V · V = m ÷ ρ
Example: 10 kg ÷ 2 m³ = 5 kg/m³.
Measured density can vary with composition, temperature, pressure, moisture, and porosity. Generic material values are estimates unless their reference conditions are known. For broad density-unit conversion, material comparisons, and specific or API gravity, use the Density Converter.
Density calculator FAQ
What is the formula for density?
Density is mass divided by volume: ρ = m ÷ V. Rearranging the same relationship gives m = ρ × V and V = m ÷ ρ.
How can I measure the volume of an irregular object?
For a solid that can be safely submerged, measure water displacement: the change in water volume is the object's volume. Avoid this method for objects that absorb, dissolve in, or react with water.
Is density always the same for a material?
No. Composition, temperature, pressure, moisture, and porosity can affect measured density. Treat generic material values as estimates unless their grade and reference conditions are known.