Density Calculator

Solve density, mass or volume. This free density calculator uses ρ = m / V, converts units automatically, and shows results in g/cm³ and kg/m³ with a reference table of common materials.

Solve for

Pick what to solve for, then enter the other two values. Units convert automatically – density is computed internally in grams and cubic centimetres.

Density
–
Enter two values
g/cm3
–
kg/m3
–
In grams
–
In cm3
–

Density relates mass and volume: ρ = m / V. Rearranged, mass = ρ x V and volume = m / ρ. For reference, water is about 1 g/cm3 (1000 kg/m3).

How the Density Calculator Works

The calculator finds density, mass, or volume by rearranging one core relationship between how much a substance weighs and how much space it takes up. Pick which quantity you need, supply the other two, and the tool converts everything into a common unit before solving.

Formula: Density = Mass ÷ Volume (ρ = m ÷ V). Rearranged: Mass = Density × Volume, and Volume = Mass ÷ Density. Internally, every mass unit is converted to grams and every volume unit to cubic centimetres (cm³), then the result is shown in both g/cm³ and kg/m³ (kg/m³ = g/cm³ × 1000).

  • ρ (Density) — the mass-per-volume result, shown in g/cm³ and kg/m³
  • m (Mass) — the value entered in the Mass field, selectable in g, kg, mg, lb, or oz
  • V (Volume) — the value entered in the Volume field, selectable in cm³/mL, L, m³, in³, or US gal
  • Solve for — the toggle that decides whether the calculator outputs Density, Mass, or Volume

Example Scenarios

Mass (g)Volume (cm³)Density (g/cm³)
100502.0
50010000.5
100010001.0
270010002.7
19300100019.3
79107.9

Density Calculator FAQ

What units does the density calculator use internally?It converts every mass entry to grams and every volume entry to cubic centimetres behind the scenes, no matter which unit you pick from the dropdowns, then displays the result in both g/cm³ and kg/m³ so you don’t have to convert by hand.
How do I find mass or volume instead of density?Use the Solve for toggle at the top of the calculator to switch from Density to Mass or Volume. The input fields change to ask for the two values you do know, and the tool rearranges ρ = m/V automatically to solve for the third.
Why is my density result different in g/cm³ vs kg/m³?They’re the same value in different units, not two separate answers. kg/m³ is always 1000 times the g/cm³ figure, because a cubic metre holds a million cubic centimetres while a kilogram holds a thousand grams.
Is density the same as weight?No. Weight depends on both mass and gravity, while density only measures how tightly mass is packed into a given volume. Two objects can weigh the same but have very different densities if one is more compact than the other.
What’s a normal density value for water?Water is about 1 g/cm³ (1000 kg/m³) at room temperature, which is why it’s often used as a reference point — materials denser than water sink in it, and less dense materials float.
Can I use this calculator for liquids and gases, not just solids?Yes. The mass-to-volume relationship (ρ = m/V) applies to any substance. Just make sure your volume measurement matches the state you’re measuring, since liquids and especially gases are more sensitive to temperature and pressure than solids.

Related Calculators

If you need a shape’s volume before working out its density, the volume calculator handles common 3D shapes like boxes, cylinders and spheres. Once you have a mass value, the force calculator can turn it into weight or applied force, and the refractive index calculator covers another common material-identification calculation used alongside density in physics and chemistry.

Related Calculators