Skip to main content

Density calculator: ρ = m / V

Solve ρ = m/V in all three directions. Enter two values among density, mass and volume, select their units and calculate the third with SI conversion and a worked equation.

Embed this widget

Customize the result, check the live preview, then copy the code.

Preview

Embed code type

Code to copy

Responsive and automatically resized by Bethemesh.

Enter exactly two values among density, mass and volume. Leave the quantity you want to calculate empty.

The result is an average mass density over the stated volume. Density can vary when composition, temperature or pressure changes.

Results

Density (ρ)
-
Mass (m)
-
Volume (V)
-

Calculation details

    Was this tool useful?

    How does this tool work?

    Density describes how much mass is contained in a given volume. It is defined by ρ = m/V, where ρ is mass density, m is mass and V is volume. This calculator solves the relationship in all three directions: it can find density from mass and volume, mass from density and volume, or volume from mass and density. Unit conversion uses Bethemesh’s shared conversion engine, so values such as grams and cubic centimetres or kilograms and litres can be combined without manually scaling every input.

    The physical definition is ρ = m/V: divide the mass of a sample by the volume it occupies. OpenStax defines density as mass per unit volume. In the International System of Units, mass is measured in kilograms, volume in cubic metres and mass density in kilograms per cubic metre, written kg/m³.

    The same equation rearranges into two other useful forms. If density and volume are known, mass is m = ρV. If mass and density are known, volume is V = m/ρ. The calculator detects the empty field and automatically selects the appropriate form rather than asking you to choose a separate mode.

    Inputs are converted to kg, m³ and kg/m³ before the equation is evaluated, then converted back to the unit selected for each result. Common scientific units are supported: mg, g, kg, tonnes, ounces and pounds for mass; mL, cm³, L, m³, in³ and ft³ for volume; and kg/m³, g/L, g/cm³, g/mL, kg/L and lb/ft³ for density.

    Several metric equivalences are especially useful. One millilitre is exactly one cubic centimetre, one litre is 0.001 m³, 1 g/L has the same numerical value as 1 kg/m³, and 1 g/cm³ equals 1 g/mL and 1000 kg/m³. The conversion engine applies the dimensional conversion rather than relying on a memorized shortcut.

    Mass density should also be distinguished from relative density or specific gravity. Mass density carries units such as kg/m³. Relative density compares one density with a reference density and is therefore dimensionless. This tool calculates mass density only; it does not silently turn a kg/m³ value into specific gravity.

    Density can depend on physical conditions. A homogeneous solid under ordinary conditions may be adequately described by one average value, but gases, liquids and materials that expand can change density with temperature and sometimes pressure. The calculator applies the mass-to-volume relationship to the values supplied; it does not predict thermal expansion or compressibility.

    How to use this tool

    1. Choose the two known quantities

      Fill two fields among ρ, m and V. Leave the third empty so the calculator can identify the required result.

    2. Select the actual measurement units

      Choose the units that match your data. Mass, volume and density conversions are handled independently and consistently.

    3. Convert to coherent SI units

      The calculation uses kg, m³ and kg/m³ internally, avoiding common factors-of-1000 and cubic-unit conversion errors.

    4. Review the equation and result

      The worked section shows the equation in SI units and then the same result in your selected output unit.

    Density formulas

    Mass density relates the mass of a sample to the volume it occupies. These three forms solve for whichever quantity is unknown.

    Density

    ρ = m ÷ V

    Density is mass per unit volume.

    Mass

    m = ρ × V

    Mass equals density multiplied by volume.

    Volume

    V = m ÷ ρ

    Volume equals mass divided by density.

    Common conversion

    1 g/cm³ = 1000 kg/m³

    g/cm³ and kg/m³ are widely used density units.

    ρ
    mass density, commonly in kg/m³ or g/cm³
    m
    mass, commonly in kg or g
    V
    volume, commonly in m³, L, mL or cm³

    The relationship calculates average density over the stated volume. Actual density may depend on temperature, pressure, composition and how the volume is defined.

    Use cases

    Physics and chemistry exercises

    Check a formula, unit conversion and numerical result for a problem involving mass, volume and density.

    Compare materials or samples

    Calculate an experimental density from measured mass and volume before comparing it with an appropriate reference value.

    Estimate mass from a known volume

    Find the mass corresponding to a measured or designed volume when the material density is already known.

    Determine occupied volume

    Calculate the volume represented by a given mass when density is known, including liquids and homogeneous materials.

    Examples

    Find density in g/cm³

    ρ = 200/80 = 2.5 g/cm³, equivalent to 2500 kg/m³.

    Input

    m = 200 g; V = 80 cm³

    Result

    ρ = 2.5 g/cm³ = 2500 kg/m³

    Find the mass of a sample

    m = ρV = 1200 × 0.025 = 30 kg.

    Input

    ρ = 1200 kg/m³; V = 0.025 m³

    Result

    m = 30 kg

    Find volume from mass

    V = m/ρ = 600/1.2 = 500 mL.

    Input

    ρ = 1.2 g/mL; m = 600 g

    Result

    V = 500 mL

    Mix litres and kilograms

    V = 17/850 = 0.020 m³, which is 20 L.

    Input

    ρ = 850 kg/m³; m = 17 kg

    Result

    V = 20 L

    Work in imperial units

    The shared engine converts through SI units and returns the result in the density unit you selected.

    Input

    m = 10 lb; V = 0.2 ft³

    Result

    ρ ≈ 50 lb/ft³

    Tips and best practices

    • Use mass rather than weight. Mass is expressed in kg or g, whereas weight is a force measured in newtons.
    • For an irregular object, volume can sometimes be measured by fluid displacement when immersion is safe and the method is appropriate.
    • Do not confuse 1 g/cm³ with 1 kg/m³: 1 g/cm³ equals 1000 kg/m³. By contrast, 1 g/L is numerically equal to 1 kg/m³.
    • When comparing your answer with a reference table, check the temperature and pressure conditions attached to the published value.
    • For porous materials, the calculated density can depend on whether the volume is apparent bulk volume, grain volume or a volume that excludes pores.
    • Keep extra digits during conversion and round only the final result when significant figures matter.

    Sources and references

    Frequently asked questions

    What is the density formula?

    Mass density is ρ = m/V: mass divided by volume. Rearranging the same relationship gives m = ρV and V = m/ρ.

    What is the SI unit of density?

    The SI derived unit of mass density is kilogram per cubic metre, kg/m³. The BIPM lists mass density among SI derived quantities.

    What is the difference between density and specific gravity?

    Mass density has units such as kg/m³. Specific gravity or relative density is a ratio to a reference density and is dimensionless.

    Why is 1 g/cm³ equal to 1000 kg/m³?

    One gram is 0.001 kg while one cubic centimetre is 0.000001 m³. Dividing those conversion factors gives 1000 kg/m³.

    Is 1 mL equal to 1 cm³?

    Yes. One millilitre is exactly one cubic centimetre, which is why g/mL and g/cm³ are numerically equivalent density units.

    How do I calculate mass from density?

    Multiply density by volume: m = ρV. The units must be coherent; this calculator performs the conversions automatically.

    How do I calculate volume from mass and density?

    Divide mass by density: V = m/ρ. The result can then be displayed in m³, litres, mL, cm³ or the supported imperial units.

    Does density change with temperature?

    It can. Mass normally stays the same while volume may expand or contract, so density can change with temperature and, especially for gases, pressure.

    Are my values uploaded to a server?

    No. Unit conversion and calculation run locally in your browser.

    Related tools

    Tools similar or complementary to this one.

    Similar tools

    Convert length, weight, volume, temperature, pressure, energy, fuel economy, digital storage and electrical units with exact factors.

    ScienceFeaturedUse this tool