science calculator

Density Calculator

Calculate density by dividing mass by volume.

Results

Density (g/cm³)
5.00

Overview

Density ties together mass and volume in a single number that tells you how compact a substance is. This density calculator takes a measured mass and volume and returns density so you can identify materials, complete lab assignments, or run quick quality-control checks.

Because density is an intrinsic property of a material (under fixed conditions), it’s widely used to distinguish substances that look similar, verify whether parts meet material specs, and connect experimental measurements to reference tables. By handling the division and keeping units consistent, this tool lets you focus on experimental technique and interpretation rather than on arithmetic.

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.

Outputs explained

Density (g/cm³)
The computed density of your sample. If you input mass in grams and volume in cubic centimeters (or milliliters), the result is in g/cm³, which is common for solids and liquids in lab settings.

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.

Internally the calculator just performs the division; the quality of the answer depends mostly on how accurately you measure mass and volume and whether your units are compatible.

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.
  • Estimating whether an object will float or sink in a given fluid by comparing its density to the fluid’s density (for example, relative to water at 1.0 g/cm³).
  • Monitoring process drift in labs or production by periodically measuring density and watching for trends that signal changes in composition, concentration, or temperature control.
  • Designing or selecting components—such as floats, buoyancy aids, or ballast—where knowing density helps you predict how objects will behave in fluids.

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.
  • When comparing to published density tables, double-check both the units and the reference temperature; many tables list densities at 20 °C or 25 °C.
  • If your sample contains trapped air or voids, gently degas or compact it when appropriate so your measurement better represents the material itself rather than the empty space inside it.
  • In teaching or training, have learners measure the same sample multiple times to see how variability in mass and volume measurements propagates into density estimates.
  • If you suspect systematic error (for example, a scale that is slightly off), measure a reference material with a well-known density first to see how close your setup comes to the expected value.
  • Label your results with both the numeric density and the unit (for example, 7.85 g/cm³) so it’s immediately clear which reference values you can safely compare against.
  • 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 uncertainties 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.

Checking if a metal sample is aluminum or steel

  • You measure a metal block with mass = 270 g and volume = 100 cm³.
  • Density ρ = 270 ÷ 100 = 2.7 g/cm³.
  • Reference tables list aluminum near 2.7 g/cm³ and common steels around 7.8 g/cm³.
  • Interpretation: ignoring impurities and measurement error, your sample is much more likely to be aluminum than steel.

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.
Can I use density to infer mass or volume if I know the other quantity?
Yes. If you know a material’s density from tables and you measure one of mass or volume accurately, you can rearrange ρ = m ÷ V to solve for the other: m = ρ × V or V = m ÷ ρ. This is common in dosing liquids, sizing containers, or estimating whether a sample’s mass makes sense for its dimensions and material type.

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.