Density CalculatorFree online other calculator — instant results, no sign-up

Density from mass and volume.

Inputs

g
cm³
Density
2 g/cm³
In kg/m³2,000

Sign in to save results and favorites.

About the Density Calculator

This calculator computes the volumetric mass density of a substance or object from its mass and volume. It is designed for students, laboratory researchers, and engineers who need quick density values in standard laboratory and SI units.

Mass
The total mass of the object or substance in grams (g); must be greater than zero.
Volume
The total volume occupied by the object or substance in cubic centimeters (cm³); must be greater than zero.

Formula and method

Density (g/cm³) = m / v
Density (kg/m³) = (m / v) × 1000
  • mMass of the substance (grams, g)
  • vVolume occupied by the substance (cubic centimeters, cm³)

The calculator divides mass by volume to determine density in grams per cubic centimeter (g/cm³), formatted to four decimal places. It then multiplies this result by 1,000 to convert the value into kilograms per cubic meter (kg/m³), formatted to two decimal places.

Worked example

These are the calculator's starting values and the results it actually produces for them.

Inputs

  • Mass500 g
  • Volume250 cm³

Results

  • Density2 g/cm³
  • In kg/m³2,000

How to use the Density Calculator

  1. 1Enter the mass of the object or sample in grams (g).
  2. 2Enter the three-dimensional volume in cubic centimeters (cm³).
  3. 3Divide mass by volume to get density in g/cm³.
  4. 4Multiply the g/cm³ value by 1,000 to determine the equivalent density in kg/m³.

Reading your result

A value in g/cm³ gives an immediate point of comparison against liquid water, which has a density of approximately 1 g/cm³ at standard conditions. The secondary output in kg/m³ provides the standard International System of Units (SI) measurement, where water equals roughly 1,000 kg/m³.

Limitations

The calculation assumes a homogeneous material with uniform density throughout and does not account for voids, porosity, temperature variations, or pressure effects. Inputs must be provided strictly in grams and cubic centimeters without in-line unit conversions.

Common questions

Why is the kg/m³ value exactly 1,000 times the g/cm³ value?+

One gram is 0.001 kilograms, and one cubic centimeter is 0.000001 cubic meters. Dividing 0.001 kg by 0.000001 m³ yields 1,000 kg/m³, making 1 g/cm³ exactly equal to 1,000 kg/m³.

Can I input milliliters instead of cubic centimeters?+

Yes. One cubic centimeter (cm³) is identically equal to one milliliter (mL), so liquid volumes measured in mL can be entered directly into the volume field.

What happens if a volume of zero is entered?+

Division by zero is undefined in mathematics and physically impossible for matter with mass, resulting in an invalid calculation error.

Does the calculator save my information?+

Calculations run in your browser. While signed in, inputs and results are automatically recorded in account history; saving a result creates a separate saved record.

Further reading

You might also like

Results are estimates for informational purposes and are not financial, medical or legal advice.