Your country

Tools that support it use your country for local currency, number formats, units and paper size. Your choice is saved only in this browser.

Type a name or a two-letter code. Use the up and down arrow keys to move through the countries, Enter to choose one and Escape to close.

Density Calculator

ρ = m/V for any variable, shape volumes, specific gravity and a float-or-sink check.

Science No upload Works offline Free, no sign-up
Need a value? Search the table of materials and press Use.
Volume
mL
mL
Density —

    Float or sink?

    How it was worked out

    Density of water by temperature

    Pure water at 101.325 kPa, 0 °C to boiling (99.97 °C).

    Densities of materials

    Show

    MaterialDensityStateConditionsSourceAction

    About the Density Calculator

    Density is how much mass fits in a given volume: ρ = m ÷ V. This calculator solves for any one of density, mass or volume and converts between kg/m³, g/cm³ (the same as g/mL and kg/L), g/L, lb/ft³, lb/in³ and pounds per gallon. If you do not know the volume, it works it out from the shape and its measurements (box, cylinder, tube, sphere, cone, pyramid and more) or from the rise of the water level in a measuring cylinder.

    With the density it gives the specific gravity against water at 4 °C or another reference temperature, the closest materials in a table of about 140 sourced densities, and a float or sink check in fresh water, seawater, air, any listed liquid or your own fluid — with the share of the object that would sit under the surface. A separate panel gives the density of water at any temperature from 0 °C to boiling.

    How to use it

    1. Choose what to solve for: density, mass or volume.
    2. Type the known values and choose their units. For the volume, either type it, pick a shape and enter its measurements (diameters or radii for round shapes), or enter the water level before and after dropping the object into water.
    3. Read the answer in every unit, the specific gravity and the closest materials; the steps show each substitution.
    4. Under Float or sink? choose the liquid or gas and its temperature to see whether the object floats and how deep it sits.
    5. Search the materials table for a density and press Use to put it into the calculator, or download the table as CSV.

    Examples

    Identify a metal by displacement
    Input
    32.4 g; water level 50.0 mL → 62.0 mL
    Result
    V = 12.0 cm³, ρ = 2.70 g/cm³ — the same as aluminium (2,700 kg/m³)
    Mass of a block
    Input
    Aluminium cube 2 cm on each side (2.70 g/cm³)
    Result
    V = 8 cm³, m = 21.6 g
    Volume of a mass
    Input
    1 kg of water at 4 °C (999.975 kg/m³)
    Result
    V = 1.000025 L
    Why icebergs float
    Input
    Ice, 917 kg/m³, in water at 0 °C
    Result
    91.7 % under the surface in fresh water (999.84 kg/m³); 89.2 % in seawater of salinity 35 (1,028.1 kg/m³)
    Average density of a floating body
    Input
    97.0 % of a swimmer under water
    Result
    ρ = 0.970 × 1,000 kg/m³ = 970 kg/m³

    OpenStax University Physics Vol. 1, Example 14.4.

    US units
    Input
    62.4 lb/ft³
    Result
    999.6 kg/m³ — 1 g/cm³ is 62.43 lb/ft³

    Common uses

    • School and college lab work: finding the density of a sample and identifying the material.
    • Working out the weight of a part, a tank of liquid or a load from its volume and material.
    • Checking whether a boat, buoy, float or packaging foam will float, and how deep it sits.
    • Correcting volumetric measurements for the density of water at the lab temperature.
    • Converting densities between metric and US units for specifications and data sheets.

    The formulas

    • Density: ρ = m ÷ V; so m = ρ × V and V = m ÷ ρ. 1 g/cm³ = 1 g/mL = 1 kg/L = 1,000 kg/m³ = 62.43 lb/ft³.
    • Volumes: box l × w × h; cylinder π r² h; tube π (R² − r²) h; sphere 4/3 π r³; hemisphere 2/3 π r³; cone 1/3 π r² h; pyramid 1/3 l × w × h; triangular prism ½ b t L. A diameter is halved to get the radius.
    • Displacement: a sunken object pushes aside its own volume of water, so V = level after − level before.
    • Specific gravity: SG = ρ ÷ ρ_water. Against water at 4 °C (999.975 kg/m³) it equals the density in g/cm³ to within 0.003 %.
    • Floating: an object floats when its average density is less than the fluid’s; the fraction below the surface is ρ_object ÷ ρ_fluid (Archimedes’ principle). A sinking object weighs less in the fluid by the factor 1 − ρ_fluid ÷ ρ_object.

    Density of water by temperature

    Water is densest at 3.98 °C (999.975 kg/m³) and gets lighter both above and below: 999.843 kg/m³ at 0 °C, 998.207 at 20 °C, 993.33 at 37 °C, 983.21 at 60 °C and 958.37 at the boiling point (99.97 °C at 101.325 kPa). From 0 to 40 °C the values come from the formula recommended by Tanaka et al. (2001) for pure, air-free water at standard atmospheric pressure; from 40 °C to boiling from the IAPWS-IF97 formulation (the two agree to 0.01 kg/m³ at 40 °C). Seawater uses the one-atmosphere international equation of state EOS-80: at salinity 35 it is 1,028.1 kg/m³ at 0 °C and 1,023.3 kg/m³ at 25 °C. Air is treated as an ideal gas at 101.325 kPa.

    Where the material densities come from

    Every value in the table names its source and its conditions:

    • OpenStax, University Physics Vol. 1, Tables 14.1 and 14.2 — everyday solids and liquids at 0 °C (brass, cork, glass, granite, oak, pine, petrol, ethanol, glycerin, olive oil, ice) and gases at 0 °C and 101.3 kPa.
    • NIST Standard Reference Database 126 (X-ray attenuation), Table 2 — plastics (PE, PET, acrylic, polystyrene, PTFE, PVC), concretes, glasses, crystals and body tissues.
    • PubChem Periodic Table (NCBI) — 96 elements, solids and liquids near room temperature and gases at 0 °C and 1 atm.
    • Water, seawater and steam are calculated with the formulas above.

    Real samples vary: alloys, woods, rocks, soils and foods can differ by several per cent (or much more) from a table value, so treat the closest match as a hint, not an identification.

    Sources

    Limitations

    • The result is the average density of the whole object: a hollow ball or a boat can float even if it is made of a dense material.
    • Displacement needs the object to sink fully and not soak up water; read the meniscus at eye level.
    • Water values are for pure water at standard atmospheric pressure; tap water, salt solutions and water under pressure differ slightly.
    • Densities of gases depend strongly on temperature and pressure; the table gives each value’s conditions.
    • Shapes are ideal (sharp edges, exact circles); measure real objects carefully, since a small error in a diameter is doubled in the volume.

    Privacy

    Everything happens in your browser. What you enter or open here is not uploaded or stored by MySmartCoPilot.

    Frequently asked questions

    What is the formula for density?

    Density = mass ÷ volume (ρ = m/V). A 32.4 g piece of metal with a volume of 12.0 cm³ has a density of 2.70 g/cm³ = 2,700 kg/m³.

    How do I find the density of an irregular object?

    Weigh it, then lower it into a measuring cylinder of water and read the level before and after: the rise is its volume. Divide the mass by that volume. Choose “By displacement” in the calculator to do this.

    What is the density of water?

    About 1,000 kg/m³ (1 g/cm³), but it depends on temperature: 999.975 kg/m³ at 4 °C, 998.207 kg/m³ at 20 °C and 958.37 kg/m³ at the boiling point. Seawater is denser, about 1,023–1,028 kg/m³.

    What is the difference between density and specific gravity?

    Density has units (kg/m³, g/cm³); specific gravity is the density divided by the density of water, so it has none. Against water at 4 °C, specific gravity is numerically the density in g/cm³: aluminium is 2.70 g/cm³ and has a specific gravity of 2.70.

    Why does ice float on water?

    Ice (917 kg/m³) is less dense than liquid water (999.8 kg/m³ at 0 °C), so it floats with 917 ÷ 999.8 = 91.7 % of its volume under the surface — which is why most of an iceberg is hidden.

    How do I convert g/cm³ to kg/m³ or lb/ft³?

    Multiply g/cm³ by 1,000 for kg/m³, or by 62.43 for lb/ft³. So 7.874 g/cm³ (iron) is 7,874 kg/m³ or 491.6 lb/ft³.

    How can I tell whether something will float?

    Compare its average density with the fluid’s: if it is lower, it floats. The calculator does this for fresh water, seawater, air, liquids from the table or any density you enter, and shows how much of the object sits below the surface.

    Quick answers and tool search

    Type to search tools or to get a quick answer, for example 18% of 2500. Use the up and down arrow keys to move through the results, Enter to choose, and Escape to close.