science calculator

Density Calculator

Calculate density by dividing mass by volume.

Results

Density (g/cm³)
5.00

How to use this calculator

  1. Measure the mass of your sample using a scale and note the reading in your preferred mass unit.
  2. Measure or calculate the volume of the sample using an appropriate method (geometry, water displacement, graduated cylinder, etc.).
  3. Enter the mass and volume into the calculator, making sure the unit pair you’re using matches a standard density unit (for example, g and cm³ or kg and m³).
  4. We divide mass by volume and return the density.
  5. Compare the result to known density values from tables or datasheets to help identify materials or check whether a sample meets expected specifications.

Inputs explained

Mass
The amount of matter in your sample, measured with a scale. Common lab units are grams (g) or kilograms (kg). Choose a unit that is appropriate for the sample size and stay consistent when comparing densities.
Volume
The space your sample occupies. You can measure volume directly (using cm³ or mL in a graduated cylinder) or calculate it from dimensions (for example, length × width × height for regular shapes). Make sure your volume unit pairs correctly with your mass unit.

How it works

Density is defined as mass divided by volume: ρ = m ÷ V.

You provide a mass measurement (for example, in grams) and a volume measurement (for example, in cubic centimeters).

We divide the mass by the volume using the units you’ve chosen. If you use grams and cubic centimeters, the result is in g/cm³; if you use kilograms and cubic meters, the result is in kg/m³.

As long as mass and volume are expressed in compatible units, the ratio is meaningful and can be compared to reference density values.

The key is consistency: mixing unit systems (like grams and liters without conversion) will produce incorrect results.

Formula

Density ρ = mass (m) ÷ volume (V)

When to use it

  • Identifying unknown solids or liquids by comparing measured density to reference tables (for example, distinguishing aluminum from steel).
  • Completing chemistry and physics homework that requires density calculations from experimentally measured mass and volume.
  • Quality control in manufacturing to confirm that batches of material stay within a specified density range.
  • Checking whether a sample is pure or contaminated by comparing its density to the known density of a pure substance.

Tips & cautions

  • Water displacement (submerging a sample in water and tracking volume change) works particularly well for irregularly shaped objects that are hard to measure geometrically.
  • Stick to a single, consistent unit system; for example, use grams and cubic centimeters (g/cm³) or kilograms and cubic meters (kg/m³), but don’t mix metric and imperial units unless you convert first.
  • Average multiple mass and volume readings if your scale or volume markings fluctuate, especially for small samples where measurement noise can be significant.
  • Account for temperature when working with liquids—density can change with temperature, so compare your result to reference values at similar temperatures.
  • Assumes the sample has uniform density; porous, layered, or composite materials may not be well represented by a single average density value.
  • Does not automatically convert between unit systems; you must ensure mass and volume units are compatible before entering them.
  • Measurement error directly affects the result—small errors in mass or volume can noticeably change density, especially for small samples.
  • Does not account for dissolved gases, trapped air, or other complexities that can affect apparent density in real-world scenarios.

Worked examples

250 g sample with 50 cm³ volume

  • Mass = 250 g, volume = 50 cm³.
  • Density ρ = 250 ÷ 50 = 5 g/cm³.
  • Interpretation: compare 5 g/cm³ to reference tables to identify candidate materials with similar density.

Water at 1,000 g and 1,000 mL

  • Mass = 1,000 g, volume = 1,000 mL (1,000 cm³).
  • Density ρ = 1,000 ÷ 1,000 = 1 g/cm³.
  • Interpretation: this aligns with the standard density of water at about 4 °C; at room temperature, density is close but slightly lower.

Deep dive

Use this density calculator to divide mass by volume and quickly find the density of solids or liquids for chemistry, physics, or engineering work.

Enter mass and volume in compatible units to get a density value you can compare against reference tables, lab manuals, or material datasheets.

Ideal for students, lab techs, and engineers who want fast, accurate density calculations without manually reworking formulas.

FAQs

Can I use units other than grams and cubic centimeters?
Yes. You can use any consistent pair of units, such as kg/m³ or lb/ft³. Just remember that the numeric value of density will differ depending on your unit choice, and you should compare it to reference values expressed in the same units.
How do I handle irregular shapes when measuring volume?
For irregular objects, water displacement is often the easiest method: submerge the object in a graduated cylinder or overflow can and measure how much the water level rises. That volume change is the object’s volume.
Why does my measured density not match the textbook exactly?
Small differences arise from measurement error, temperature differences, impurities, and trapped air. Textbook values are often ideal or reference values under specific conditions.

Related calculators

This density calculator is an educational tool that performs a straightforward mass ÷ volume calculation. It does not correct for temperature, impurities, or measurement error and should be used alongside proper lab technique and safety protocols when working with chemicals or engineering materials.