calculator

Density Calculator

To calculate density, divide an object's mass by its volume: ρ = m/V. A 540 g block that takes up 200 cm³ has a density of 2.7 g/cm³, the value for aluminum. Enter any two of density, mass and volume in metric or US units, and the calculator finds the third and shows each step.

Density Calculator

The density is2,700 kg/m³2.7 g/cm³ · 168.555 lb/ft³ · higher than water, so a solid piece would sink
  1. Convert to SI: m = 0.54 kg, V = 0.0002 m³
  2. ρ = m ÷ V = 0.54 ÷ 0.0002
  3. ρ = 2,700 kg/m³
Glass jar with honey, water and oil in separate layers and small objects resting at different heights by density
Liquids and objects settle in order of density, the quantity the calculator finds from mass and volume.

At a Glance

Density is calculated with rho = m / V, mass divided by volume. Grams over cubic centimeters gives g/cm^3 and kilograms over cubic meters gives kg/m^3, where 1 g/cm^3 = 1000 kg/m^3. To find mass use m = rho x V, and to find volume use V = m / rho.

Formula
ρ = m / V
Solves for
Density, mass or volume
Density units
kg/m³, g/cm³, g/mL, kg/L, lb/ft³, lb/in³, lb/gal
Mass units
kg, g, mg, lb, oz, metric ton
Volume units
m³, L, mL, cm³, in³, ft³, US gal
On this page
  1. Density calculator: solve for density, mass or volume
  2. How to Use the Density Calculator
  3. What Is the Density Formula?
  4. How Do You Calculate Density With Mass and Volume?
  5. How Do You Find Mass or Volume From Density?
  6. How Do You Convert g/cm³ to kg/m³ or lb/ft³?
  7. What Are the Densities of Common Materials?
  8. Related Calculators and Practice for Density
  9. Key Facts
  10. FAQ

How to Use the Density Calculator

Pick the unknown first: density, mass or volume. Type the two values you know, choose a unit for each, and the answer appears straight away in the unit selected for the result. Below it you get the conversion to SI units, the formula, the substitution and the value, so you can follow or copy the method.

Units can be mixed freely. You might weigh a stone in ounces, measure its volume in milliliters and ask for the density in g/cm³; the tool converts everything to kilograms and cubic meters before dividing. When you solve for density, the result line also tells you whether a solid piece of the material would float or sink in water.

What Is the Density Formula?

The density formula is ρ=mV, where ρ (the Greek letter rho) is density, m is mass and V is volume. In SI units, kilograms divided by cubic meters gives kg/m³. In the lab, grams divided by cubic centimeters or milliliters gives g/cm³ or g/mL, which are the same unit.

For an object made of several materials, the formula gives the average density of the whole thing. To understand what density tells you about a material and why it changes with temperature, read our guide to density. Density is easy to confuse with related quantities, so density vs specific gravity and mass vs volume set them side by side.

The calculator uses this formula and its two rearranged forms, converting every value to SI units first.

ρ=mV
What each symbol means
SymbolQuantitySI unit
ρdensitykilogram per cubic meter (kg/m³)
mmasskilogram (kg)
Vvolumecubic meter (m³)

Rearranged to find another variable:

m=ρVV=mρ

Valid for: average density for non-uniform objects.

How Do You Calculate Density With Mass and Volume?

Calculating density takes three steps:

  1. Measure the mass. Use a kitchen or lab scale and note the unit, usually grams.
  2. Find the volume. For a box shape, multiply length by width by height. For an odd shape, lower it into a measuring cup of water and read how much the level rises.
  3. Divide mass by volume. Grams over cubic centimeters gives g/cm³ directly.

Suppose a pebble weighs 162 g and raises the water in a measuring cup from 150 mL to 210 mL. The volume is 60 mL, and 162 divided by 60 gives 2.7 g/cm³. Our density of irregular objects experiment walks through this water method at home.

Example 1 Identifying a metal block

A shiny metal block has a mass of 0.81 kg and a volume of 0.0003 m³ (300 cm³). What is its density?

  1. Given:
    • mass: m=0.81 kg
    • volume: V=3×10−4 m3
  2. Formula: ρ=mV
  3. Substitute: m=0.81 kg,V=3×10−4 m3
  4. Answer: ρ=2,700 kg/m3

Compare the answer with the table below to guess which metal the block is made of.

How Do You Find Mass or Volume From Density?

Rearranging the formula gives the other two quantities. Mass is density times volume, m=ρV, and volume is mass divided by density, V=m/ρ. These are useful when you cannot weigh or measure something directly, such as the water in a full pool or the space a shipment of sand will take up.

The units must match before you multiply or divide. If the density is in g/cm³ and the volume is in liters, convert liters to cubic centimeters first (1 L = 1,000 cm³), or let the calculator handle it. The worked examples below find the mass of an aquarium's water and the volume of a batch of honey.

Example 2 How heavy is a saltwater aquarium?

A reef aquarium holds 0.12 m³ (120 L) of seawater with a density of 1,025 kg/m³. What is the mass of the water?

  1. Given:
    • density: ρ=1,025 kg/m3
    • volume: V=0.12 m3
  2. Formula: m=ρV
  3. Substitute: ρ=1,025 kg/m3,V=0.12 m3
  4. Answer: m=123 kg

That mass sits on a small footprint, so large tanks need a sturdy stand placed over a solid floor.

Example 3 Fitting honey into a jar

A beekeeper has 0.25 kg of honey with a typical density of 1,420 kg/m³. What volume will it fill?

  1. Given:
    • density: ρ=1,420 kg/m3
    • mass: m=0.25 kg
  2. Formula: V=mρ
  3. Substitute: ρ=1,420 kg/m3,m=0.25 kg
  4. Answer: V=1.761×10−4 m3

