Physics and laboratory tool

Density Calculator

Calculate density, mass, or volume using common laboratory measurement units and clear working steps.

Enter two known values

Solve a density problem

Free tool
g/cm³

This is the value being calculated.

g

Amount of matter in the sample.

cm³

Space occupied by the sample.

Use one consistent unit system. This calculator displays units but does not convert between different unit systems.

Try an example:

Your result will appear here

Select the missing variable and enter the other two measurements.

Formula

How density is calculated

Density formulaρ = m ÷ V

Density measures the amount of mass contained in a given volume. The symbol ρ represents density, m represents mass, and V represents volume.

Worked example

Density calculation example

A sample has a mass of 100 grams and occupies a volume of 20 cubic centimeters.

  1. Write the formula: density = mass ÷ volume
  2. Substitute the values: 100 ÷ 20
  3. Calculate the result: 5
  4. Report the density as 5 g/cm³

Unit guidance

Use a consistent measurement system

Density units depend on the mass and volume units used. Common laboratory combinations include g/cm³, g/mL, and kg/m³.

This calculator displays a selected unit system but does not automatically convert measurements entered in mixed units.

Laboratory guidance

Common density mistakes

  • Dividing volume by mass instead of mass by volume.
  • Mixing incompatible mass and volume units.
  • Using a measured container volume instead of sample volume.
  • Ignoring significant figures in the final result.
  • Rounding intermediate values too early.

Related calculations

Use the Mass to Moles Calculator when converting a measured sample mass into an amount of substance for chemistry calculations.

Use the Measurement Uncertainty Calculator to evaluate uncertainty in experimental mass, volume, and density measurements.

Measurement limits

Assumptions and limitations

Density calculations assume that mass and volume refer to the same homogeneous sample and that their units are compatible. Temperature and pressure should be controlled when they meaningfully affect volume.

Results may be misleading for porous materials, mixtures, trapped air, irregular samples, phase changes, or measurements with substantial experimental uncertainty.

Questions and answers

Density FAQ

What is the formula for density?

Density is calculated by dividing mass by volume. The formula is density equals mass divided by volume.

Can this calculator solve for mass or volume?

Yes. Select density, mass, or volume as the missing variable and enter the other two known values.

Can grams and milliliters be used together?

Yes, especially for liquids. When mass is entered in grams and volume in milliliters, density is reported in grams per milliliter.

Accuracy and transparency

Created and maintained by our editorial team

This physics calculator is maintained by the Science Lab Tools Editorial Team. Its calculation logic is tested with representative inputs, while the supporting guidance is checked for formula clarity, units, assumptions, and common mistakes.

Learn more about our formula-review and correction process, or read about Science Lab Tools.

  • Calculation logic tested
  • Variables and units explained
  • Assumptions stated clearly
  • Corrections handled transparently