Multiply the result by 1,000,000 to read it in milliliters, the unit printed on most jars.

How Do You Convert g/cm³ to kg/m³ or lb/ft³?

Density units convert with these exact relationships, which the calculator applies automatically:

  • g/cm³ to kg/m³: multiply by 1,000. Water at about 1 g/cm³ is about 1,000 kg/m³.
  • g/mL and kg/L: both are identical to g/cm³, since 1 mL equals 1 cm³.
  • kg/m³ to lb/ft³: divide by about 16.0185, which comes from 0.45359237 kg per pound and 0.028316846592 m³ per cubic foot.
  • kg/m³ to lb/gal: divide by about 119.826, using the US gallon of 3.785411784 L.

So water comes out near 62.4 lb/ft³ or 8.35 lb per US gallon, numbers that engineers and pool builders in the United States use every day. Other unit changes are covered by our physics unit converter.

What Are the Densities of Common Materials?

The table lists typical densities near room temperature, from the gas inside a party balloon to a bar of gold. Anything with a density below fresh water, about 1,000 kg/m³, floats in it when solid, which is why ice, cork and most woods stay on the surface while metals sink.

The diagram shows a floating wooden ball. Its weight pulls down while the water pushes up with an equal buoyant force. The ball sinks only until it displaces water with the same mass as itself, an idea explained on our buoyancy and Archimedes' principle pages.

Typical densities of common materials near room temperature
MaterialDensity (kg/m³)Density (g/cm³)Density (lb/ft³)Behavior
Helium (balloon gas)0.1640.0001640.0102Rises in air
Air at sea level1.20.00120.0749Bubbles rise in water
Cork2400.2415.0Floats
Pine wood5000.5031.2Floats
Gasoline7400.7446.2Floats as a layer
Olive oil9100.9156.8Floats as a layer
Ice9170.91757.2Floats
Fresh water1,0001.0062.4Reference
Seawater1,0251.02564.0Sinks below fresh water
Concrete2,4002.4150Sinks
Aluminum2,7002.7169Sinks
Steel7,8507.85490Sinks
Copper8,9608.96559Sinks
Lead11,34011.34708Sinks
Mercury (liquid metal)13,53013.53845Sinks
Gold19,30019.31,205Sinks
Source: Typical values near 20 °C and 1 atm; g/cm³ and lb/ft³ columns computed with exact factors (1 g/cm³ = 1,000 kg/m³, 1 lb/ft³ = 16.0185 kg/m³) · Retrieved October 2026
Free-body diagram of a floating wooden ball with weight pulling down and an equal buoyant force pushing up
A floating ball is balanced: its weight equals the buoyant force from the water it displaces.

Key Facts

  • Density is mass divided by volume: ρ = m/V.
  • The SI unit of density is the kilogram per cubic meter (kg/m³).
  • One g/cm³ equals one g/mL, one kg/L and 1,000 kg/m³.
  • To find mass from density, multiply by volume; to find volume, divide mass by density.
  • Fresh water has a density of about 1,000 kg/m³, or about 62.4 lb/ft³.
  • A solid less dense than water floats in it, and a denser one sinks.
  • For an odd-shaped object, measure volume by the rise of water in a measuring cup.
Did you know? A one-liter carton filled with gold would have a mass of about 19.3 kg, while the same carton filled with helium would hold only about 0.16 grams, a difference of more than 100,000 times for the same volume.

Frequently Asked Questions

How do you calculate density?

Divide the mass of the object by its volume. With mass in grams and volume in cubic centimeters or milliliters, the result is in g/cm³. With kilograms and cubic meters, it is in kg/m³. For example, 300 g of a material that fills 120 cm³ has a density of 2.5 g/cm³. The calculator above converts any mix of units for you.

What is the formula for density?

The formula is ρ = m/V, where ρ is density, m is mass and V is volume. It can be rearranged to m = ρV to find mass, or V = m/ρ to find volume. The formula gives the average density, so for a hollow or mixed object it describes the whole object rather than any single material inside it.

Is g/mL the same as g/cm³?

Yes. One milliliter is defined as exactly one cubic centimeter, so a density in g/mL has the same number as the density in g/cm³. Both also equal kg/L. Chemists often use g/mL for liquids and g/cm³ for solids, but they are interchangeable. To get kg/m³, multiply either one by 1,000.

How do you find mass from density and volume?

Multiply the density by the volume: m = ρV. Make sure the units match first. A density of 0.8 g/cm³ times 250 cm³ gives 200 g. If the volume is in liters and the density in kg/m³, convert liters to cubic meters by dividing by 1,000. In the calculator, choose Mass as the unknown and enter the other two values.

How do you find the volume of an irregular object for density?

Use water displacement. Partly fill a measuring cup or graduated cylinder, read the level, then lower the object in until it is fully covered. The rise in the water level, in milliliters, equals the object's volume in cubic centimeters. Divide the mass by this volume to get the density. This works for solids that do not absorb water or dissolve.

Why do some objects float and others sink?

An object floats when its average density is lower than the liquid around it, and sinks when it is higher. A steel ship floats because its hull encloses a lot of air, which lowers its average density below that of water. A solid steel bolt, with no air inside, sinks. The buoyant force equals the weight of the liquid pushed aside.

Does density change with temperature?

Yes, a little. Most materials expand when heated, so the same mass takes up more volume and the density drops. Gases change the most, which is why hot air rises. Water is unusual: it is densest at about 4 °C, and ice is less dense than liquid water, so ponds freeze from the top down.

Physics Tribune Editorial Team
Written by our editors and checked against NIST and BIPM reference data. Every worked example is recomputed in code. Read our editorial policy. Last updated October 2026.